mirror of
https://github.com/EQMacEmu/quests
synced 2026-08-21 00:23:04 -04:00
24 lines
1.2 KiB
Lua
24 lines
1.2 KiB
Lua
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Huh? Oh hi " .. e.other:GetCleanName() .. ". Youse want to buy sumthin?");
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
|
|
if(item_lib.check_turn_in(e.self, e.trade, {item1 = 1839}, 0)) then -- Full Muffin Crate
|
|
e.self:Say("MMmmm... Deez look like gud muffins. Here's sum money. Tanks. Now meez all stocked again.");
|
|
e.other:Faction(e.self,338,2); -- Faction: Merchants of Oggok
|
|
e.other:Faction(e.self,228,1); -- Faction: Clurg
|
|
e.other:Faction(e.self,337,1); -- Faction: Oggok Guards
|
|
e.other:QuestReward(e.self,{gold = math.random(5,8), exp = 500})
|
|
elseif(item_lib.check_turn_in(e.self, e.trade, {item1 = 1838}, 0)) then -- Bag of Bread Loaves
|
|
e.self:Say("You nice for getting bread loaves for us. You take some money. Weeze happy now dat weeze got more bread for sale. You maybe check back later if weeze run out of bread again.");
|
|
e.other:Faction(e.self,338,4); -- Faction: Merchants of Oggok
|
|
e.other:Faction(e.self,228,3); -- Faction: Clurg
|
|
e.other:Faction(e.self,337,3); -- Faction: Oggok Guards
|
|
e.other:QuestReward(e.self,{gold = math.random(5,8), platinum = math.random(1,2), exp = 500})
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|