mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
36 lines
2.2 KiB
Lua
36 lines
2.2 KiB
Lua
-- items: 18167, 18156, 18165, 18164, 18166
|
|
function event_say(e)
|
|
if(e.message:findi("Hail")) then
|
|
e.self:Say("Hail. " .. e.other:GetName() .. " - Are you [interested] in helping the League of Antonican Bards by delivering some [mail]?");
|
|
elseif(e.message:findi("what mail")) then
|
|
e.self:Say("The League of Antonican Bards has a courier system made up of travelers and adventurers. 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("i am interested")) then
|
|
e.self:Say("I have messages that need to go to Highpass, Kelethin, and Qeynos. Will you [deliver] mail to [Kelethin], [Highpass], or [Qeynos] for me?");
|
|
elseif(e.message:findi("deliver to kelethin")) then
|
|
e.self:Say("Take this pouch to Idia in Kelethin. You can find her at the bard guild hall. I am sure she will compensate you for your troubles.");
|
|
e.other:SummonItem(18167); -- Item: Pouch of Mail (Kelethin)
|
|
elseif(e.message:findi("deliver to highpass")) 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(18156); -- Item: Pouch of Mail (Highpass)
|
|
elseif(e.message:findi("deliver to qeynos")) then
|
|
e.self:Say("Take this pouch to Eve Marsinger in Qeynos. You can find her at the bard guild hall. I am sure she will compensate you for your troubles.");
|
|
e.other:SummonItem(18165); -- Item: Pouch of Mail (Qeynos)
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
|
|
if(item_lib.check_turn_in(e.trade, {item1 = 18164,item2 = 18166})) then
|
|
e.self:Say("More mail - you have done us a noteworthy service! Please take this gold for your troubles. If you are interested in more work, just ask me.");
|
|
e.other:Ding();
|
|
e.other:Faction(284,10,0); -- league of antonican bards
|
|
e.other:Faction(281,10,0); -- knights of truth
|
|
e.other:Faction(262,10,0); -- guards of qeynos
|
|
e.other:Faction(304,-30,0); -- ring of scale
|
|
e.other:Faction(285,-30,0); -- mayong mistmoore
|
|
e.other:AddEXP(100);
|
|
e.other:GiveCash(0,0,eq.ChooseRandom(8,9,10,11,12),0);
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|