9
3

arustmonster.lua 765 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/arustmonster.lua
  3. Script Purpose : a rust monster
  4. Script Author : Scatman
  5. Script Date : 2009.07.28
  6. Script Notes :
  7. --]]
  8. local QUEST_3_FROM_THORSON = 378
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if HasQuest(Spawn, QUEST_3_FROM_THORSON) and not QuestStepIsComplete(Spawn, QUEST_3_FROM_THORSON, 3) then
  17. SetStepComplete(Spawn, QUEST_3_FROM_THORSON, 3)
  18. end
  19. end
  20. function casted_on(Target, Caster)
  21. -- TODO: Verify 'Catalog Creature' was casted.
  22. if HasQuest(Caster, QUEST_3_FROM_THORSON) and not QuestStepIsComplete(Caster, QUEST_3_FROM_THORSON, 3) then
  23. SetStepComplete(Caster, QUEST_3_FROM_THORSON, 3)
  24. end
  25. end