1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- --[[
- Script Name : SpawnScripts/OutpostoftheOverlord/AniusOakwind.lua
- Script Purpose : Anius Oakwind
- Script Author : Lemmeron (Previously Parser script inserted by Cynnar 2018.10.14)
- Script Date : 19.08.2020
- Script Notes : NPC Spawn called with function "AskWhy" by Evil Grave after player kicks it (2780153)
- : Respawn timer set to 300 seconds which re-enables kick grave again
- --]]
- local ZoneID = 278 --outpost of the overlord
- local GraveID = 2780153
- local GravelocID = 485806
- local AniusID = 2780031
- local AniuslocID = 398907
- function spawn(NPC)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function AskWhy(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- PlayFlavor(NPC, "", "Why would you desecrate my gravestone ?! Have you no respect for the dead? Now face my wrath!", "", 1689589577, 4560189, Spawn)
- AddTimer(NPC, 5000, "Wrath", 1, Spawn)
- end
-
- function Wrath (NPC, Spawn)
- if IsAlive(Spawn) then
- SpawnSet(NPC, "targetable", 1)
- SpawnSet(NPC, "visual_state", 0)
- SpawnSet(NPC, "show_level", 1)
- SpawnSet(NPC, "faction", 1)
- SpawnSet(NPC, "attackable", 1)
- Attack(NPC, Spawn)
- else
- Say(NPC, "It seems you will join me in death")
- end
- end
- function death(NPC, Spawn)
- local zone2 = GetZone(Spawn)
- if zone2 ~= nil then
- local grave2 = GetSpawn(Spawn, GraveID)
- if grave2 ~= nil then
- AddTimer(grave2, 300000, "Respawntimer", 1) -- respawn timer 300 sec
- else
- Say(NPC, "cant find grave 2", Spawn)
- end
- else
- Say(NPC, "gravelocID not found", Spawn)
- end
- end
-
-
|