root/npc/guild/prtg_cas04.txt @ 23

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