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

Detect cc D:?


  • Please log in to reply
2 replies to this topic

#1
darkvanom

darkvanom

    Newbie

  • Members
  • 2 posts

How can I detect if myHero is cc'd?

 

I tried:

if GetItemSlot(myHero, 3139) > 0 and Ready(GetItemSlot(myHero, 3139)) and mainMenu.AutoQSS:Value() and GotBuff(myHero, "charm") > 0 or GotBuff(myHero, "fear") > 0 or GotBuff(myHero, "flee") > 0 or GotBuff(myHero, "snare") > 0 or GotBuff(myHero, "taunt") > 0 or GotBuff(myHero, "suppression") > 0 or GotBuff(myHero, "stun") > 0 then
DelayAction(CastSpell(GetItemSlot(myHero, 3139)), mainMenu.AutoQSSD:Value())
end

 


  • 0

#2
Toshibiotro

Toshibiotro

    Lord and Saviour of GoS

  • Banned
  • PipPipPip
  • 957 posts
  • LocationThe Moon

use the OnUpdateBuff callback, much more fps friendly


  • 0

#3
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

local CCType = {
[5] = "Stun",
[8] = "Taunt",
[11] = "Snare",
[21] = "Fear",
[22] = "Charm",
[24] = "Suppression",
}
 




OnUpdateBuff(function(unit,buffProc)
if CCType[buffProc.Type] then

 print(unit.charName .. " just got hard cc'd")

end

end)


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users