fallenrubble.lua 609 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/ForestRuins/fallenrubble.lua
  3. Script Author : Shatou
  4. Script Date : 2020.01.24 08:01:12
  5. Script Purpose :
  6. :
  7. --]]
  8. local FAVORS_QUEST_ID = 521
  9. function spawn(NPC)
  10. SetRequiredQuest(NPC, FAVORS_QUEST_ID, 2, 0)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. end
  15. function respawn(NPC)
  16. end
  17. function casted_on(NPC, Spawn, Message)
  18. if HasQuest(Spawn, FAVORS_QUEST_ID) then
  19. if Message == "gather rubble" then
  20. AddStepProgress(Spawn, FAVORS_QUEST_ID, 2, 1)
  21. Despawn(NPC)
  22. end
  23. end
  24. end