mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
28 lines
No EOL
605 B
Lua
Executable file
28 lines
No EOL
605 B
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/Graveyard/UnholyRelic.lua
|
|
Script Purpose : Unholy Relic
|
|
Script Author : Scatman
|
|
Script Date : 2009.07.12
|
|
Script Notes :
|
|
--]]
|
|
|
|
local ZADDAR_QUEST_4 = 234
|
|
|
|
function spawn(NPC)
|
|
SetRequiredQuest(NPC, ZADDAR_QUEST_4, 3)
|
|
end
|
|
|
|
function hailed(NPC, Spawn)
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end
|
|
|
|
function casted_on(Target, Caster)
|
|
if HasQuest(Spawn, ZADDAR_QUEST_4) and GetQuestStep(Spawn, ZADDAR_QUEST_4) == 3 then
|
|
SetStepComplete(Spawn, ZADDAR_QUEST_4, 3)
|
|
SendMessage(Caster, "You retrieve the unholy relic.")
|
|
Despawn(Target)
|
|
end
|
|
end |