summaryrefslogtreecommitdiff
path: root/npc/sample/gstorage_test.txt
blob: 98761ea35bc02c671f2eb71020b5aa1631ebb5e0 (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
/* Guild Warehouse Service Test-Script 
prontera.gat,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;
}
*/

// �J�v���M���h�q�ɃT�[�r�X	�e�X�g�X�N���v�g
prontera.gat,165,188,4	script	�M���h�q�ɃJ�v��	112,{
	cutin "kafra_06",2;

	mes"[�M���h�q�ɃJ�v��]";
	mes "�J�v���M���h�q�ɃT�[�r�X�ł��B";
	mes "���x�����p���肪�Ƃ��������܂���";
	mes "�e�X�g�p�Ȃ̂ŋ��͖Ⴂ�܂���B";
	next;
	menu "�M���h�q�ɂ𗘗p����",GS_OPEN,"����ς�߂�",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 "�M���h�����o�[���q�ɂ��g�p���ł��B";
	mes "���΂炭�҂��Ă��痘�p���Ă��������B";
	goto GS_EXIT4;

GS_EXIT2:
	mes "�M���h�ɏ������ĂȂ����͗��p���邱�Ƃ��ł��܂���B";
	goto GS_EXIT4;

GS_EXIT3:
	mes "�܂��̂����p�����҂����Ă��܂���";

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