Poultice.lua 524 B

1234567891011121314151617181920
  1. --[[
  2. Script Name : ItemScripts/Poultice.lua
  3. Script Purpose : for the item "Poultice"
  4. Script Author : theFoof
  5. Script Date : 2013.6.3
  6. Script Notes :
  7. --]]
  8. local DisarmingRyGorr = 48
  9. function used(Item, Player)
  10. if GetQuestStep(Player, DisarmingRyGorr) == 1 then
  11. local target = GetTarget(Player)
  12. if GetName(target) == "a Ry'Gorr weapon" then
  13. CastEntityCommand(Player, target, 1284, "Poultice")
  14. end
  15. else
  16. SendMessage(Player, "You can only use this on a Ry'Gorr weapon.", "yellow")
  17. end
  18. end