FrondensFinest.lua 762 B

1234567891011121314151617181920212223
  1. --[[
  2. Script Name : ItemScripts/FrondensFinest.lua
  3. Script Purpose : for the item "Fronden's Finest"
  4. Script Author : theFoof
  5. Script Date : 2013.5.31
  6. Script Notes :
  7. --]]
  8. local PouringSkellies = 40
  9. function used(Item, Player)
  10. target = GetTarget(Player)
  11. if GetName(target) == "pile of Ry'Gorr bones" then
  12. if GetQuestStep(Player, PouringSkellies) == 1 then
  13. if not IsInCombat(Player) then
  14. CastEntityCommand(Player, target, 1281, "pour one out")
  15. else
  16. SendMessage(Player, "You must not be in combat to use this.", "yellow")
  17. end
  18. end
  19. else
  20. SendMessage(Player, "You must find a pile of Ry'Gorr bones to use this on.", "yellow")
  21. end
  22. end