mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
29 lines
No EOL
686 B
Lua
Executable file
29 lines
No EOL
686 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/Commonlands/spawnkraofla.lua
|
|
Script Author : cynnar
|
|
Script Date : 2023.04.10 12:04:35
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
|
|
local SearchForTheMissing = 573
|
|
|
|
function spawn(NPC)
|
|
SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange", Spawn)
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end
|
|
|
|
function InRange(NPC, Spawn)
|
|
local zone = GetZone(Spawn)
|
|
|
|
if HasQuest(Spawn, SearchForTheMissing) and GetQuestStep(Spawn, SearchForTheMissing) == 2 then
|
|
local Kraofla = SpawnMob(zone, 330291, false, -589.91, -49.14, -626.17, 175.95)
|
|
end
|
|
end
|
|
|
|
function LeaveRange(NPC, Spawn)
|
|
|
|
end |