12345678910111213141516171819202122232425262728293031323334353637383940 |
- --[[
- Script Name : SpawnScripts/SouthQeynos/Popelia.lua
- Script Purpose : Popelia <Guard>
- Script Author : Cynnar
- Script Date : 2020.04.12
- Script Notes : Auto-Generated Conversation from PacketParser Data
- --]]
- dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
- dofile("SpawnScripts/Generic/ExpelNonCitizen.lua")
- function spawn(NPC)
- SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function InRange(NPC, Spawn)
- NonCitizen(NPC,Spawn)
- if math.random(0, 100) <= 25 and GetFactionAmount(Spawn,11)>20000 then
- FaceTarget(NPC, Spawn)
- GenericGuardHail(NPC, Spawn)
- CheckFaction(NPC, Spawn, "Qeynos")
-
- else
- CheckFaction(NPC, Spawn, "Qeynos")
- end
- end
- function LeaveRange(NPC, Spawn)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- GenericGuardHail(NPC, Spawn)
- end
|