root/npc/guild/prtg_cas02.txt @ 11

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