orccask.lua 751 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : SpawnScripts/Ruins/orccask.lua
  3. Script Author : jakejp
  4. Script Date : 2018.12.28 06:12:19
  5. Script Purpose :
  6. :
  7. --]]
  8. local Seventh_KnockTheFightOutOfEm = 392
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, Seventh_KnockTheFightOutOfEm, 4)
  11. end
  12. function hailed(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. end
  16. function casted_on(Target, Caster, SpellName)
  17. if SpellName == "Poke a hole in the orc wine cask" then
  18. if GetQuestStep(Caster, Seventh_KnockTheFightOutOfEm, 4) then
  19. SetStepComplete(Caster, Seventh_KnockTheFightOutOfEm, 4)
  20. SendMessage(Caster, "You have poked a hole in the cask and watched the wine drain out.")
  21. end
  22. end
  23. end