summaryrefslogtreecommitdiff
path: root/npc/events/nguild/nguild_kafras.txt
blob: 8b448bbe3e12a9150ac56bc66347c0ced71fc70f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
//================= Hercules Script =======================================
//=       _   _                     _
//=      | | | |                   | |
//=      | |_| | ___ _ __ ___ _   _| | ___  ___
//=      |  _  |/ _ \ '__/ __| | | | |/ _ \/ __|
//=      | | | |  __/ | | (__| |_| | |  __/\__ \
//=      \_| |_/\___|_|  \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2015  Hercules Dev Team
//= Copyright (C)  L0ne_W0lf
//= Copyright (C)  Lupus
//= Copyright (C)  kobra_k88
//=
//= Hercules is free software: you can redistribute it and/or modify
//= it under the terms of the GNU General Public License as published by
//= the Free Software Foundation, either version 3 of the License, or
//= (at your option) any later version.
//=
//= This program is distributed in the hope that it will be useful,
//= but WITHOUT ANY WARRANTY; without even the implied warranty of
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//= GNU General Public License for more details.
//=
//= You should have received a copy of the GNU General Public License
//= along with this program.  If not, see <http://www.gnu.org/licenses/>.
//=========================================================================
//= War of Emperium Kafras for N Guild Castles
//================= Description ===========================================
//= Provides Kafra services for guild members of NGuild Castles.
//================= Current Version =======================================
//= 1.2
//================= Additional Comments ===================================
//= Used in conjuction with function F_Kafra.
//=========================================================================

function	script	F_GKafra	{
	cutin "kafra_01",2;
	@GID = getcastledata(getarg(0),1);
	if (getcharid(CHAR_ID_GUILD) == @GID && getgdskilllv(@GID,10001)) goto L_StartG;

	mes "[Kafra Service]";
	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.";
	cutin "",255;
	close;
L_StartG:
	@wrpP[0] = 200;
	@wrpD$[0] = getarg(1);
	setarray @wrpC$[0], @wrpD$[0]+" ^880000"+@wrpP[0]+"^000000 z", "Cancel", "", "", "","";
	callfunc "F_Kafra",2,0,0,0,800;
	end;
}

//== Castle 1 ==============================================
nguild_alde,218,170,0	script	Kafra Service#N01	4_F_KAFRA1,{
	callfunc "F_GKafra", "nguild_alde", "Prontera";
	end;
OnRecvCastleN01:
	if (getcastledata("nguild_alde",9) < 1) disablenpc "Kafra Service#N01";
	end;
}

//== Castle 2 ==============================================
//nguild_gef,96,173,0	script	Kafra Service#N02	4_F_KAFRA1,{
nguild_gef,35,37,0	script	Kafra Service#N02	4_F_KAFRA1,{
	callfunc "F_GKafra", "nguild_gef", "Prontera";
	end;
OnRecvCastleN02:
	if (getcastledata("nguild_gef",9) < 1) disablenpc "Kafra Service#N02";
	end;
}

//== Castle 3 ==============================================
nguild_pay,128,58,3	script	Kafra Service#N03	4_F_KAFRA1,{
	callfunc "F_GKafra", "nguild_pay", "Prontera";
	end;
OnRecvCastleN03:
	if (getcastledata("nguild_pay",9) < 1) disablenpc "Kafra Service#N03";
	end;
}

//== Castle 4 ==============================================
nguild_prt,96,173,0	script	Kafra Service#N04	4_F_KAFRA1,{
	callfunc "F_GKafra", "nguild_prt", "Prontera";
	end;
OnRecvCastleN04:
	if (getcastledata("nguild_prt",9) < 1) disablenpc "Kafra Service#N04";
	end;
}