root/npc/guild/gefg_cas01.txt @ 11

Revision 1, 5.5 kB (checked in by jinshiro, 17 years ago)
Line 
1//===== eAthena Script =======================================
2//= War of Emperium (Geffen)
3//===== By: ==================================================
4//= L0ne_W0lf
5//===== Current Version: =====================================
6//= 1.0
7//===== Compatible With: =====================================
8//= eAthena SVN
9//===== Description: =========================================
10//= NPCs that relate to Geffen Guild Castle 1
11//===== Additional Comments: =================================
12//= 1.0 First Version. No longer uses functions. [L0ne_W0lf]
13//============================================================
14
15// Guild Flag (Town)
16//============================================================
17geffen,109,123,2        script  Repherion#g1-1::Repherion       722,{
18        end;
19
20OnRecvCastleG01:
21        FlagEmblem GetCastleData("gefg_cas01",1);
22        end;
23}
24
25// Guild Flag (Outside Castle)
26//============================================================
27gef_fild13,148,51,5     script  Repherion#g1-2::Repherion2      722,{
28        set .@GID, GetCastleData("gefg_cas01",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("gefg_cas01",1)) {
49                                        warp "gefg_cas01",83,47;
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
69OnRecvCastleG01:
70        FlagEmblem GetCastleData("gefg_cas01",1);
71        end;
72}
73
74gef_fild13,155,54,5     duplicate(Repherion2)   Repherion#g1-3  722
75gef_fild13,212,79,6     duplicate(Repherion2)   Repherion#g1-4  722
76gef_fild13,211,71,6     duplicate(Repherion2)   Repherion#g1-5  722
77
78// Guild Flag (Inside Castle)
79//============================================================
80gefg_cas01,28,157,4     script  Repherion#g1-6::Repherion3      722,{
81        set .@GID, GetCastleData("gefg_cas01",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
110OnRecvCastleG01:
111        FlagEmblem GetCastleData("gefg_cas01",1);
112        end;
113}
114
115gefg_cas01,22,156,5     duplicate(Repherion3)   Repherion#g1-7  722
116gefg_cas01,68,185,3     duplicate(Repherion3)   Repherion#g1-8  722
117gefg_cas01,17,171,5     duplicate(Repherion3)   Repherion#g1-9  722
118gefg_cas01,59,16,4      duplicate(Repherion3)   Repherion#g1-10 722
119gefg_cas01,64,16,4      duplicate(Repherion3)   Repherion#g1-11 722
120
121// AGIT Manager
122//============================================================
123gefg_cas01,198,182,0    duplicate(Gld_Agit_Manager)     Agit#gefg_cas01 -1
124
125// Steward
126//============================================================
127gefg_cas01,40,48,5      duplicate(Gld_Mngr_Template)    Gnahcher#gefg_cas01     55
128
129// Guardians
130//============================================================
131gefg_cas01,40,48,5      duplicate(Gld_Guard_Template)   Guardian#gefg_cas01     -1
132
133// Kafra Staff
134//============================================================
135gefg_cas01,84,47,0      duplicate(Gld_Kafra_Template)   Kafra Staff#gefg_cas01  117
136
137// Master's Room Exit
138//============================================================
139gefg_cas01,152,117,0    script  #switch_G01     111,{
140        mes " ";
141        mes "There's a small lever. Will you pull it? ";
142        next;
143        switch(select("Pull.:Do not.")) {
144        case 1:
145                warp "gefg_cas01",40,49;
146                break;
147        case 2:
148                break;
149        }
150        end;
151}
152
153// Guild Treasure Protection
154//============================================================
155gefg_cas01,154,112,0    duplicate(Gld_Trea_Protect)     ban_warp#gefg_cas01     -1,6,6
156
157// Guild Treasure Spawns
158//============================================================
159gefg_cas01,154,112,0    duplicate(Gld_Trea_Spawn)       Treasure#gefg_cas01     -1
160
161// Guild Dungeon Switch
162//============================================================
163gefg_cas01,78,84,0      duplicate(Gld_Dun_Template)     #gefg_cas01     111
Note: See TracBrowser for help on using the browser.