1 | //===== eAthena Script ======================================= |
---|
2 | //= War of Emperium (Payon) |
---|
3 | //===== By: ================================================== |
---|
4 | //= L0ne_W0lf |
---|
5 | //===== Current Version: ===================================== |
---|
6 | //= 1.0 |
---|
7 | //===== Compatible With: ===================================== |
---|
8 | //= eAthena SVN |
---|
9 | //===== Description: ========================================= |
---|
10 | //= NPCs that relate to Payon Guild Castle 5 |
---|
11 | //===== Additional Comments: ================================= |
---|
12 | //= 1.0 First Version. No longer uses functions. [L0ne_W0lf] |
---|
13 | //============================================================ |
---|
14 | |
---|
15 | // Guild Flag (Town) |
---|
16 | //============================================================ |
---|
17 | payon,166,165,3 script Bamboo Grove Hill#f5-1::BambooGroveHill 722,{ |
---|
18 | end; |
---|
19 | |
---|
20 | OnRecvCastlePy05: |
---|
21 | FlagEmblem GetCastleData("payg_cas05",1); |
---|
22 | end; |
---|
23 | } |
---|
24 | |
---|
25 | payon,123,322,4 duplicate(BambooGroveHill) Bamboo Grove Hill#f5-2 722 |
---|
26 | |
---|
27 | // Guild Flag (Outside Castle) |
---|
28 | //============================================================ |
---|
29 | pay_gld,208,268,4 script Bamboo Grove Hill#f5-3::BambooGroveHill2 722,{ |
---|
30 | set .@GID, GetCastleData("payg_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("payg_cas05",1)) { |
---|
51 | warp "payg_cas05",276,227; |
---|
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 | OnRecvCastlePy05: |
---|
72 | FlagEmblem GetCastleData("payg_cas05",1); |
---|
73 | end; |
---|
74 | } |
---|
75 | |
---|
76 | pay_gld,199,268,4 duplicate(BambooGroveHill2) Bamboo Grove Hill#f5-4 722 |
---|
77 | pay_gld,190,277,3 duplicate(BambooGroveHill2) Bamboo Grove Hill#f5-5 722 |
---|
78 | pay_gld,187,294,2 duplicate(BambooGroveHill2) Bamboo Grove Hill#f5-6 722 |
---|
79 | |
---|
80 | // Guild Flag (Inside Castle) |
---|
81 | //============================================================ |
---|
82 | payg_cas05,32,249,4 script Bamboo Grove Hill#f5-7::BambooGroveHill3 722,{ |
---|
83 | set .@GID, GetCastleData("payg_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 | OnRecvCastlePy05: |
---|
113 | FlagEmblem GetCastleData("payg_cas05",1); |
---|
114 | end; |
---|
115 | } |
---|
116 | |
---|
117 | payg_cas05,24,249,4 duplicate(BambooGroveHill3) Bamboo Grove Hill#f5-8 722 |
---|
118 | payg_cas05,62,271,0 duplicate(BambooGroveHill3) Bamboo Grove Hill#f5-9 722 |
---|
119 | payg_cas05,57,271,0 duplicate(BambooGroveHill3) Bamboo Grove Hill#f5-10 722 |
---|
120 | payg_cas05,55,252,2 duplicate(BambooGroveHill3) Bamboo Grove Hill#f5-11 722 |
---|
121 | payg_cas05,55,260,2 duplicate(BambooGroveHill3) Bamboo Grove Hill#f5-12 722 |
---|
122 | |
---|
123 | // AGIT Manager |
---|
124 | //============================================================ |
---|
125 | payg_cas05,30,30,0 duplicate(Gld_Agit_Manager) Agit#payg_cas05 -1 |
---|
126 | |
---|
127 | // Steward |
---|
128 | //============================================================ |
---|
129 | payg_cas05,277,249,3 duplicate(Gld_Mngr_Template) Nahzarf#payg_cas05 55 |
---|
130 | |
---|
131 | // Guardians |
---|
132 | //============================================================ |
---|
133 | payg_cas05,277,249,3 duplicate(Gld_Guard_Template) Guardian#payg_cas05 -1 |
---|
134 | |
---|
135 | // Kafra Staff |
---|
136 | //============================================================ |
---|
137 | payg_cas05,276,227,1 duplicate(Gld_Kafra_Template) Kafra Staff#payg_cas05 117 |
---|
138 | |
---|
139 | // Master's Room Exit |
---|
140 | //============================================================ |
---|
141 | payg_cas05,161,136,0 script #switch_Py05 111,{ |
---|
142 | mes " "; |
---|
143 | mes "There's a small lever. Will you pull it? "; |
---|
144 | next; |
---|
145 | switch(select("Pull.:Do not.")) { |
---|
146 | case 1: |
---|
147 | warp "payg_cas05",277,250; |
---|
148 | break; |
---|
149 | case 2: |
---|
150 | break; |
---|
151 | } |
---|
152 | end; |
---|
153 | } |
---|
154 | |
---|
155 | // Guild Treasure Protection |
---|
156 | //============================================================ |
---|
157 | payg_cas05,157,132,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas05 -1,6,6 |
---|
158 | |
---|
159 | // Guild Treasure Spawns |
---|
160 | //============================================================ |
---|
161 | payg_cas05,157,132,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas05 -1 |
---|
162 | |
---|
163 | // Guild Dungeon Switch |
---|
164 | //============================================================ |
---|
165 | payg_cas05,248,14,0 duplicate(Gld_Dun_Template) #payg_cas05 111 |
---|