mirror of
https://github.com/emagi/eq2emu-content
synced 2026-08-12 20:23:03 -04:00
39 lines
No EOL
1.6 KiB
Lua
Executable file
39 lines
No EOL
1.6 KiB
Lua
Executable file
--[[
|
|
Script Name : SpawnScripts/Commonlands/MerchantValary.lua
|
|
Script Author : Premierio015
|
|
Script Date : 2021.05.24 09:05:16
|
|
Script Purpose :
|
|
:
|
|
--]]
|
|
|
|
local MessageForValary = 5981
|
|
local Quest2 = 5987
|
|
|
|
function spawn(NPC)
|
|
|
|
end
|
|
|
|
function hailed(NPC, Spawn)
|
|
FaceTarget(NPC, Spawn)
|
|
local conversation = CreateConversation()
|
|
if GetQuestStep(Spawn, MessageForValary)==1 then
|
|
AddConversationOption(conversation, "I actually have a letter for you from Lucilla in South Freeport.", "Dialog1")
|
|
elseif GetQuestStep(Spawn, Quest2)==1 then
|
|
PlayFlavor(NPC, "voiceover/english/merchant_valary/commonlands/quests/merchantvalary/vidiciusfestus_merchantvalary_x1_initial.mp3", "", "nod", 1558017824, 4223669556, Spawn, 0)
|
|
Say(NPC, "It's about time. I was beginning to wonder if he was ever going to send this. Wait a minute, he wants me to pay you? He didn't pay you? Honestly, now. Here, take this for your troubles and be on your way.")
|
|
SetStepComplete(Spawn, Quest2, 1)
|
|
end
|
|
AddConversationOption(conversation, "I might take a look at what you are selling.")
|
|
StartConversation(conversation, NPC, Spawn, "My wares are the finest in the land. Won't you look?")
|
|
end
|
|
|
|
function respawn(NPC)
|
|
spawn(NPC)
|
|
end
|
|
|
|
function Dialog1(NPC, Spawn)
|
|
local conversation2 = CreateConversation()
|
|
AddConversationOption(conversation2, "No problem, glad to help.")
|
|
StartConversation(conversation2, NPC, Spawn, "Oh great! I have been waiting to hear back from her regarding my latest shipment. Thank you and take this as a reward for your service to us both.")
|
|
SetStepComplete(Spawn, MessageForValary, 1)
|
|
end |