mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
32 lines
1.8 KiB
Lua
32 lines
1.8 KiB
Lua
-- items: 18152, 18165
|
|
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say(string.format("Hail, %s - Are you [interested] in helping the League of Antonican Bards by delivering some [mail]?",e.other:GetName()));
|
|
elseif(e.message:findi("interested")) then
|
|
e.self:Say("'I have messages that need to go to - well, right now I have one that needs to go to Highpass. Will you [deliver] mail to [Highpass] for me?");
|
|
elseif(e.message:findi("agents")) then
|
|
e.self:Say("Sivina Lutewhisper, Marton Stringsinger, Ticar Lorestring and Mistrana Two-Notes all report to my husband, Tralyn.");
|
|
elseif(e.message:findi("mail")) then
|
|
e.self:Say("'The League of Antonican Bards has a courier system made up of travelers, adventurers and [agents]. We pay good gold to anyone who will take messages from bards such as myself to one of our more distant offices. Are you [interested]");
|
|
elseif(e.message:findi("deliver")) then
|
|
e.self:Say("Take this pouch to Lislia Goldtune in Highpass. You can find her at the entrance to HighKeep. I am sure she will compensate you for your troubles.");
|
|
e.other:SummonItem(18152); -- Item: Pouch of Mail (Highpass)
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib =require("items");
|
|
if(item_lib.check_turn_in(e.trade, {item1 = 18165})) then
|
|
e.self:Say("Incoming mail - very good! Please take this gold for your troubles.");
|
|
local gp = math.random(15);
|
|
e.other:Ding();
|
|
e.other:Faction(284,5,0); -- Faction: League of Antonican Bards
|
|
e.other:Faction(281,1,0); -- Faction: Knights of Truth
|
|
e.other:Faction(262,1,0); -- Faction: Guards of Qeynos
|
|
e.other:Faction(304,-1,0); -- Faction: Ring of Scale
|
|
e.other:Faction(285,-1,0); -- Faction: Mayong Mistmoore
|
|
e.other:AddEXP(1550);
|
|
e.other:GiveCash(0,0,gp,0);
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|