eq2emu-content/SpawnScripts/Commonlands/KadeksMailbox.lua
2024-10-26 11:37:28 +00:00

31 lines
919 B
Lua
Executable file

--[[
Script Name : SpawnScripts/Commonlands/KadeksMailbox.lua
Script Author : Premierio015
Script Date : 2021.03.14 06:03:02
Script Purpose :
:
--]]
local QUEST = 406 -- Filling the Coffers
function spawn(NPC)
end
function casted_on(NPC, Spawn, SpellName)
if SpellName == 'Check mailbox' then
if HasQuest(Spawn, QUEST) then
if GetQuestStep(Spawn, QUEST) == 2 then
SetStepComplete(Spawn, QUEST, 2)
end
conversation = CreateConversation()
AddConversationOption(conversation, "Leave the mailbox.")
StartDialogConversation(conversation, 1, NPC, Spawn, "Kadek's taxes are strewn messily about at the bottom of the mailbox. Collecting them isn't too hard, however, and he paid all that he was supposed to.")
end
end
end
function respawn(NPC)
spawn(NPC)
end