43 lines
2.8 KiB
Lua
43 lines
2.8 KiB
Lua
-- items: 12621, 13761, 2131, 2134, 2127, 2126, 2129, 2125, 2133, 12223, 2034, 2171, 2164
|
|
function event_say(e)
|
|
if(e.message:findi("hail")) then
|
|
e.self:Say("Welcome to my humble shop. I offer fine items fashioned from the skins of the beasts of Everfrost. Leather is my specialty and I can always use [extra hides].");
|
|
elseif(e.message:findi("extra hides")) then
|
|
e.self:Say("I will offer any hunter some used Tattered Armor for every Polar Bear Skin. I am sure that even you can wrestle the skins from the back of a polar bear cub.");
|
|
elseif(e.message:findi("second job")) then
|
|
e.self:Say("I have seen the warriors bringing in items called Wrath Orc Wristbands. Apparently they find them upon the lifeless bodies of the snow orc troopers. They are made from a skin I have yet to find. I will gladly reward you with either a Rawhide Tunic or Leggings or even perhaps Leather Gloves. All I ask for are Two Wrath Orc Wristbands.");
|
|
elseif(e.message:findi("mammoth hide parchment")) then
|
|
e.self:Say("Oh, for Jinkus? Ok, here you go."); --Text made up
|
|
e.other:SummonItem(12621); --Mammoth Hide Parchment
|
|
end
|
|
end
|
|
|
|
function event_trade(e)
|
|
local item_lib = require("items");
|
|
if(item_lib.check_turn_in(e.trade, {item1 = 13761})) then
|
|
e.self:Say("This is much appreciated. Please accept this used armor in return and also a gold piece for yer troubles. You have done well! I may have a [second job] fer ye, if ye like?");
|
|
e.other:SummonItem(eq.ChooseRandom(2131, 2134, 2127, 2126, 2129, 2125, 2133)); -- Item(s): Large Tattered Belt (2131)
|
|
e.other:Ding();
|
|
e.other:Faction(328, 5); -- Faction: Merchants of Halas
|
|
e.other:Faction(320, 5); -- Faction: Wolves of the North
|
|
e.other:Faction(327, 5); -- Faction: Shamen of Justice
|
|
e.other:Faction(305, -5); -- Faction: Rogues of the White Rose
|
|
e.other:AddEXP(150);
|
|
e.other:GiveCash(0,0,1,0);
|
|
elseif(item_lib.check_turn_in(e.trade, {item1 = 12223, item2 = 12223})) then
|
|
e.self:Say("Fine work hunter! As your reward please accept this item which I have fashioned for you.");
|
|
e.other:SummonItem(eq.ChooseRandom(2034, 2171, 2164)); -- Item(s): Large Leather Gloves (2034)
|
|
e.other:Ding();
|
|
e.other:Faction(328, 5); -- Faction: Merchants of Halas
|
|
e.other:Faction(320, 5); -- Faction: Wolves of the North
|
|
e.other:Faction(327, 5); -- Faction: Shamen of Justice
|
|
e.other:Faction(305, -5); -- Faction: Rogues of the White Rose
|
|
e.other:AddEXP(150);
|
|
end
|
|
item_lib.return_items(e.self, e.other, e.trade)
|
|
end
|
|
|
|
-------------------------------------------------------------------------------------------------
|
|
-- Converted to .lua using MATLAB converter written by Stryd and manual edits by Speedz
|
|
-- Find/replace data for .pl --> .lua conversions provided by Speedz, Stryd, Sorvani and Robregen
|
|
-------------------------------------------------------------------------------------------------
|