Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

[08 February 2016] GetSpellData .level .cdEndTime .ammo .rechargeEndTime .toggleState .spellCd .ammoCd


  • This topic is locked This topic is locked
No replies to this topic

#1
Feretorix

Feretorix

    Administrator

  • Administrators
  • 2,492 posts
Added new API GetSpellData(champObj,spellID) -- returns SpellData with the following members:
 
OnDraw(function(myHero)
spelldataz = GetSpellData(myHero,_R);
DrawText(string.format("level = %d", spelldataz.level),12,000,30,0xff00ff00);
DrawText(string.format("cdEndTime = %f", spelldataz.cdEndTime),12,000,40,0xff00ff00);
DrawText(string.format("ammo = %d", spelldataz.ammo),12,000,50,0xff00ff00);
DrawText(string.format("rechargeEndTime = %f", spelldataz.rechargeEndTime),12,000,60,0xff00ff00);
DrawText(string.format("toggleState = %d", spelldataz.toggleState),12,000,70,0xff00ff00);
DrawText(string.format("spellCd = %f", spelldataz.spellCd),12,000,80,0xff00ff00);
DrawText(string.format("ammoCd = %f", spelldataz.ammoCd),12,000,90,0xff00ff00);
end)
.toggleState values: 0=untoggleable; 1=untoggled; 2=toggled


Big thanks to jouzuna for most of these!
  • 2




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users