qstunseenhandcrate1.lua 808 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/WillowWood/qst_unseenhand_crate_1.lua
  3. Script Purpose : qst_unseenhand_crate_1
  4. Script Author : Scatman
  5. Script Date : 2009.09.26
  6. Script Notes : Updated by Jabantiz (4/21/2017)
  7. --]]
  8. local WOODELF_MENTOR_QUEST_3 = 215
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, WOODELF_MENTOR_QUEST_3, 3)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. end
  17. function casted_on(NPC, Spawn, SpellName)
  18. if HasQuest(Spawn, WOODELF_MENTOR_QUEST_3) and GetQuestStep(Spawn, WOODELF_MENTOR_QUEST_3) == 3 and SpellName == "Examine" then
  19. SendMessage(Spawn, "It looks like the wolf has been here recently. A trail of items that were once in the cart, and wolf tracks, lead to the east.")
  20. SetStepComplete(Spawn, WOODELF_MENTOR_QUEST_3, 3)
  21. end
  22. end