function event_say(e)
if(e.message:findi("hail")) then
e.self:Say("Greetings, " .. e.other:GetCleanName() .. ", I have heard of you. My name is Wenglawks Kkeak. Welcome to my humble home. My sources tell me you are a [mercenary]. Is this true?");
elseif(e.message:findi("mercenary")) then
e.self:Say("Well then, I suppose you might be [looking] for work. Are you?");
elseif(e.message:findi("looking")) then
e.self:Say("I have been looking for a few good people to deliver goods for me. I have several [deliveries] to clients which must be made soon. My last delivery person ended up dead, unfortunately.");
elseif(e.message:findi("deliveries")) then
e.self:Say("I have three clients whose orders must be taken care of. These will not be simple deliveries. I want you not only to deliver the items but to assist them if they need help using their packages. Do you wish to hear of the first task I have for you?");
elseif(e.message:findi("first task")) then
e.self:Say("One of my clients lives on the shores of the Iceclad Ocean. His name is Sojan. Supposedly he is some kind of pirate from the other lands. However, I could not care less what he calls himself. He paid me well to acquire him a set of Coldain tools and they were not easy to come by. Are you willing to take this [package] to Sonjan?");
elseif(e.message:findi("deliver good")) then
-- Toolset Delivery (kael)
e.self:Say("Wonderful, " .. e.other:GetCleanName() .. ". Take this note to Kellek and he will give you the tools.");
e.other:SummonCursorItem(25279); -- Summon: Voucher for toolset
elseif(e.message:findi("undertake")) then
-- Spear Delivery (kael)
e.self:Say("In the great divide there is a small outpost of kromrif. In that outpost you will find Bekerak, my client. I have acquired this new hunting spear for him and he may wish to test it out. Because of one simple mistake, once in my past, he thinks all of my wares are shoddy. I need the payment for the transaction still so don't let him get away without giving it to you. Take this voucher to Kellek and he will give you the spear.");
e.other:SummonCursorItem(25280); -- Summon: Voucher for Spear
elseif(e.message:findi("third client")) then
-- Mechanical Net Delivery (kael)
e.self:Say("Are you sure you will be up to this journey? It will take a hardened person to survive the trip. Let alone find my client. Do you really [want to go] out into the dangerous lands in the west?");
elseif(e.message:findi("want to go")) then
-- Mechanical Net Delivery (kael)
e.self:Say("I'm not sure if I can [trust] you with this. If you die on the trip, I will be losing profit! The other deliveries were much simpler, I remind you. Can I really [trust] you as far as I can throw you? Wait, that's a bad example - I could probably throw you quite far.");
elseif(e.message:findi("trust")) then
-- Mechanical Net Delivery (kael)
e.self:Say("I will curse your immortal soul if you fail, " .. e.other:GetCleanName() .. ". In the depths of the icy waters of the cobalt scar lives an outcast siren who preys upon her own kind. We have a deal, I will provide her with an excellent hunting net and she will provide me with a giant cloak made of the scales of her kind. Take this voucher to Kellek and deliver the net. Do whatever it takes to get my cloak.");
e.other:SummonCursorItem(25281); -- Summon: Voucher for Mechanical Net
end
end
function event_trade(e)
local item_lib = require("items");
if(item_lib.check_turn_in(e.self, e.trade, {item1 = 28600,platinum = 200}, 0)) then
-- Key to Cobalt Scar (skyshrine)
e.self:Say("Here is the information your employer requested. Now be gone. I have more business to take care of.");
e.other:QuestReward(e.self,0,0,0,0,28601); -- Message to Herald
elseif(item_lib.check_turn_in(e.self, e.trade, {item1 = 20474}, 0)) then -- Receipt
e.self:Say("I assume the delivery went well? You can have these as payment. One of my customers just decided he does not wish to buy them. They are rather sturdy! I do have another task available if you wish to [undertake] it.");
e.other:QuestReward(e.self,0,0,0,0,25062,1000); -- Engraved Bone Pauldrons
elseif(item_lib.check_turn_in(e.self, e.trade, {item1 = 25130}, 0)) then -- Giant Icewurm Talisman
e.self:Say("He has reconsidered the offer, you say? This is most excellent! I hope this will be acceptable payment for your troubles, " .. e.other:GetCleanName() .. ". My cash situation is not the best at this point in time. I do have a [third client] who needs delivery...");
e.other:QuestReward(e.self,0,0,0,0,25061,1500); -- Bracer of Midnight
elseif(item_lib.check_turn_in(e.self, e.trade, {item1 = 25110}, 0)) then -- Giant Siren Scale Cloak
e.self:Say("It is truly a sight to behold. This is the most fashionable cloak I have yet to see. Even King Tormax will be green with envy. This old bag has served me well, I hope you find it to your liking.");
e.other:QuestReward(e.self,0,0,0,0,17049,2000); -- Wenglawks Manly Purse
elseif(item_lib.check_turn_in(e.self, e.trade, {item1 = 1722}, 0)) then -- Helssen's Voucher
e.self:Say("So you are the mercenary I have been hearing about! Not what I expected. Anyway, here is your reward. Carry it well. Also, this noble's seal will prove your loyalty to anyone who is skeptical.");
e.other:QuestReward(e.self,{items = {1719,1723},exp = 2000}); -- Girdle of Reflection, Noble's Seal
elseif(item_lib.check_turn_in(e.self, e.trade, {item1 = 29068, platinum = 100}, 0)) then
e.self:Say("Here is the information your employer requested. Now be gone. I have more business to take care of.");
e.other:QuestReward(e.self,0,0,0,0,29626);
end
item_lib.return_items(e.self, e.other, e.trade)
end
function event_waypoint_arrive(e)
if(e.wp == 23) then
if(eq.get_entity_list():IsMobSpawnedByNpcTypeID(113066) or eq.get_entity_list():IsMobSpawnedByNpcTypeID(113166) or eq.get_entity_list():IsMobSpawnedByNpcTypeID(113065)) then
eq.zone_emote(0,"Wenglawks Kkeak says 'Well well, how is business going today gentlemen?'");
eq.zone_emote(0,"Graggaz Fleshflayer says 'You're not wanted around here, Wenglawks. Go back to your bar and count your ill gotten gains.'");
eq.zone_emote(0,"Kevelak Whitefang says 'I hope Bvellos finds out what you've been up to. Your head would look nice on a pike in front of Dragon Death Keep.'");
eq.zone_emote(0,"Wevek Redforge says 'What is it you want, Wenglawks? We're honest merchants around here.'");
end
elseif(e.wp == 24) then
if(eq.get_entity_list():IsMobSpawnedByNpcTypeID(113066) or eq.get_entity_list():IsMobSpawnedByNpcTypeID(113065)) then
eq.zone_emote(0,"Wenglawks Kkeak says 'Hold your tongues fools. How dare you accuse me of such things when I come here simply to extend an offer to you. If you are not interested in a proposition I am sure I can find someone else...'");
eq.zone_emote(0,"Graggaz Fleshflayer says 'Watch what you say, Wevek. You might end up with a knife in your back if you don't deal with this knave.'");
eq.zone_emote(0,"Wevek Redforge says 'I'm not interested in any of your 'deals.' I won't end up face down with a knife in my back like your delivery man...'");
end
elseif(e.wp == 25) then
if(eq.get_entity_list():IsMobSpawnedByNpcTypeID(113065)) then
eq.zone_emote(0,"Wenglawks Kkeak says 'Very well then. I see you are all fools. Enjoy trading with the outlanders while you can. My business will continue to thrive long after they are gone.'");
eq.zone_emote(0,"Wevek Redforge says 'Your days are numbered, Wenglawks. Enjoy them while you can. Rallos Zek does not smile upon traitors.'");
end
end
end