root/npc/guild/payg_cas02.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 2
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//============================================================
15
16// Guild Flag (Town)
17//============================================================
18payon,166,173,3 script  Scarlet Palace#f2-1::ScarletPalace      722,{
19        end;
20
21OnRecvCastlePy02:
22        FlagEmblem GetCastleData("payg_cas02",1);
23        end;
24}
25
26payon,97,322,4  duplicate(ScarletPalace)        Scarlet Palace#f2-2     722
27
28// Guild Flag (Outside Castle)
29//============================================================
30pay_gld,292,112,6       script  Scarlet Palace#f2-3::ScarletPalace2     722,{
31        set .@GID, GetCastleData("payg_cas02",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_cas02",1)) {
52                                        warp "payg_cas02",22,275;
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
72OnRecvCastlePy02:
73        FlagEmblem GetCastleData("payg_cas02",1);
74        end;
75}
76
77pay_gld,292,120,6       duplicate(ScarletPalace2)       Scarlet Palace#f2-4     722
78pay_gld,291,135,6       duplicate(ScarletPalace2)       Scarlet Palace#f2-5     722
79pay_gld,271,163,0       duplicate(ScarletPalace2)       Scarlet Palace#f2-6     722
80
81// Guild Flag (Inside Castle)
82//============================================================
83payg_cas02,254,40,6     script  Scarlet Palace#f2-7::ScarletPalace3     722,{
84        set .@GID, GetCastleData("payg_cas02",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
113OnRecvCastlePy02:
114        FlagEmblem GetCastleData("payg_cas02",1);
115        end;
116}
117
118payg_cas02,254,48,6     duplicate(ScarletPalace3)       Scarlet Palace#f2-8     722
119payg_cas02,202,49,0     duplicate(ScarletPalace3)       Scarlet Palace#f2-9     722
120payg_cas02,209,49,0     duplicate(ScarletPalace3)       Scarlet Palace#f2-10    722
121payg_cas02,59,282,4     duplicate(ScarletPalace3)       Scarlet Palace#f2-11    722
122payg_cas02,70,282,4     duplicate(ScarletPalace3)       Scarlet Palace#f2-12    722
123
124// AGIT Manager
125//============================================================
126payg_cas02,39,25,0      duplicate(Gld_Agit_Manager)     Agit#payg_cas02 -1
127
128// Steward
129//============================================================
130payg_cas02,22,260,7     duplicate(Gld_Mngr_Template)    Cherieos#payg_cas02     55
131
132// Guardians
133//============================================================
134payg_cas02,22,260,7     duplicate(Gld_Guard_Template)   Guardian#payg_cas02     -1
135
136// Kafra Staff
137//============================================================
138payg_cas02,22,275,5     duplicate(Gld_Kafra_Template)   Kafra Staff#payg_cas02  117
139
140// Master's Room Exit
141//============================================================
142payg_cas02,149,148,0    script  #switch_Py02    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_cas02",22,261;
149                break;
150        case 2:
151                break;
152        }
153        end;
154}
155
156// Guild Treasure Protection
157//============================================================
158payg_cas02,145,144,0    duplicate(Gld_Trea_Protect)     ban_warp#payg_cas02     -1,6,6
159
160// Guild Treasure Spawns
161//============================================================
162payg_cas02,145,144,0    duplicate(Gld_Trea_Spawn)       Treasure#payg_cas02     -1
163
164// Guild Dungeon Switch
165//============================================================
166payg_cas02,278,247,0    duplicate(Gld_Dun_Template)     #payg_cas02     111
Note: See TracBrowser for help on using the browser.