root/npc/guild/aldeg_cas05.txt @ 1

Revision 1, 6.1 kB (checked in by jinshiro, 17 years ago)
Line 
1//===== eAthena Script =======================================
2//= War of Emperium (Al De baran)
3//===== By: ==================================================
4//= L0ne_W0lf
5//===== Current Version: =====================================
6//= 1.1
7//===== Compatible With: =====================================
8//= eAthena SVN
9//===== Description: =========================================
10//= NPCs that relate to Al De Baran Guild Castle 5
11//===== Additional Comments: =================================
12//= 1.0 First Version. No longer uses functions. [L0ne_W0lf]
13//= 1.1 Corrected flag-in spawn point. [L0ne_W0lf]
14//============================================================
15
16// Guild Flag (Town)
17//============================================================
18aldebaran,128,97,4      script  Rothenburg#a5-1::Rothenburg     722,{
19        end;
20
21OnRecvCastleA05:
22        FlagEmblem GetCastleData("aldeg_cas05",1);
23        end;
24}
25
26// Guild Flag (Outside Castle)
27//============================================================
28alde_gld,265,93,6       script  Rothenburg#a5-2::Rothenburg2    722,{
29        set .@GID, GetCastleData("aldeg_cas05",1);
30        if (.@GID == 0) {
31                mes " [ Edict of the Divine Rune Midgard Kingdom ]";
32                mes " ";
33                mes "1. Follow the ordinance of The Divine Rune Midgard Kingdom, ";
34                mes "We declare that";
35                mes "there is no formal master of this castle.";
36                mes " ";
37                mes "2. To the one who can ";
38                mes "overcome all trials";
39                mes "and destroy the Emperium,";
40                mes "the king will endow the one with";
41                mes "ownership of this castle.";
42        }
43        else {
44                if (getcharid(2) == .@GID) {
45                        mes "Brave ones...";
46                        mes "Do you wish to return to your honorable place?";
47                        next;
48                        if (select("Return to the guild castle.:Quit.") == 1) {
49                                if (getcharid(2) == GetCastleData("aldeg_cas05",1)) {
50                                        warp "aldeg_cas05",31,190;
51                                        end;
52                                }
53                        }
54                        close;
55                }
56                mes "[ Edict of the Divine Rune Midgard Kingdom ]";
57                mes " ";
58                mes "1. Following the ordinance of the";
59                mes "Divine Rune Midgard Kingdom,";
60                mes "we approve that this place is in";
61                mes "the private possession of ^ff0000" + GetGuildName(.@GID) + "^000000 Guild.";
62                mes " ";
63                mes "2. The guild Master of ^ff0000"+ GetGuildName(.@GID) + "^000000 Guild is";
64                mes "^FF0000" + GetGuildMaster(.@GID) + "^000000";
65                mes "If there is anyone who objects to this,";
66                mes " prove your strength and honor with a steel blade in your hand.";
67        }
68        close;
69
70OnRecvCastleA05:
71        FlagEmblem GetCastleData("aldeg_cas05",1);
72        end;
73}
74
75alde_gld,265,87,6       duplicate(Rothenburg2)  Rothenburg#a5-3 722
76
77// Guild Flag (Inside Castle)
78//============================================================
79aldeg_cas05,170,85,2    script  Rothenburg#a5-4::Rothenburg3    722,{
80        set .@GID, GetCastleData("aldeg_cas05",1);
81        if (.@GID == 0) {
82                mes " [ Edict of the Divine Rune Midgard Kingdom ]";
83                mes " ";
84                mes "1. Follow the ordinance of The Divine Rune Midgard Kingdom, ";
85                mes "We declare that";
86                mes "there is no formal master of this castle.";
87                mes " ";
88                mes "2. To the one who can ";
89                mes "overcome all trials";
90                mes "and destroy the Emperium,";
91                mes "the king will endow the one with";
92                mes "ownership of this castle.";
93        }
94        else {
95                mes "[ Edict of the Divine Rune Midgard Kingdom ]";
96                mes " ";
97                mes "1. Following the ordinance of the";
98                mes "Divine Rune Midgard Kingdom,";
99                mes "we approve that this place is in";
100                mes "the private possession of ^ff0000" + GetGuildName(.@GID) + "^000000 Guild.";
101                mes " ";
102                mes "2. The guild Master of ^ff0000"+ GetGuildName(.@GID) + "^000000 Guild is";
103                mes "^FF0000" + GetGuildMaster(.@GID) + "^000000";
104                mes "If there is anyone who objects to this,";
105                mes " prove your strength and honor with a steel blade in your hand.";
106        }
107        close;
108
109OnRecvCastleA05:
110        FlagEmblem GetCastleData("aldeg_cas05",1);
111        end;
112}
113
114aldeg_cas05,142,212,2   duplicate(Rothenburg3)  Rothenburg#a5-5 722
115aldeg_cas05,149,196,2   duplicate(Rothenburg3)  Rothenburg#a5-6 722
116aldeg_cas05,41,180,2    duplicate(Rothenburg3)  Rothenburg#a5-7 722
117aldeg_cas05,38,201,2    duplicate(Rothenburg3)  Rothenburg#a5-8 722
118aldeg_cas05,65,182,2    duplicate(Rothenburg3)  Rothenburg#a5-9 722
119aldeg_cas05,65,205,2    duplicate(Rothenburg3)  Rothenburg#a5-10        722
120aldeg_cas05,10,218,2    duplicate(Rothenburg3)  Rothenburg#a5-11        722
121aldeg_cas05,164,201,2   duplicate(Rothenburg3)  Rothenburg#a5-12        722
122aldeg_cas05,14,117,2    duplicate(Rothenburg3)  Rothenburg#a5-14        722
123aldeg_cas05,10,225,2    duplicate(Rothenburg3)  Rothenburg#a5-15        722
124aldeg_cas05,187,59,2    duplicate(Rothenburg3)  Rothenburg#a5-16        722
125aldeg_cas05,154,51,2    duplicate(Rothenburg3)  Rothenburg#a5-17        722
126aldeg_cas05,22,211,2    duplicate(Rothenburg3)  Rothenburg#a5-18        722
127aldeg_cas05,150,202,2   duplicate(Rothenburg3)  Rothenburg#a5-19        722
128
129// AGIT Manager
130//============================================================
131aldeg_cas05,28,102,0    duplicate(Gld_Agit_Manager)     Agit#aldeg_cas05        -1
132
133// Steward
134//============================================================
135aldeg_cas05,52,179,0    duplicate(Gld_Mngr_Template)    Blemhemsen#aldeg_cas05  55
136
137// Guardians
138//============================================================
139aldeg_cas05,52,179,0    duplicate(Gld_Guard_Template)   Guardian#aldeg_cas05    -1
140
141// Kafra Staff
142//============================================================
143aldeg_cas05,31,190,0    duplicate(Gld_Kafra_Template)   Kafra Staff#aldeg_cas05 117
144
145// Master's Room Exit
146//============================================================
147aldeg_cas05,64,8,0      script  #switch_A05     111,{
148        mes " ";
149        mes "There's a small lever. Will you pull it? ";
150        next;
151        switch(select("Pull.:Do not.")) {
152        case 1:
153                warp "aldeg_cas05",51,179;
154                break;
155        case 2:
156                break;
157        }
158        end;
159}
160
161// Guild Treasure Protection
162//============================================================
163aldeg_cas05,62,12,0     duplicate(Gld_Trea_Protect)     ban_warp#aldeg_cas05    -1,8,8
164
165// Guild Treasure Spawns
166//============================================================
167aldeg_cas05,62,12,0     duplicate(Gld_Trea_Spawn)       Treasure#aldeg_cas05    -1
168
169// Guild Dungeon Switch
170//============================================================
171aldeg_cas05,22,205,0    duplicate(Gld_Dun_Template)     #aldeg_cas05    111
Note: See TracBrowser for help on using the browser.