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