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 | //============================================================ |
---|
18 | aldebaran,128,97,4 script Rothenburg#a5-1::Rothenburg 722,{ |
---|
19 | end; |
---|
20 | |
---|
21 | OnRecvCastleA05: |
---|
22 | FlagEmblem GetCastleData("aldeg_cas05",1); |
---|
23 | end; |
---|
24 | } |
---|
25 | |
---|
26 | // Guild Flag (Outside Castle) |
---|
27 | //============================================================ |
---|
28 | alde_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 | |
---|
70 | OnRecvCastleA05: |
---|
71 | FlagEmblem GetCastleData("aldeg_cas05",1); |
---|
72 | end; |
---|
73 | } |
---|
74 | |
---|
75 | alde_gld,265,87,6 duplicate(Rothenburg2) Rothenburg#a5-3 722 |
---|
76 | |
---|
77 | // Guild Flag (Inside Castle) |
---|
78 | //============================================================ |
---|
79 | aldeg_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 | |
---|
109 | OnRecvCastleA05: |
---|
110 | FlagEmblem GetCastleData("aldeg_cas05",1); |
---|
111 | end; |
---|
112 | } |
---|
113 | |
---|
114 | aldeg_cas05,142,212,2 duplicate(Rothenburg3) Rothenburg#a5-5 722 |
---|
115 | aldeg_cas05,149,196,2 duplicate(Rothenburg3) Rothenburg#a5-6 722 |
---|
116 | aldeg_cas05,41,180,2 duplicate(Rothenburg3) Rothenburg#a5-7 722 |
---|
117 | aldeg_cas05,38,201,2 duplicate(Rothenburg3) Rothenburg#a5-8 722 |
---|
118 | aldeg_cas05,65,182,2 duplicate(Rothenburg3) Rothenburg#a5-9 722 |
---|
119 | aldeg_cas05,65,205,2 duplicate(Rothenburg3) Rothenburg#a5-10 722 |
---|
120 | aldeg_cas05,10,218,2 duplicate(Rothenburg3) Rothenburg#a5-11 722 |
---|
121 | aldeg_cas05,164,201,2 duplicate(Rothenburg3) Rothenburg#a5-12 722 |
---|
122 | aldeg_cas05,14,117,2 duplicate(Rothenburg3) Rothenburg#a5-14 722 |
---|
123 | aldeg_cas05,10,225,2 duplicate(Rothenburg3) Rothenburg#a5-15 722 |
---|
124 | aldeg_cas05,187,59,2 duplicate(Rothenburg3) Rothenburg#a5-16 722 |
---|
125 | aldeg_cas05,154,51,2 duplicate(Rothenburg3) Rothenburg#a5-17 722 |
---|
126 | aldeg_cas05,22,211,2 duplicate(Rothenburg3) Rothenburg#a5-18 722 |
---|
127 | aldeg_cas05,150,202,2 duplicate(Rothenburg3) Rothenburg#a5-19 722 |
---|
128 | |
---|
129 | // AGIT Manager |
---|
130 | //============================================================ |
---|
131 | aldeg_cas05,28,102,0 duplicate(Gld_Agit_Manager) Agit#aldeg_cas05 -1 |
---|
132 | |
---|
133 | // Steward |
---|
134 | //============================================================ |
---|
135 | aldeg_cas05,52,179,0 duplicate(Gld_Mngr_Template) Blemhemsen#aldeg_cas05 55 |
---|
136 | |
---|
137 | // Guardians |
---|
138 | //============================================================ |
---|
139 | aldeg_cas05,52,179,0 duplicate(Gld_Guard_Template) Guardian#aldeg_cas05 -1 |
---|
140 | |
---|
141 | // Kafra Staff |
---|
142 | //============================================================ |
---|
143 | aldeg_cas05,31,190,0 duplicate(Gld_Kafra_Template) Kafra Staff#aldeg_cas05 117 |
---|
144 | |
---|
145 | // Master's Room Exit |
---|
146 | //============================================================ |
---|
147 | aldeg_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 | //============================================================ |
---|
163 | aldeg_cas05,62,12,0 duplicate(Gld_Trea_Protect) ban_warp#aldeg_cas05 -1,8,8 |
---|
164 | |
---|
165 | // Guild Treasure Spawns |
---|
166 | //============================================================ |
---|
167 | aldeg_cas05,62,12,0 duplicate(Gld_Trea_Spawn) Treasure#aldeg_cas05 -1 |
---|
168 | |
---|
169 | // Guild Dungeon Switch |
---|
170 | //============================================================ |
---|
171 | aldeg_cas05,22,205,0 duplicate(Gld_Dun_Template) #aldeg_cas05 111 |
---|