-- items: 1680
local counting;

function event_spawn(e)
	eq.set_timer("letbegin",240000);
	counting = 0;
end

function event_say(e)
	if(e.message:findi("hail")) then -- Part of Shaman Epic 1.0
		e.self:Emote("turns his head slowly toward you but his eyes never come into focus. You can't tell if he's looking at you, behind you, or right in front of his own face. Then, suddenly, he shouts at the top of his lungs, 'HOOOOKAAAHEEEEYYYY! I AM [" .. eq.say_link("ABE") .. "]!");
	elseif(e.message:findi("Abe")) then -- Part of Shaman Epic 1.0
		e.self:Say("Nothing is hidden. All is discernible if you only know where to look and you have the right [" .. eq.say_link("eyes") .. "]. Don't be angry with me if you can't get your eyes right to see what you're looking for. I'd lend you mine but I don't wear the same size.");
	elseif(e.message:findi("eyes")) then -- Part of Shaman Epic 1.0
		e.self:Emote("begins to draw a picture in the mud with his finger although it doesn't seem to make any sense at all. He points to his picture and nods approvingly at you, saying, 'You see? The curtains fell and it was naught but a dream upon a landscape that we thought we knew. The dream of the [" .. eq.say_link("combine") .. "] fulfilled when we finally trimmed our fingernails and looked into the mud. And now we are abandoned, in a world that none can see, no one has the eyes.");
	elseif(e.message:findi("combine")) then -- Part of Shaman Epic 1.0
		e.self:Emote("shakes his head in amusement and says, 'Heheheh, yeah, you'd think so, wouldn't you? But I guess not.");
	elseif(e.message:findi("broken arrow")) then -- Part of Shaman Epic 1.0
		e.self:Emote("'s eyes suddenly come into focus, looking deep into your own and says, 'There was a time when we cared for the world and trod with the spirits along the paths of the cosmos. We built many great things and worked to preserve what was. I came here to wait for an answer when we began to die off. We could not figure why this was and I was chosen to come here and commune with our friends. We carved an arrow, and everyone who was left shaved a sliver of wood from it. We let it drop to hallowed ground and our highest shaman stepped on it, breaking it. I've been waiting here for so long. So, so long, to give it to the spirits, and thank them.");
	elseif(e.message:findi("give them the arrow")) then -- Part of Shaman Epic 1.0
		e.self:Emote("removes a quiver slung across his shoulder and solemnly hands it to you without a word.");
		e.other:SummonItem(1680); -- Item: Broken Arrow
	end
end

function event_timer(e)
	if(e.timer == "letbegin") then
		counting = counting + 1;
	end
	
	if (counting == 1) then
		e.self:Say("Shaman? My time will soon be at hand and I fear I will never see our friends again. But the arrow must be given, our holy broken arrow. Shaman, will you bear our obligation and [" .. eq.say_link("give them the arrow") .. "]? You will know who to give it to when it is time.");
	elseif (counting == 2) then
		e.self:Emote("suddenly gasps and says, 'I have found it! I know the answer! Come with me and I will tell you. Eyes are everywhere and this knowledeg is not for everyone. Finally my centuries of waiting are over hahahaha! Follow me Shaman!");  
		eq.start(58);
	elseif (counting == 3) then
		eq.spawn2(98052,0,0,4176.4,-1563.6,-291.4,230.6); -- NPC: a_greater_spirit
		eq.depop();
		eq.stop_timer("letbegin");
	end
end

-- Abe_the_Abandoned
