mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
34 lines
1.5 KiB
Lua
34 lines
1.5 KiB
Lua
-- items: 13003, 13824, 12334
|
|
function event_say(e)
|
|
local fac = e.other:GetFaction(e.self);
|
|
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Hello. Might I ask what you are looking for?");
|
|
elseif(e.message:findi("treant wood")) then
|
|
if(fac < 6) then
|
|
e.self:Say("You are a new courier from the Faydarks. I am sorry I did not stay closer to the docks. I hear that part of Freeport is dangerous and is filled with many rogues. I shall require a new Small Lantern in trade for the Treant Wood.");
|
|
else
|
|
e.self:Say("Your ways are considered vile to Faydark's Champions. Leave before my rage overcomes my restraint.");
|
|
end
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
|
|
if(item_lib.check_turn_in(e.trade, {item1 = 13003})) then -- Small Lantern
|
|
e.self:Say("Thanks, friend. I have run a long way to get here in time. Mostly at night. I lost my lantern in a card game in Highkeep.");
|
|
e.other:SummonItem(eq.ChooseRandom(13824, 13824, 13824, 13824, 13824, 13824, 13824, 13824, 13824, 12334)); -- 1/10 chance of wooden heart 9/10 chance of Wooden Shards
|
|
e.other:Ding();
|
|
e.other:Faction(246,1,0); -- Faydark's Champions
|
|
e.other:Faction(279,1,0); -- King Tearis Thex
|
|
e.other:Faction(226,1,0); -- Clerics of Tunare
|
|
e.other:Faction(310,1,0); -- Soldiers of Tunare
|
|
e.other:Faction(234,-1,0); -- Crushbone Orcs
|
|
e.other:AddEXP(500);
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|
|
|
|
-- END of FILE Zone: -- Jyle_Windshot *(FREEPORTWEST VERSION)*
|
|
|