9
3

fallenrubble.lua 561 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. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. end
  16. function casted_on(NPC, Spawn, Message)
  17. if HasQuest(Spawn, FAVORS_QUEST_ID) then
  18. if Message == "gather rubble" then
  19. AddStepProgress(Spawn, FAVORS_QUEST_ID, 2, 1)
  20. Despawn(NPC)
  21. end
  22. end
  23. end