mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
26 lines
1.5 KiB
Lua
26 lines
1.5 KiB
Lua
-- items: 14321, 13980, 14031, 11139, 52355
|
|
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Emote("rustles and looks up at you in acknowledgment.");
|
|
eq.signal(19052, 0); -- Reebo_Leafsway
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
local class = e.other:GetClass();
|
|
|
|
if(item_lib.check_turn_in(e.trade, {item1 = 14321})) then
|
|
e.other:SummonItem(eq.ChooseRandom(13980, 13980, 14031)); -- Item(s): Wee Harvester (13980)
|
|
e.other:Ding();
|
|
e.other:AddEXP(500);
|
|
elseif((class == Class.BARD or class == Class.ROGUE) and item_lib.check_turn_in(e.trade, {item1 = 11139})) then
|
|
e.other:Message(MT.White,"You remove the dilapidated pumpkin from Shakey's wooden neck post and replace it with the new one. A haunting voice rings in your ears");
|
|
e.self:Say("Who has given me a voice once again? I can sense your presence but cannot see your form. Allow me but a moment to explain. I have been trapped in this golem of hay for many years. Ever since the horrible bloodbath in the forest I have been bound to this horrible fate, and I cannot find rest until the person responsible for my murder has been dealt with! Our fates are intertwined, you and I. We can both find peace if you listen to what I have to say. Find the blue orb. It yet retains its dark power. Go into the woods and seek out the one with a fragment.");
|
|
e.other:SummonItem(52355,2); -- Dilapidated Head of Shakey
|
|
e.other:Ding();
|
|
e.other:AddEXP(500);
|
|
eq.set_global("Fatestealer_shak","1",5,"F");
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|