mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
42 lines
1.6 KiB
Lua
42 lines
1.6 KiB
Lua
-- items: 13014
|
|
function event_combat(e)
|
|
if e.joined then
|
|
e.self:Say(string.format("Time to die %s!",e.other:GetCleanName()));
|
|
end
|
|
end
|
|
|
|
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say(string.format("Hello, "..e.other:GetName()..". What brings you to Qeynos? Must be the mighty fine muffins over at [Voleen's Bakery]. I just love those muffins!",e.other:GetName()));
|
|
elseif(e.message:findi("voleen's bakery")) then
|
|
e.self:Say("Oh, it will be easier for us both if I just show you where it is. Follow me. But be quick about it, because I have to get back to my patrol.");
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local muffin = 0;
|
|
local item_lib =require("items");
|
|
if(item_lib.check_turn_in(e.trade, {item1 = 13014,item2 = 13014,item3 = 13014,item4 = 13014})) then
|
|
muffin = 4;
|
|
elseif(item_lib.check_turn_in(e.trade, {item1 = 13014,item2 = 13014,item3 = 13014})) then
|
|
muffin = 3;
|
|
elseif(item_lib.check_turn_in(e.trade, {item1 = 13014,item2 = 13014})) then
|
|
muffin = 2;
|
|
elseif(item_lib.check_turn_in(e.trade, {item1 = 13014})) then
|
|
muffin = 1;
|
|
end
|
|
if(muffin > 0) then
|
|
repeat
|
|
e.self:Say("Oh, thank you so much. I do get hungry on patrol. Here, please take this reward for your kindness.");
|
|
e.other:Ding();
|
|
e.other:Faction(262,1,0); -- Faction: Guards of Qeynos
|
|
e.other:Faction(219,1,0); -- Faction: Antonius Bayle
|
|
e.other:Faction(291,1,0); -- Faction: Merchants of Qeynos
|
|
e.other:Faction(230,-1,0); -- Faction: Corrupt Qeynos Guards
|
|
e.other:Faction(223,-1,0); -- Faction: Circle of Unseen Hands
|
|
e.other:AddEXP(75);
|
|
muffin = muffin - 1;
|
|
until muffin == 0
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|