mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
24 lines
No EOL
628 B
Lua
Executable file
24 lines
No EOL
628 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/Darklight/widgetriftboulder.lua
|
|
Script Purpose : Sealing the Rift
|
|
Script Author : Cynnar
|
|
Script Date : 2015.07.01
|
|
Script Notes : Auto-Generated Conversation from PacketParser Data
|
|
--]]
|
|
|
|
local SealingTheRift = 122
|
|
|
|
function spawn(NPC, Player)
|
|
AddSpawnAccess(NPC, NPC)
|
|
SetPlayerProximityFunction(NPC, 50, "CheckQuest", "CheckQuest")
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end
|
|
|
|
function CheckQuest(NPC, Player)
|
|
if HasCompletedQuest(Player, SealingTheRift ) or GetQuestStep(Player, SealingTheRift ) > 1 then
|
|
AddSpawnAccess(NPC, Player)
|
|
end
|
|
end |