summaryrefslogtreecommitdiff
path: root/npc/guild/old/guardian/gefg_cas01_guardian.txt
blob: 06996e4d51ee9b3a6b439fe5f9817a50b37ec632 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//===== eAthena Script =======================================
//= War of Emperium - gefg_cas01 guardians script
//===== By: ==================================================
//= holyAngelX (1.0)
//===== Current Version: =====================================
//= 1.2
//===== Compatible With: =====================================
//= eAthena 0.1+; RO Episode 4+
//===== Description: =========================================
//= Guardians Spawn Script in gefg_cas01
//===== Additional Comments: =================================
//= 1.1 by joedukk
//= 1.2 by Akaru and Valaris
//============================================================

gefg_cas01.gat,198,182,0	script	Guardian_B01	-1,{
OnAgitInit:
	if (GetCastleData("gefg_cas01.gat",10) <= 0) goto Guardian2;
	guardian "gefg_cas01.gat",30,178,"Soldier Guardian",1287,1,"Guardian_B01::OnGuardianDied",0; 
	goto Guardian2;
Guardian2:
	if (GetCastleData("gefg_cas01.gat",11) <= 0) goto Guardian3;
	guardian "gefg_cas01.gat",64,180,"Soldier Guardian",1287,1,"Guardian_B01::OnGuardianDied",1; 
	goto Guardian3;
Guardian3:
	if (GetCastleData("gefg_cas01.gat",12) <= 0) goto Guardian4;
	guardian "gefg_cas01.gat",61,25,"Soldier Guardian",1287,1,"Guardian_B01::OnGuardianDied",2;
	goto Guardian4;
Guardian4:
	if (GetCastleData("gefg_cas01.gat",13) <= 0) goto Guardian5;
	guardian "gefg_cas01.gat",61,44,"Archer Guardian",1285,1,"Guardian_B01::OnGuardianDied",3; 
	goto Guardian5;
Guardian5:
	if (GetCastleData("gefg_cas01.gat",14) <= 0) goto Guardian6;
	guardian "gefg_cas01.gat",189,43,"Archer Guardian",1285,1,"Guardian_B01::OnGuardianDied",4; 
	goto Guardian6;
Guardian6:
	if (GetCastleData("gefg_cas01.gat",15) <= 0) goto Guardian7;
	guardian "gefg_cas01.gat",51,192,"Knight Guardian",1286,1,"Guardian_B01::OnGuardianDied",5; 
	goto Guardian7;
Guardian7:
	if (GetCastleData("gefg_cas01.gat",16) <= 0) goto Guardian8;
	guardian "gefg_cas01.gat",49,67,"Knight Guardian",1286,1,"Guardian_B01::OnGuardianDied",6; 
	goto Guardian8;
Guardian8:
	if (GetCastleData("gefg_cas01.gat",17) <= 0) goto NoSpawn;
	guardian "gefg_cas01.gat",181,14,"Knight Guardian",1286,1,"Guardian_B01::OnGuardianDied",7; 
	break;

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

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

OnAgitEnd:
	break;

NoSpawn:
	break;

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