9
3

cadavers_dram.lua 678 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : ItemScripts/cadavers_dram.lua
  3. Script Purpose : cavader's dram
  4. Script Author : theFoof
  5. Script Date : 2013.7.24
  6. Script Notes :
  7. --]]
  8. local BecomingOrcbane = 81
  9. function used(Item, Player)
  10. if GetQuestStep(Player, BecomingOrcbane) == 1 then
  11. local target = GetTarget(Player)
  12. if GetSpawnID(target) == 4700105 then
  13. if GetHP(target) < GetMaxHP(target) * .20 then
  14. CastEntityCommand(Player, target, 1299, "cadaver's dram")
  15. else
  16. SendMessage(Player, "You must use this on a Ry'Gorr tunneler that is under 20 percent life.", "yellow")
  17. end
  18. else
  19. SendMessage(Player, "You can only use this on a Ry'Gorr tunneler.", "yellow")
  20. end
  21. end
  22. end