summaryrefslogblamecommitdiff
path: root/npc/guild/old/guardian/aldeg_cas02_guardian.txt
blob: 64671a4722b4677c29eff8e0a85a5cf58b52da9c (plain) (tree)


































































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

aldeg_cas02.gat,214,24,0	script	Guardian_A02	-1,{
OnAgitInit:
	if (GetCastleData("aldeg_cas02.gat",10) <= 0) goto Guardian2;
	guardian "aldeg_cas02.gat",22,186,"Soldier Guardian",1287,1,"Guardian_A02::OnGuardianDied",0;
	goto Guardian2;
Guardian2:
	if (GetCastleData("aldeg_cas02.gat",11) <= 0) goto Guardian3;
	guardian "aldeg_cas02.gat",88,31,"Soldier Guardian",1287,1,"Guardian_A02::OnGuardianDied",1; 
	goto Guardian3;
Guardian3:
	if (GetCastleData("aldeg_cas02.gat",12) <= 0) goto Guardian4;
	guardian "aldeg_cas02.gat",207,176,"Soldier Guardian",1287,1,"Guardian_A02::OnGuardianDied",2;
	goto Guardian4;
Guardian4:
	if (GetCastleData("aldeg_cas02.gat",13) <= 0) goto Guardian5;
	guardian "aldeg_cas02.gat",50,201,"Archer Guardian",1285,1,"Guardian_A02::OnGuardianDied",3;
	goto Guardian5;
Guardian5:
	if (GetCastleData("aldeg_cas02.gat",14) <= 0) goto Guardian6;
	guardian "aldeg_cas02.gat",197,146,"Archer Guardian",1285,1,"Guardian_A02::OnGuardianDied",4;
	goto Guardian6;
Guardian6:
	if (GetCastleData("aldeg_cas02.gat",15) <= 0) goto Guardian7;
	guardian "aldeg_cas02.gat",71,193,"Knight Guardian",1286,1,"Guardian_A02::OnGuardianDied",5;
	goto Guardian7;
Guardian7:
	if (GetCastleData("aldeg_cas02.gat",16) <= 0) goto Guardian8;
	guardian "aldeg_cas02.gat",88,31,"Knight Guardian",1286,1,"Guardian_A02::OnGuardianDied",6;
	goto Guardian8;
Guardian8:
	if (GetCastleData("aldeg_cas02.gat",17) <= 0) goto NoSpawn;
	guardian "aldeg_cas02.gat",219,148,"Knight Guardian",1286,1,"Guardian_A02::OnGuardianDied",7;
	break;

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

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

OnAgitEnd:
	break;

NoSpawn:
	break;

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