projecteq-projecteqquests/everfrost/Megan_OReilly.lua
2021-02-07 20:50:01 -08:00

37 lines
1.8 KiB
Lua

-- items: 17945, 13244, 13245
function event_say(e)
if(e.message:findi("hail")) then
e.self:Say("Brrrr.. It.. Is sooo.. c-cold!! I never.. sh-should've j-joined.. the.. the W-wolves of the N-north!!");
elseif(e.message:findi("ivan's remains")) then
e.self:Say("You were sent to retrieve the remains? I am sorry, I lost them. It was not my fault! There was no escort as I was told. I got lost returning to Halas and ended up on a frozen river. The ice broke and the remains were scattered into the freezing water. Will you [dive for the remains]?");
elseif(e.message:findi("dive for the remains")) then
e.self:Say("Thank the Tribunal!! I would have, but I cannot swim. Take this chest. Fill it with the four pieces which fell below the surface. I know not what else lies within. When you fill the box and combine the items, return it to Renth. Good luck, $name.");
e.other:SummonItem(17945); -- Item: Empty Box
end
end
function event_trade(e)
local item_lib = require("items");
if(item_lib.check_turn_in(e.trade, {item1 = 13244})) then -- One Quarter Bottle of Elixir
e.self:Say("Oh thank you. Sorry, but the bottle is empty now. I hope you did't need any. Take the empty bottle back to Dargon. He may refill it for you.");
e.other:SummonItem(13245); -- Empty Bottle of Elixir
e.other:Ding();
e.other:Faction(328,1,0); -- Merchants of Halas
e.other:Faction(327,1,0); -- Shaman of Justice
e.other:Faction(311,1,0); -- Steel Warriors
e.other:Faction(320,1,0); -- Wolves of the North
e.other:AddEXP(150);
end
item_lib.return_items(e.self, e.other, e.trade);
end
function event_waypoint_arrive(e)
if(e.wp == 3) then
e.self:SetRunning(true);
elseif(e.wp == 6) then
e.self:SetRunning(false);
end
end
-- END of FILE Zone:everfrost ID:30029, 30096, 30119 -- Megan_OReilly