9
3

MortalEmbrace.lua 724 B

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