-- items: 18726, 13546
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(18726) then
		e.other:Message(MT.Yellow,"An important looking Erudite turns to greet you as you enter the room. 'Greetings. A young recruit perhaps? I am Depnar Bulrious, your new Guild Master. Read the note in your inventory and then hand it to me when you are ready to begin your training. Truth awaits!'");
	end
end

function event_say(e)
	if(e.message:findi("hail")) then
		e.self:Say("Hail. " .. e.other:GetName() .. "! I am the master of the paladins among the Peacekeepers. Have you joined the harmony of the Peacekeepers or are you merely a visitor?");
	elseif(e.message:findi("joined")) then
		e.self:Say("Then go and speak with the other Peacekeepers. Do your part to promote the words of Quellious.");
	end
end

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

	if(item_lib.check_turn_in(e.trade, {item1 = 18726})) then -- Tattered Note
		e.self:Say("Welcome to the Temple of Divine Light. I am Master Bulrious. Here. we study and spread the will of Quellious. Here is your guild tunic. Go find Jras Solsier. he will get you started with your first lesson.");
		e.other:SummonItem(13546); -- Faded Silver Tunic*
		e.other:Ding();
		e.other:Faction(298,100,0); -- Peace Keepers
		e.other:Faction(266,25,0); -- High Council of Erudin
		e.other:Faction(265,-25,0); -- Heretics
		e.other:AddEXP(100);
	end
	item_lib.return_items(e.self, e.other, e.trade);
end

-- END of FILE Zone:erudnext  ID:98062 -- Depnar_Bulrious
