summaryrefslogtreecommitdiff
path: root/doc/sample/gstorage_test.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-12-26 01:34:12 +0100
committerHaru <haru@dotalux.com>2013-12-30 16:08:20 +0100
commit21fa0901dc8723627c6970aa6eff97bc27e36533 (patch)
tree8890d4191c1ea44af96b6e51d8e149b1e885f043 /doc/sample/gstorage_test.txt
parenta9156de759bc444a5f7256b86f6c4bac6a1ab47d (diff)
downloadhercules-21fa0901dc8723627c6970aa6eff97bc27e36533.tar.gz
hercules-21fa0901dc8723627c6970aa6eff97bc27e36533.tar.bz2
hercules-21fa0901dc8723627c6970aa6eff97bc27e36533.tar.xz
hercules-21fa0901dc8723627c6970aa6eff97bc27e36533.zip
Modernized syntax and fixed errors in the sample scripts
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'doc/sample/gstorage_test.txt')
-rw-r--r--doc/sample/gstorage_test.txt46
1 files changed, 19 insertions, 27 deletions
diff --git a/doc/sample/gstorage_test.txt b/doc/sample/gstorage_test.txt
index b8f9fe2c4..8b1a1c0e6 100644
--- a/doc/sample/gstorage_test.txt
+++ b/doc/sample/gstorage_test.txt
@@ -3,42 +3,34 @@
//===== By: ==================================================
//= Hercules Dev Team
//===== Current Version: =====================================
-//= 20070315
-//===== Description: =========================================
+//= 20131225
+//===== Description: =========================================
//= Contains commands needed for a guild warehouse NPC.
//============================================================
-prontera,165,188,4 script Guild Warehouse 112,{
+prontera,165,188,4 script Guild Warehouse 4_F_KAFRA6,{
cutin "kafra_06",2;
mes "[Guild Warehouse Coupler]";
- mes "This is the guild warehouse coupler service.";
+ 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;
+ if (select("Access Guild Warehouse","Exit") != 1) {
+ mes "[Guild Warehouser]";
+ mes "Come back whenever you want.";
+ cutin "kafra_06", 255;
+ close;
+ }
-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:
+ .@flag = guildopenstorage;
+ if (.@flag == 1) {
+ mes "[Guild Warehouse]";
+ mes "The guild warehouse is being used right now.";
+ mes "Please wait a while, then come back.";
+ } else if(.@flag == 2) {
+ mes "[Guild Warehouse]";
+ mes "You can't use this service if you're not in a guild!";
+ }
cutin "kafra_06",255;
close;
}