Jump to content

If else help


jokerofsouls

Recommended Posts

I need help making a if else statement,

 

function Captain_Dementox_Enrage(pUnit, event)

if pUnit:GetHealthPct() < 40 then

pUnit:RemoveEvents()

pUnit:PlaySoundToSet(11273)

pUnit:CastSpell(33653)

pUnit:CastSpell(36900)

pUnit:SendChatMessage(11,0,"Test")

end

end

If the script has a if in it then it will have 2 ends

 

but if it dont then it will only have 1.

 

:) this is all i need done for tonight

Link to comment
https://forums.phpfreaks.com/topic/125043-if-else-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.