mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
32 lines
1.3 KiB
Lua
32 lines
1.3 KiB
Lua
-- items: 10035, 10080, 10081, 10082
|
|
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Hrrump?! Who you? " .. e.other:GetName() .. "? What you want with Lynuga? Me am out [collecting]. Leave me be!");
|
|
elseif(e.message:findi("collecting")) then
|
|
e.self:Say("I collect all sort's of thing's. Gem's be my favorite. Me really like rubies. If you have ruby, give to me! Why you want to know? You want to steal my collection?!? I squish you if you do!!");
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
|
|
if(item_lib.check_turn_in(e.trade, {item1 = 10035})) then -- Handin: Ruby
|
|
e.self:Say("Mmm. Ruby!! Me thank's you! Here take this, me got it off dead someone who try take my collection. Me think's this valuable thing..");
|
|
local item_random = math.random(100);
|
|
if item_random < 10 then
|
|
e.other:SummonItem(10082, 6); -- Ivandyr's Hoop
|
|
elseif item_random < 50 then
|
|
e.other:SummonItem(10080); -- Brutechopper
|
|
else
|
|
e.other:SummonItem(10081, 5); -- Midnight Mallet
|
|
end
|
|
e.other:Ding();
|
|
e.other:Faction(222,1,0); -- Faction: Broken Skull Clan
|
|
e.other:Faction(308,-1,0); -- Faction: Shadowknights of Night Keep
|
|
e.other:Faction(235,-1,0); -- Faction: DaBashers
|
|
e.other:AddEXP(500);
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|
|
|
|
-- EOF
|