1234567891011121314151617181920212223242526272829303132333435 |
- --[[
- Script Name : SpawnScripts/PeatBog/questmachineinwater.lua
- Script Author : Shatou
- Script Date : 2020.01.08 08:01:54
- Script Purpose :
- :
- --]]
- local MYSTERIOUS_MACHINE_QUEST_ID = 508
- local A_GNOLL_MACHINIST_ID = 1980062
- function spawn(NPC)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- end
- function respawn(NPC)
- end
- function casted_on(NPC, Spawn, Message)
- if HasQuest(Spawn, MYSTERIOUS_MACHINE_QUEST_ID) then
- if GetQuestStep(Spawn, MYSTERIOUS_MACHINE_QUEST_ID) == 1 then
- if Message == "inspect" then
- SetStepComplete(Spawn, MYSTERIOUS_MACHINE_QUEST_ID, 1)
- local new_spawn = SpawnMob(GetZone(Spawn), A_GNOLL_MACHINIST_ID, false, GetX(Spawn), GetY(Spawn), GetZ(Spawn), 0)
-
- AddHate(Spawn, NPC, 100)
- end
- end
- end
- end
|