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

Revision 1, 2.6 kB (checked in by jinshiro, 17 years ago)
Line 
1//===== eAthena Script =======================================
2//= War of Emperium Kafras for N Guild Castles
3//===== By: ==================================================
4//= kobra_k88
5//===== Current Version: =====================================
6//= 1.2
7//===== Compatible With: =====================================
8//= eAthena 0.1+; RO Episode 5+
9//===== Description: =========================================
10//= Provides Kafra services for guild members of NGuild Castles.
11//= Used in conjuction with function F_Kafra.
12//===== Additional Comments: =================================
13//= Based off existing guild scripts.  Do not know if it is accurate.[kobra_k88]
14//= 1.1 All N Guild Kafras teleport to Prontera only! [Lupus]
15//= 1.2 Added Kafra function. [L0ne_W0lf]
16//============================================================
17
18
19function        script  F_GKafra        {
20        cutin "kafra_01",2;
21        set @GID, GetCastleData(getarg(0),1);
22        if (getcharid(2) == @GID && getgdskilllv(@GID,10001)) goto L_StartG;
23
24        mes "[Kafra Service]";
25        mes "I am contracted to provide service only for the ^ff0000" + GetGuildName(@GID) + "^000000 Guild. Please use another Kafra Corporation staff member around here. I am Sorry for your inconvenience.";
26        cutin "",255;
27        close;
28L_StartG:
29        set @wrpP[0], 200;
30        set @wrpD$[0], getarg(1);
31        setarray @wrpC$[0], @wrpD$[0]+" ^880000"+@wrpP[0]+"^000000 z", "Cancel", "", "", "","";
32        callfunc "F_Kafra",2,0,0,0,800;
33        end;
34}
35
36// Castle 1 ===============================================
37nguild_alde,218,170,0   script  Kafra Service#N01       117,{
38        callfunc "F_GKafra", "nguild_alde", "Prontera";
39        end;
40OnRecvCastleN01:
41        if (GetCastleData("nguild_alde",9) < 1) disablenpc "Kafra Service#N01";
42        end;
43}
44
45// Castle 2 ===============================================
46//nguild_gef,96,173,0   script  Kafra Service#N02       117,{
47nguild_gef,35,37,0      script  Kafra Service#N02       117,{
48        callfunc "F_GKafra", "nguild_gef", "Prontera";
49        end;
50OnRecvCastleN02:
51        if (GetCastleData("nguild_gef",9) < 1) disablenpc "Kafra Service#N02";
52        end;
53}
54
55// Castle 3 ===============================================
56nguild_pay,128,58,3     script  Kafra Service#N03       117,{
57        callfunc "F_GKafra", "nguild_pay", "Prontera";
58        end;
59OnRecvCastleN03:
60        if (GetCastleData("nguild_pay",9) < 1) disablenpc "Kafra Service#N03";
61        end;
62}
63
64// Castle 4 ===============================================
65nguild_prt,96,173,0     script  Kafra Service#N04       117,{
66        callfunc "F_GKafra", "nguild_prt", "Prontera";
67        end;
68OnRecvCastleN04:
69        if (GetCastleData("nguild_prt",9) < 1) disablenpc "Kafra Service#N04";
70        end;
71}
Note: See TracBrowser for help on using the browser.