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