mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
29 lines
596 B
Lua
Executable file
29 lines
596 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/WillowWood/Walterson.lua
|
|
Script Purpose : Walterson <Guard>
|
|
Script Author : Scatman
|
|
Script Date : 2009.09.25
|
|
Script Notes :
|
|
--]]
|
|
|
|
dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
|
|
|
|
function spawn(NPC)
|
|
SetPlayerProximityFunction(NPC, 10, "InRange")
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end
|
|
|
|
function InRange(NPC, Spawn)
|
|
CheckFaction(NPC, Spawn, "Qeynos")
|
|
if math.random(1, 100) <= 30 then
|
|
GenericGuardHail(NPC,Spawn)
|
|
end
|
|
end
|
|
|
|
function hailed(NPC, Spawn)
|
|
FaceTarget(NPC, Spawn)
|
|
GenericGuardHail(NPC, Spawn)
|
|
end
|