summaryrefslogblamecommitdiff
path: root/npc/guild/aldeg/aldeg_guardians.txt
blob: 64212cbaa813fd6fbbb652fad24f1f9b8b2959ca (plain) (tree)




















                                                              







                                                                                                                                                  












                                                                                







                                                                                                                                                  









                                                                                







                                                                                                                                                  









                                                                                







                                                                                                                                                 









                                                                                







                                                                                                                                                  






                                                                 
//===== eAthena Script =======================================
//= War of Emperium - aldeg_cas guardians script
//===== By: ==================================================
//= holyAngelX (1.0)
//===== Current Version: =====================================
//= 1.2a
//===== Compatible With: =====================================
//= eAthena 0.1+; RO Episode 4+
//===== Description: =========================================
//= Re-spawns guardians on server start if they have been
//= purchased.  Also announces when a guardian dies.
//===== Additional Comments: =================================
//= 1.1 by joedukk
//= 1.2 by Akaru and Valaris
//= 1.2a Guardians for all aldeg castles are now in this file.
//= Minor optimizations.[kobra_k88]
//============================================================


aldeg_cas01.gat,216,24,0	script	Guardian_A01	-1,{
OnAgitInit:
	if (GetCastleData("aldeg_cas01.gat",10) == 1) guardian "aldeg_cas01.gat",18,219,"Soldier Guardian",1287,"Guardian_A01::OnGuardianDied",0;
	if (GetCastleData("aldeg_cas01.gat",11) == 1) guardian "aldeg_cas01.gat",117,42,"Soldier Guardian",1287,"Guardian_A01::OnGuardianDied",1;
	if (GetCastleData("aldeg_cas01.gat",12) == 1) guardian "aldeg_cas01.gat",207,153,"Soldier Guardian",1287,"Guardian_A01::OnGuardianDied",2;
	if (GetCastleData("aldeg_cas01.gat",13) == 1) guardian "aldeg_cas01.gat",68,70,"Archer Guardian",1285,"Guardian_A01::OnGuardianDied",3;
	if (GetCastleData("aldeg_cas01.gat",14) == 1) guardian "aldeg_cas01.gat",187,140,"Archer Guardian",1285,"Guardian_A01::OnGuardianDied",4;
	if (GetCastleData("aldeg_cas01.gat",15) == 1) guardian "aldeg_cas01.gat",62,204,"Knight Guardian",1286,"Guardian_A01::OnGuardianDied",5;
	if (GetCastleData("aldeg_cas01.gat",16) == 1) guardian "aldeg_cas01.gat",113,100,"Knight Guardian",1286,"Guardian_A01::OnGuardianDied",6;
	if (GetCastleData("aldeg_cas01.gat",17) == 1) guardian "aldeg_cas01.gat",211,174,"Knight Guardian",1286,"Guardian_A01::OnGuardianDied",7;
	end;

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

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

OnGuardianDied:
	// Event when Guardian dies
	MapAnnounce "aldeg_cas02.gat","A Guardian Has Fallen",17;
	end;
}
//------------------------------------------------------------------------------
aldeg_cas03.gat,206,32,0	script	Guardian_A03	-1,{
OnAgitInit:
	if (GetCastleData("aldeg_cas03.gat",10) == 1) guardian "aldeg_cas03.gat",57,216,"Soldier Guardian",1287,"Guardian_A03::OnGuardianDied",0;
	if (GetCastleData("aldeg_cas03.gat",11) == 1) guardian "aldeg_cas03.gat",80,108,"Soldier Guardian",1287,"Guardian_A03::OnGuardianDied",1;
	if (GetCastleData("aldeg_cas03.gat",12) == 1) guardian "aldeg_cas03.gat",199,183,"Soldier Guardian",1287,"Guardian_A03::OnGuardianDied",2;
	if (GetCastleData("aldeg_cas03.gat",13) == 1) guardian "aldeg_cas03.gat",98,267,"Archer Guardian",1285,"Guardian_A03::OnGuardianDied",3;
	if (GetCastleData("aldeg_cas03.gat",14) == 1) guardian "aldeg_cas03.gat",91,88,"Archer Guardian",1285,"Guardian_A03::OnGuardianDied",4;
	if (GetCastleData("aldeg_cas03.gat",15) == 1) guardian "aldeg_cas03.gat",78,121,"Knight Guardian",1286,"Guardian_A03::OnGuardianDied",5;
	if (GetCastleData("aldeg_cas03.gat",16) == 1) guardian "aldeg_cas03.gat",200,164,"Knight Guardian",1286,"Guardian_A03::OnGuardianDied",6;
	if (GetCastleData("aldeg_cas03.gat",17) == 1) guardian "aldeg_cas03.gat",200,164,"Knight Guardian",1286,"Guardian_A03::OnGuardianDied",7;
	end;

OnGuardianDied:
	// Event when Guardian dies
	MapAnnounce "aldeg_cas03.gat","A Guardian Has Fallen",17;
	end;
}
//------------------------------------------------------------------------------
aldeg_cas04.gat,36,218,0	script	Guardian_A04	-1,{
OnAgitInit:
	if (GetCastleData("aldeg_cas04.gat",10) == 1) guardian "aldeg_cas04.gat",181,33,"Soldier Guardian",1287,"Guardian_A04::OnGuardianDied",0;
	if (GetCastleData("aldeg_cas04.gat",11) == 1) guardian "aldeg_cas04.gat",50,68,"Soldier Guardian",1287,"Guardian_A04::OnGuardianDied",1;
	if (GetCastleData("aldeg_cas04.gat",12) == 1) guardian "aldeg_cas04.gat",50,119,"Soldier Guardian",1287,"Guardian_A04::OnGuardianDied",2;
	if (GetCastleData("aldeg_cas04.gat",13) == 1) guardian "aldeg_cas04.gat",169,49,"Archer Guardian",1285,"Guardian_A04::OnGuardianDied",3;
	if (GetCastleData("aldeg_cas04.gat",14) == 1) guardian "aldeg_cas04.gat",133,196,"Archer Guardian",1285,"Guardian_A04::OnGuardianDied",4;
	if (GetCastleData("aldeg_cas04.gat",15) == 1) guardian "aldeg_cas04.gat",177,87,"Knight Guardian",1286,"Guardian_A04::OnGuardianDied",5;
	if (GetCastleData("aldeg_cas04.gat",16) == 1) guardian "aldeg_cas04.gat",50,119,"Knight Guardian",1286,"Guardian_A04::OnGuardianDied",6;
	if (GetCastleData("aldeg_cas04.gat",17) == 1) guardian "aldeg_cas04.gat",133,196,"Knight Guardian",1286,"Guardian_A04::OnGuardianDied",7;
	end;

OnGuardianDied:
	// Event when Guardian dies
	MapAnnounce "aldeg_cas04.gat","A Guardian Has Fallen",17;
	end;
}
//------------------------------------------------------------------------------
aldeg_cas05.gat,28,102,0	script	Guardian_A05	-1,{
OnAgitInit:
	if (GetCastleData("aldeg_cas05.gat",10) == 1) guardian "aldeg_cas05.gat",157,192,"Soldier Guardian",1287,"Guardian_A05::OnGuardianDied",0;
	if (GetCastleData("aldeg_cas05.gat",11) == 1) guardian "aldeg_cas05.gat",194,46,"Soldier Guardian",1287,"Guardian_A05::OnGuardianDied",1;
	if (GetCastleData("aldeg_cas05.gat",12) == 1) guardian "aldeg_cas05.gat",146,214,"Soldier Guardian",1287,"Guardian_A05::OnGuardianDied",2;
	if (GetCastleData("aldeg_cas05.gat",13) == 1) guardian "aldeg_cas05.gat",223,95,"Archer Guardian",1285,"Guardian_A05::OnGuardianDied",3;
	if (GetCastleData("aldeg_cas05.gat",14) == 1) guardian "aldeg_cas05.gat",131,223,"Archer Guardian",1285,"Guardian_A05::OnGuardianDied",4;
	if (GetCastleData("aldeg_cas05.gat",15) == 1) guardian "aldeg_cas05.gat",191,68,"Knight Guardian",1286,"Guardian_A05::OnGuardianDied",5;
	if (GetCastleData("aldeg_cas05.gat",16) == 1) guardian "aldeg_cas05.gat",160,194,"Knight Guardian",1286,"Guardian_A05::OnGuardianDied",6;
	if (GetCastleData("aldeg_cas05.gat",17) == 1) guardian "aldeg_cas05.gat",49,225,"Knight Guardian",1286,"Guardian_A05::OnGuardianDied",7;
	end;

OnGuardianDied:
	// Event when Guardian dies
	MapAnnounce "aldeg_cas05.gat","A Guardian Has Fallen",17;
	end;
}