root/npc/guild/aldeg_cas02.txt @ 3

Revision 1, 6.2 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 2
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,149,97,4      script  Hohenschwangau#a2-1::Hohenschwangau     722,{
19        end;
20
21OnRecvCastleA02:
22        FlagEmblem GetCastleData("aldeg_cas02",1);
23        end;
24}
25
26// Guild Flag (Outside Castle)
27//============================================================
28alde_gld,99,251,4       script  Hohenschwangau#a2-2::Hohenschwangau2    722,{
29        set .@GID, GetCastleData("aldeg_cas02",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_cas02",1)) {
50                                        warp "aldeg_cas02",84,74;
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
70OnRecvCastleA02:
71        FlagEmblem GetCastleData("aldeg_cas02",1);
72        end;
73}
74
75alde_gld,99,244,4       duplicate(Hohenschwangau2)      Hohenschwangau#a2-3     722
76
77// Guild Flag (Inside Castle)
78//============================================================
79aldeg_cas02,82,71,2     script  Hohenschwangau#a2-4::Hohenschwangau3    722,{
80        set .@GID, GetCastleData("aldeg_cas02",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
109OnRecvCastleA02:
110        FlagEmblem GetCastleData("aldeg_cas02",1);
111        end;
112}
113
114aldeg_cas02,67,30,2     duplicate(Hohenschwangau3)      Hohenschwangau#a2-5     722
115aldeg_cas02,183,140,2   duplicate(Hohenschwangau3)      Hohenschwangau#a2-6     722
116aldeg_cas02,212,152,2   duplicate(Hohenschwangau3)      Hohenschwangau#a2-7     722
117aldeg_cas02,108,39,2    duplicate(Hohenschwangau3)      Hohenschwangau#a2-8     722
118aldeg_cas02,57,213,2    duplicate(Hohenschwangau3)      Hohenschwangau#a2-9     722
119aldeg_cas02,91,181,2    duplicate(Hohenschwangau3)      Hohenschwangau#a2-10    722
120aldeg_cas02,103,53,2    duplicate(Hohenschwangau3)      Hohenschwangau#a2-11    722
121aldeg_cas02,73,53,2     duplicate(Hohenschwangau3)      Hohenschwangau#a2-12    722
122aldeg_cas02,63,41,2     duplicate(Hohenschwangau3)      Hohenschwangau#a2-13    722
123aldeg_cas02,229,6,2     duplicate(Hohenschwangau3)      Hohenschwangau#a2-14    722
124aldeg_cas02,230,40,2    duplicate(Hohenschwangau3)      Hohenschwangau#a2-15    722
125aldeg_cas02,197,40,2    duplicate(Hohenschwangau3)      Hohenschwangau#a2-16    722
126aldeg_cas02,32,213,2    duplicate(Hohenschwangau3)      Hohenschwangau#a2-17    722
127aldeg_cas02,121,29,2    duplicate(Hohenschwangau3)      Hohenschwangau#a2-18    722
128
129// AGIT Manager
130//============================================================
131aldeg_cas02,214,24,0    duplicate(Gld_Agit_Manager)     Agit#aldeg_cas02        -1
132
133// Steward
134//============================================================
135aldeg_cas02,78,74,0     duplicate(Gld_Mngr_Template)    Chenchenlie#aldeg_cas02 55
136
137// Guardians
138//============================================================
139aldeg_cas02,78,74,0     duplicate(Gld_Guard_Template)   Guardian#aldeg_cas02    -1
140
141// Kafra Staff
142//============================================================
143aldeg_cas02,84,74,0     duplicate(Gld_Kafra_Template)   Kafra Staff#aldeg_cas02 117
144
145// Master's Room Exit
146//============================================================
147aldeg_cas02,139,235,0   script  #switch_A02     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_cas02",78,75;
154                break;
155        case 2:
156                break;
157        }
158        end;
159}
160
161// Guild Treasure Protection
162//============================================================
163aldeg_cas02,135,230,0   duplicate(Gld_Trea_Protect)     ban_warp#aldeg_cas02    -1,8,8
164
165// Guild Treasure Spawns
166//============================================================
167aldeg_cas02,135,230,0   duplicate(Gld_Trea_Spawn)       Treasure#aldeg_cas02    -1
168
169// Guild Dungeon Switch
170//============================================================
171aldeg_cas02,194,136,0   duplicate(Gld_Dun_Template)     #aldeg_cas02    111
Note: See TracBrowser for help on using the browser.