mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
36 lines
No EOL
855 B
Lua
Executable file
36 lines
No EOL
855 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/Starcrest/Torbin.lua
|
|
Script Purpose : Torbin <Guard>
|
|
Script Author : Scatman
|
|
Script Date : 2009.09.25
|
|
Script Notes :
|
|
--]]
|
|
dofile("SpawnScripts/Generic/AdvancementGaze.lua")
|
|
dofile("SpawnScripts/Generic/GenericGuardVoiceOvers.lua")
|
|
require "SpawnScripts/Generic/NPCModule"
|
|
|
|
function spawn(NPC, Spawn)
|
|
NPCModule(NPC, Spawn)
|
|
SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end
|
|
|
|
function InRange(NPC, Spawn)
|
|
if GetFactionAmount(Spawn,11)>=5000 then
|
|
if GetLevel(Spawn) ==8 or GetLevel(Spawn)==9 then
|
|
ClassCheck_Q(NPC,Spawn)
|
|
end
|
|
end
|
|
CheckFaction(NPC, Spawn, "Qeynos")
|
|
end
|
|
|
|
function LeaveRange(NPC, Spawn)
|
|
end
|
|
|
|
function hailed(NPC, Spawn)
|
|
FaceTarget(NPC, Spawn)
|
|
GenericGuardHail(NPC, Spawn)
|
|
end |