12345678910111213141516171819202122232425262728293031 |
- --[[
- Script Name : SpawnScripts/Nettleville/Wendy.lua
- Script Author : Dorbin
- Script Date : 2022.06.23 02:06:11
- Script Purpose :
- :
- --]]
- dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 7, "InRange", "LeaveRange")
- end
- function InRange(NPC, Spawn)
- CheckFaction(NPC, Spawn, "Qeynos")
- if GetFactionAmount(Spawn,11)>0 then
- if math.random(1,100)<25 then
- GenericGuardHail(NPC, Spawn)
- end
- end
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- GenericGuardHail(NPC, Spawn)
- end
- function respawn(NPC)
- spawn(NPC)
- end
|