mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
23 lines
1.3 KiB
Lua
23 lines
1.3 KiB
Lua
-- items: 18821
|
|
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Greetings, thirsty adventurer! Please help yourself to the free salty snacks. We are here to serve you at the Lion's Main Tavern. Allow yourself to indulge from our wide selection oof fine spirits.");
|
|
elseif(e.message:findi("kwint sent")) then
|
|
e.self:Say("Kwint? Gave you the line about being my brother, huh? That boy sends me more customers, I tells ya! I give him one free drink for every person he gets to come in. Hey, could you do me a favor and take this voucher to him when you are done drinking? Thanks.");
|
|
e.other:SummonItem(18821); -- Item: Scrap of Parchment
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib =require("items");
|
|
if(item_lib.check_turn_in(e.trade, {item1 = 18821})) then
|
|
e.self:Say("What the..? This voucher was for Kwint, not you! I will find someone more trustworthy to take it to him.");
|
|
e.other:Ding();
|
|
e.other:Faction(291,-10,0); -- Faction: Merchants of Qeynos
|
|
e.other:Faction(223,5,0); -- Faction: Circle of Unseen Hands
|
|
e.other:Faction(219,-10,0); -- Faction: Antonius Bayle
|
|
e.other:Faction(229,-10,0); -- Faction: Coalition of Tradefolk
|
|
e.other:Faction(262,-10,0); -- Faction: Guards of Qeynos
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|