root/npc/guild/payg_cas01.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 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//============================================================
15
16// Guild Flag (Town)
17//============================================================
18payon,166,161,3 script  Bright Arbor#f1-1::BrightArbor  722,{
19        end;
20
21OnRecvCastlePy01:
22        FlagEmblem GetCastleData("payg_cas01",1);
23        end;
24}
25
26payon,90,322,4  duplicate(BrightArbor)  Bright Arbor#f1-2       722
27
28// Guild Flag (Outside Castle)
29//============================================================
30pay_gld,125,236,4       script  Bright Arbor#f1-3::BrightArbor2 722,{
31        set .@GID, GetCastleData("payg_cas01",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_cas01",1)) {
52                                        warp "payg_cas01",212,108;
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
72OnRecvCastlePy01:
73        FlagEmblem GetCastleData("payg_cas01",1);
74        end;
75}
76
77pay_gld,110,233,4       duplicate(BrightArbor2) Bright Arbor#f1-4       722
78pay_gld,116,233,4       duplicate(BrightArbor2) Bright Arbor#f1-5       722
79pay_gld,91,239,2        duplicate(BrightArbor2) Bright Arbor#f1-6       722
80
81// Guild Flag (Inside Castle)
82//============================================================
83payg_cas01,238,67,4     script  Bright Arbor#f1-7::BrightArbor3 722,{
84        set .@GID, GetCastleData("payg_cas01",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
113OnRecvCastlePy01:
114        FlagEmblem GetCastleData("payg_cas01",1);
115        end;
116}
117
118payg_cas01,233,67,4     duplicate(BrightArbor3) Bright Arbor#f1-8       722
119payg_cas01,221,123,4    duplicate(BrightArbor3) Bright Arbor#f1-9       722
120payg_cas01,221,116,4    duplicate(BrightArbor3) Bright Arbor#f1-10      722
121payg_cas01,206,108,4    duplicate(BrightArbor3) Bright Arbor#f1-11      722
122payg_cas01,212,108,4    duplicate(BrightArbor3) Bright Arbor#f1-12      722
123
124// AGIT Manager
125//============================================================
126payg_cas01,139,139,0    duplicate(Gld_Agit_Manager)     Agit#payg_cas01 -1
127
128// Steward
129//============================================================
130payg_cas01,120,58,4     duplicate(Gld_Mngr_Template)    Kurunnadi#payg_cas01    55
131
132// Guardians
133//============================================================
134payg_cas01,120,58,4     duplicate(Gld_Guard_Template)   Guardian#payg_cas01     -1
135
136// Kafra Staff
137//============================================================
138payg_cas01,128,58,3     duplicate(Gld_Kafra_Template)   Kafra Staff#payg_cas01  117
139
140// Master's Room Exit
141//============================================================
142payg_cas01,295,8,0      script  #switch_Py01    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_cas01",120,59;
149                break;
150        case 2:
151                break;
152        }
153        end;
154}
155
156// Guild Treasure Protection
157//============================================================
158payg_cas01,291,8,0      duplicate(Gld_Trea_Protect)     ban_warp#payg_cas01     -1,6,6
159
160// Guild Treasure Spawns
161//============================================================
162payg_cas01,291,8,0      duplicate(Gld_Trea_Spawn)       Treasure#payg_cas01     -1
163
164// Guild Dungeon Switch
165//============================================================
166payg_cas01,78,84,0      duplicate(Gld_Dun_Template)     #payg_cas01     111
Note: See TracBrowser for help on using the browser.