summaryrefslogtreecommitdiff
path: root/doc/sample/gstorage_test.txt
blob: 559f7f76ed40c1a73e549fa8d074cc9213446603 (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
//===== Hercules Script =======================================
//= Sample: Guild Storage Test
//===== By: ==================================================
//= Hercules Dev Team
//===== Current Version: =====================================
//= 20070315
//===== Description: ========================================= 
//= Contains commands needed for a guild warehouse NPC.
//============================================================

prontera,165,188,4	script	Guild Warehouse	112,{
	cutin "kafra_06",2;

	mes "[Guild Warehouse Coupler]";
	mes "This is the guild warehouse coupler service."; 
	mes "You will not receive zeny for this is a test.";
	next;
	menu "Access Guild Warehouse", GS_OPEN, "Exit", GS_EXIT3;

GS_OPEN:
	set @flag,guildopenstorage(0);
	if(@flag == 1) goto GS_EXIT1;
	if(@flag == 2) goto GS_EXIT2;
	goto GS_EXIT4;

GS_EXIT1:
	mes "[Guild Warehouse]";
	mes "The guild warehouse is being used right now.";
	mes "Please wait a while, then come back.";
	goto GS_EXIT4;

GS_EXIT2:
	mes "[Guild Warehouse]";
	mes "You can't use this service if you're not in a guild!";
	goto GS_EXIT4;

GS_EXIT3:
	mes "[Guild Warehouser]";
	mes "Come back whenever you want.";

GS_EXIT4:
	cutin "kafra_06",255;
	close;
}