root/npc/guild/payg_cas03.txt @ 10

Revision 1, 5.7 kB (checked in by jinshiro, 17 years ago)
Line 
1//===== eAthena Script =======================================
2//= War of Emperium (Payon)
3//===== By: ==================================================
4//= L0ne_W0lf
5//===== Current Version: =====================================
6//= 1.1
7//===== Compatible With: =====================================
8//= eAthena SVN
9//===== Description: =========================================
10//= NPCs that relate to Payon Guild Castle 3
11//===== Additional Comments: =================================
12//= 1.0 First Version. No longer uses functions. [L0ne_W0lf]
13//= 1.1 Corrected treasure room switch coordinates. [L0ne_W0lf]
14//============================================================
15
16// Guild Flag (Town)
17//============================================================
18payon,166,177,3 script  Holy Shadow#f3-1::HolyShadow    722,{
19        end;
20
21OnRecvCastlePy03:
22        FlagEmblem GetCastleData("payg_cas03",1);
23        end;
24}
25
26payon,113,322,4 duplicate(HolyShadow)   Holy Shadow#f3-2        722
27
28// Guild Flag (Outside Castle)
29//============================================================
30pay_gld,321,298,2       script  Holy Shadow#f3-3::HolyShadow2   722,{
31        set .@GID, GetCastleData("payg_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("payg_cas03",1)) {
52                                        warp "payg_cas03",9,263;
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
72OnRecvCastlePy03:
73        FlagEmblem GetCastleData("payg_cas03",1);
74        end;
75}
76
77pay_gld,321,289,2       duplicate(HolyShadow2)  Holy Shadow#f3-4        722
78pay_gld,327,304,1       duplicate(HolyShadow2)  Holy Shadow#f3-5        722
79pay_gld,333,254,4       duplicate(HolyShadow2)  Holy Shadow#f3-6        722
80
81// Guild Flag (Inside Castle)
82//============================================================
83payg_cas03,236,54,2     script  Holy Shadow#f3-7::HolyShadow3   722,{
84        set .@GID, GetCastleData("payg_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
113OnRecvCastlePy03:
114        FlagEmblem GetCastleData("payg_cas03",1);
115        end;
116}
117
118payg_cas03,236,45,2     duplicate(HolyShadow3)  Holy Shadow#f3-8        722
119payg_cas03,259,66,4     duplicate(HolyShadow3)  Holy Shadow#f3-9        722
120payg_cas03,266,66,4     duplicate(HolyShadow3)  Holy Shadow#f3-10       722
121payg_cas03,34,31,4      duplicate(HolyShadow3)  Holy Shadow#f3-11       722
122payg_cas03,43,31,4      duplicate(HolyShadow3)  Holy Shadow#f3-12       722
123
124// AGIT Manager
125//============================================================
126payg_cas03,269,265,0    duplicate(Gld_Agit_Manager)     Agit#payg_cas03 -1
127
128// Steward
129//============================================================
130payg_cas03,10,277,0     duplicate(Gld_Mngr_Template)    Gheriot#payg_cas03      55
131
132// Guardians
133//============================================================
134payg_cas03,10,277,0     duplicate(Gld_Guard_Template)   Guardian#payg_cas03     -1
135
136// Kafra Staff
137//============================================================
138payg_cas03,9,263,5      duplicate(Gld_Kafra_Template)   Kafra Staff#payg_cas03  117
139
140// Master's Room Exit
141//============================================================
142payg_cas03,163,167,0    script  #switch_Py03    111,{
143        mes " ";
144        mes "There's a small lever. Will you pull it? ";
145        next;
146        switch(select("Pull.:Do not.")) {
147        case 1:
148                warp "payg_cas03",50,261;
149                break;
150        case 2:
151                break;
152        }
153        end;
154}
155
156// Guild Treasure Protection
157//============================================================
158payg_cas03,159,168,0    duplicate(Gld_Trea_Protect)     ban_warp#payg_cas03     -1,6,6
159
160// Guild Treasure Spawns
161//============================================================
162payg_cas03,159,168,0    duplicate(Gld_Trea_Spawn)       Treasure#payg_cas03     -1
163
164// Guild Dungeon Switch
165//============================================================
166payg_cas03,20,44,0      duplicate(Gld_Dun_Template)     #payg_cas03     111
Note: See TracBrowser for help on using the browser.