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