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

[28 December 2016] Updated buff data.


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

#1
Deftsu

Deftsu

    AFK

  • Contributor
  • 4,805 posts

-Added 2 new functions : GetBuffSourceNID and GetBuffSourceName where the args are unit, index, ex :

for i = 0, myHero.buffCount do
  if GetBuffCount(myHero, i) > 0 then -- checking if buff is valid
    print(GetObjectName(GetObjByNetID(GetBuffSourceNID(myHero, i))))
    print(GetBuffSourceName(myHero, i)) 
  end
end

-All buff structs (OnUpdateBuff/OnRemoveBuff/GetBuffData) got 2 new members (.SourceNID and .SourceName)

OnUpdateBuff(function(unit, buff)
  if unit.isMe then
    print(buff.SourceName)
  end
end)

  • 1




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users