//===== Athena Script =====================================
//= Juperos Dungeon Quests
//===== By ================================================
//= MasterOfMuppets
//===== Version ===========================================
//= 1.0
//===== Compatible With ===================================
//= eAthena 1.0
//===== Description =======================================
//= 
//===== Comments ==========================================
//= 1.0 First version, partly implemented [MasterOfMuppets]
//=========================================================

juperos_01,79,91,1	script	Sculpture#Juperos1	111,{

	mes "^3131FFIt's a sculpture that";
	mes "looks familiar to you.";
	close;

}

juperos_01,100,71,1	script	Bronze Statue#Juperos2	111,{

	mes "^3131FFIt's an elaborate";
	mes "bronze statue that";
	mes "is twice the height of";
	mes "a normal human being.";
	close;

}

juperos_01,124,92,1	script	Stone Statue#Juperos3	111,{

	mes "^3131FFIt's an old";
	mes "statue sculpted";
	mes "out of stone.";
	close;

}

//Quest related?
//juperos_01,x,y,1	script	Bronze Statue#Juperos4	111,{
//
//	mes "^3131FFThere's a peculiar";
//	mes "engraving on the";
//	mes "Bronze Statue's rod.";
//	next;
//	menu "Investigate",s_Invest,"Ignore it",-;
//
//	close;
//
//s_Invest:
//
//	mes "^3131FFIt's an inscription that's";
//	mes "written in an old language";
//	mes "that you can't understand,";
//	mes "but have no problem reading";
//	mes "and making out the sounds";
//	mes "for some weird reason.";
//	next;
//	mes "[" + strcharinfo(0) + "]";
//	mes "This is creepy!";
//	mes "I know that I'm not";
//	mes "supposed to be able";
//	mes "to read this, but here";
//	mes "I am. I know what sounds";
//	mes "all of these letters make...";
//	next;
//	mes "[" + strcharinfo(0) + "]";
//	mes "Huh. Only a scholar,";
//	mes "maybe someone even in";
//	mes "Juno, could make sense";
//	mes "of what this stuff says.";
//	close;
//
//}

juperos_02,1,1,1	script	JuperosLvl2QuestInit	-1,{
OnInit:
while(1)
	{

		monster "juperos_02",24,276,"1st Gate Switch",1674,1,"JuperosLvl2QuestInit::OnGate1Dead";
		monster "juperos_02",240,29,"2nd Gate Switch",1674,1,"JuperosLvl2QuestInit::OnGate2Dead";
		monster "juperos_02",282,183,"3rd Gate Switch",1674,1,"JuperosLvl2QuestInit::OnGate3Dead";
		end;

OnGate1Dead:

	mapannounce "juperos_02","Have you come seeking Juperos?! It no longer exists...",1,0xFF0000;
	set $JupeGate1,1;
	if($JupeGate1 && $JupeGate2 && $JupeGate3)goto s_WarpOpen;
	end;

OnGate2Dead:

	mapannounce "juperos_02","Who are you to come here?",1,0xFF0000;
	set $JupeGate2,1;
	if($JupeGate1 && $JupeGate2 && $JupeGate3)goto s_WarpOpen;
	end;

OnGate3Dead:

	mapannounce "juperos_02","Have you come to see me? Fine! Find me first!",1,0xFF0000;
	set $JupeGate3,1;
	if($JupeGate1 && $JupeGate2 && $JupeGate3)goto s_WarpOpen;
	end;

s_WarpOpen:
	attachnpctimer;
	initnpctimer;
		end;
	OnTimer3000:
		mapannounce "juperos_02","Vroom! Vroom!",1,0xBA55D3;
		end;
	OnTimer6000:
		mapannounce "juperos_02","Attention, visitors.",1,0xBA55D3;
		end;
	OnTimer9000:
		mapannounce "juperos_02","You are allowed to enter the next zone for a short period of time. Please use the portal in the center of the map.",1,0xBA55D3;
		enablenpc "JupeWarp2";
		end;
	OnTimer309000:
		mapannounce "juperos_02","The portal has now closed.",1,0xBA55D3;
		disablenpc "JupeWarp2";
		set $JupeGate1,0;
		set $JupeGate2,0;
		set $JupeGate3,0;
	stopnpctimer;
	}
}