9
3

FallofthePhoenix.lua 637 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Monk/FallofthePhoenix.lua
  3. Script Author : Dello
  4. Script Date : 15/06/2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, Chance)
  9. -- Die animtaion and restricts movement
  10. SetServerControlFlag(Caster, 5, 1, 1);
  11. local roll = math.random(1, 100);
  12. if roll <= Chance then
  13. ClearHate(Target, Caster)
  14. SendMessage(Caster, "Your feign death succeeded", "yellow")
  15. else
  16. SendMessage(Caster, "Your feign death attempt failed", "yellow")
  17. end
  18. end
  19. function remove(Caster, Target)
  20. SetServerControlFlag(Caster, 5, 1, 0);
  21. end