summaryrefslogblamecommitdiff
path: root/npc/guild/old/guardian/prtg_cas05_guardian.txt
blob: 392623a114e143c8047f12a01f390ccd4b429998 (plain) (tree)





























































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

prtg_cas05.gat,266,266,0	script	Guardian_D05	-1,{
OnAgitStart:
	if (GetCastleData("prtg_cas05.gat",10) <= 0) goto Guardian2;
	guardian "prtg_cas05.gat",244,15,"Soldier Guardian",1287,1,"Guardian_D05::OnGuardianDied",0;
	goto Guardian2;
Guardian2:
	if (GetCastleData("prtg_cas05.gat",11) <= 0) goto Guardian3;
	guardian "prtg_cas05.gat",241,14,"Soldier Guardian",1287,1,"Guardian_D05::OnGuardianDied",1;
	goto Guardian3;
Guardian3:
	if (GetCastleData("prtg_cas05.gat",12) <= 0) goto Guardian4;
	guardian "prtg_cas05.gat",68,40,"Soldier Guardian",1287,1,"Guardian_D05::OnGuardianDied",2;
	goto Guardian4;
Guardian4:
	if (GetCastleData("prtg_cas05.gat",13) <= 0) goto Guardian5;
	guardian "prtg_cas05.gat",62,264,"Archer Guardian",1285,1,"Guardian_D05::OnGuardianDied",3;
	goto Guardian5;
Guardian5:
	if (GetCastleData("prtg_cas05.gat",14) <= 0) goto Guardian6;
	guardian "prtg_cas05.gat",244,61,"Archer Guardian",1285,1,"Guardian_D05::OnGuardianDied",4;
	goto Guardian6;
Guardian6:
	if (GetCastleData("prtg_cas05.gat",15) <= 0) goto Guardian7;
	guardian "prtg_cas05.gat",34,24,"Knight Guardian",1286,1,"Guardian_D05::OnGuardianDied",5;
	goto Guardian7;
Guardian7:
	if (GetCastleData("prtg_cas05.gat",16) <= 0) goto Guardian8;
	guardian "prtg_cas05.gat",208,86,"Knight Guardian",1286,1,"Guardian_D05::OnGuardianDied",6;
	goto Guardian8;
Guardian8:
	if (GetCastleData("prtg_cas05.gat",17) <= 0) goto NoSpawn;
	guardian "prtg_cas05.gat",43,70,"Knight Guardian",1286,1,"Guardian_D05::OnGuardianDied",7;
	break;
OnAgitEliminate:
	//Kill all guardians on castle takeover
	//killmonster "prtg_cas05.gat","Guardian_D05::OnGuardianDied";
	break;
OnGuardianDied:
	// Event when Guardian dies
	MapAnnounce "prtg_cas05.gat","A Guardian Has Fallen",17;
	break;
OnAgitEnd:
	break;
NoSpawn:
	break;
}
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------