-- items: 18708, 13501, 28058, 7501
function event_spawn(e)
	local xloc = e.self:GetX();
	local yloc = e.self:GetY();
	eq.set_proximity(xloc - 50, xloc + 50, yloc - 50, yloc + 50);
end

function event_enter(e)
	if e.other:HasItem(18708) then
		e.other:Message(MT.Yellow,"As your eyes adjust to the dark interior of the room, a sly looking man turns towards you. 'Shh! Not too loudly. I am Hanns if you are here to start your training, read the note in your inventory and hand it to me.'");
	end
end

function event_signal(e)
	if(e.signal == 1) then
		e.self:Say("Yes, I just got some new information from Prak this evening. He says they found out the spy is working for some bandit in the Karanas named Rujahn Tahslek. You used to work out there. do you recognize the name?");
		eq.signal(2085,2); -- NPC: Zannsin_Resdinet Rogue Guildmaster
	elseif(e.signal == 2) then
		e.self:Say("Hmmff.. Anyway, send someone to Prak. I want this job done quickly. Let's show these pathetic bandits that they've been nosing around in the wrong places.");
		eq.signal(2085,3); -- NPC: Zannsin_Resdinet Rogue Guildmaster
	elseif(e.signal == 3) then
		e.self:Say("Lomarc is already back. He sent word that the guards are on to him, so he's laying low for a bit. He also said the cost for delivery just went up, because he had to pay off the owner of the Mermaid's Lure.");
		eq.signal(2033,1); -- NPC: Renux_Herkanor Rogue Guildmaster
	elseif(e.signal == 4) then
		e.self:Say("Finally, the rat comes out of his hole! Send some men, no no, go yourself, and track him down. Then kill him. I don't care who sees you, or who gets in your way. Finish the job. And bring me whatever you find on his carcass. I'm sure he took some valuables from us when he escaped. And don't worry about Malka, she will keep until you finish Stanos, then she is yours. Shame to waste such talent, but you don't steal from the Circle and live.");
		eq.signal(2033,2); -- NPC: Renux_Herkanor Rogue Guildmaster
	end
end

function event_say(e)
	if(e.message:findi("hail")) then
		e.self:Say("My name is Hanns..  Do as I say. and we shall get along just fine.");
	elseif(e.message:findi("carson has a mole in the highpass")) then
		e.self:Say("Arrgg, that Carson can't control anything. Sometimes he's practically useless. Go tell Zannsin that [I want him to send some of his men to Prak in Highpass], to help Carson get back on track.");
	end
end

function event_trade(e)
	local item_lib = require("items");

	if(item_lib.check_turn_in(e.trade, {item1 = 18708})) then -- Napkin From Crow's
		e.self:Say("Lucky thing you weren't followed. or you'd be breathing through holes in your back right now. Go find Knargon, maybe you can help run the next [shipment]. Remember, we keep our business quiet, so watch yourself, sewer crawler.");
		e.other:SummonItem(13501); -- Second Hand Tunic*
		e.other:Ding();
		e.other:Faction(223,100,0); -- Circle of Unseen Hands
		e.other:Faction(291,-15,0); -- Merchants of Qeynos
		e.other:Faction(230,15,0); -- Corrupt Qeynos Guards
		e.other:Faction(262,-15,0); -- Guards of Qeynos
		e.other:Faction(273,10,0); -- Kane Bayle
		e.other:AddEXP(100);
	elseif(item_lib.check_turn_in(e.trade, {item1 = 28058})) then
		e.self:Say("Well done, " .. e.other:GetName() .. "."); -- Text made up
		e.other:SummonItem(7501); -- Item: Fanged Skull Stiletto
		e.other:Ding();
		e.other:Faction(223,20,0); -- Circle of Unseen Hands
		e.other:AddEXP(50000);
	end
	item_lib.return_items(e.self, e.other, e.trade);
end

-- Submitted by Jim Mills
