root/npc/events/nguild/nguild_dunsw.txt @ 1

Revision 1, 2.1 kB (checked in by jinshiro, 17 years ago)
Line 
1//===== eAthena Script =======================================
2//= War of Emperium Dungeon Switch for NGuild Castles
3//===== By: ==================================================
4//= kobra_k88
5//===== Current Version: =====================================
6//= 1.1
7//===== Compatible With: =====================================
8//= eAthena 0.1+; RO Episode 4+
9//===== Description: =========================================
10//= Switch that warps guild members to the guild dungeon
11//===== Additional Comments: =================================
12//= Based off existing guild scripts.  Do not know if it is accurate.[kobra_k88]
13//= 1.1 Guild Dungeon Switch Fucntion added. [L0ne_W0lf]
14//============================================================
15
16
17//==================================================
18function        script  F_GldDunSw      {
19        set .@GID, GetCastleData(getarg(0),1);
20        if (.@GID == 0) {
21                mes "[ Echoing Voice ]";
22                mes " ' The one who can overcome an ordeal and show true bravery... will find the way... ' ";
23                close;
24        }
25        else {
26                mes "[ Echoing Voice ]";
27                mes " ' Only the one who can show true bravery can take this test. '";
28                next;
29                mes " ";
30                mes "There's a small lever. Will you pull it?";
31                next;
32
33                if (select("Pull.:Do not.") == 1) {
34                        if (getcharid(2) == .@GID) {
35                                warp "gld_dun"+getarg(1),getarg(2),getarg(3);
36                                end;
37                        }
38                        mes " ";
39                        mes " Nothing happened.";
40                }
41                return;
42        }
43}
44
45// Castle 1 ===============================================
46nguild_alde,212,181,0   script  Switch#DunN01   111,{
47        callfunc "F_GldDunSw","nguild_alde","02",32,122;
48        close;
49}
50
51// Castle 2 ===============================================
52nguild_gef,78,84,0      script  Switch#DunN02   111,{
53        callfunc "F_GldDunSw","nguild_gef","04",39,258;
54        close;
55}
56
57// Castle 3 ===============================================
58nguild_pay,101,25,0     script  Switch#DunN03   111,{
59        callfunc "F_GldDunSw","nguild_pay","01",186,165;
60        close;
61}
62
63// Castle 4 ===============================================
64nguild_prt,94,200,0     script  Switch#DunN04   111,{
65        callfunc "F_GldDunSw","nguild_prt","03",28,251;
66        close;
67}
Note: See TracBrowser for help on using the browser.