9
3

asmallrustmonster.lua 611 B

123456789101112131415161718192021222324252627
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/asmallrustmonster.lua
  3. Script Purpose : a small rust monster
  4. Script Author : Scatman
  5. Script Date : 2009.07.28
  6. Script Notes :
  7. --]]
  8. local QUEST_3_FROM_THORSON = 268
  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. end
  17. function casted_on(Target, Caster)
  18. -- TODO: Verify 'Catalog Creature' was casted.
  19. if HasQuest(Caster, QUEST_3_FROM_THORSON) and not QuestStepIsComplete(Caster, QUEST_3_FROM_THORSON, 2) then
  20. SetStepComplete(Caster, QUEST_3_FROM_THORSON, 2)
  21. end
  22. end