root/npc/guild/prtg_cas01.txt @ 23

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