summaryrefslogblamecommitdiff
path: root/npc/guild/old/guardian/gefg_cas03_guardian.txt
blob: 92079febd7edc95f9abc5f4349ad36d0649b9f76 (plain) (tree)


































































                                                                                                                                                                                            
//===== eAthena Script =======================================
//= War of Emperium - gefg_cas03 guardians script
//===== By: ==================================================
//= holyAngelX (1.0)
//===== Current Version: =====================================
//= 1.2
//===== Compatible With: =====================================
//= eAthena 0.1+; RO Episode 4+
//===== Description: =========================================
//= Guardians Spawn Script in gefg_cas03
//===== Additional Comments: =================================
//= 1.1 by joedukk
//= 1.2 by Akaru and Valaris
//============================================================

gefg_cas03.gat,245,167,0	script	Guardian_B03	-1,{
OnAgitInit:
	if (GetCastleData("gefg_cas03.gat",10) <= 0) goto Guardian2;
	guardian "gefg_cas03.gat",101,53,"Soldier Guardian",1287,1,"Guardian_B03::OnGuardianDied",0; 
	goto Guardian2;
Guardian2:
	if (GetCastleData("gefg_cas03.gat",11) <= 0) goto Guardian3;
	guardian "gefg_cas03.gat",158,40,"Soldier Guardian",1287,1,"Guardian_B03::OnGuardianDied",1; 
	goto Guardian3;
Guardian3:
	if (GetCastleData("gefg_cas03.gat",12) <= 0) goto Guardian4;
	guardian "gefg_cas03.gat",158,67,"Soldier Guardian",1287,1,"Guardian_B03::OnGuardianDied",2;
	goto Guardian4;
Guardian4:
	if (GetCastleData("gefg_cas03.gat",13) <= 0) goto Guardian5;
	guardian "gefg_cas03.gat",229,53,"Archer Guardian",1285,1,"Guardian_B03::OnGuardianDied",3; 
	goto Guardian5;
Guardian5:
	if (GetCastleData("gefg_cas03.gat",14) <= 0) goto Guardian6;
	guardian "gefg_cas03.gat",248,53,"Archer Guardian",1285,1,"Guardian_B03::OnGuardianDied",4; 
	goto Guardian6;
Guardian6:
	if (GetCastleData("gefg_cas03.gat",15) <= 0) goto Guardian7;
	guardian "gefg_cas03.gat",122,53,"Knight Guardian",1286,1,"Guardian_B03::OnGuardianDied",5; 
	goto Guardian7;
Guardian7:
	if (GetCastleData("gefg_cas03.gat",16) <= 0) goto Guardian8;
	guardian "gefg_cas03.gat",243,35,"Knight Guardian",1286,1,"Guardian_B03::OnGuardianDied",6; 
	goto Guardian8;
Guardian8:
	if (GetCastleData("gefg_cas03.gat",17) <= 0) goto NoSpawn;
	guardian "gefg_cas03.gat",234,33,"Knight Guardian",1286,1,"Guardian_B03::OnGuardianDied",7; 
	break;

OnAgitEliminate:
	//Kill all guardians on castle takeover
	//killmonster "gefg_cas03.gat","Guardian_B03::GuardianDied";
	break;

OnGuardianDied:
	// Event when Guardian dies
	MapAnnounce "gefg_cas03.gat","A Guardian Has Fallen",17;
	break;	

OnAgitEnd:
	break;

NoSpawn:
	break;

}
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------