summaryrefslogtreecommitdiff
path: root/npc/003-1/ishi.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 21:37:06 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 21:37:06 -0300
commit14183c51fbdf2a7e068a2cd15ee78f4abc051179 (patch)
treebabc37fdedcd45eecd71c58bcb495b14a7ab40b3 /npc/003-1/ishi.txt
parent767cc8a9df173c43bd76892e57a62a07f106e746 (diff)
downloadserverdata-14183c51fbdf2a7e068a2cd15ee78f4abc051179.tar.gz
serverdata-14183c51fbdf2a7e068a2cd15ee78f4abc051179.tar.bz2
serverdata-14183c51fbdf2a7e068a2cd15ee78f4abc051179.tar.xz
serverdata-14183c51fbdf2a7e068a2cd15ee78f4abc051179.zip
As we use goto() system, we can and should use the lowest scope for @var.
Diffstat (limited to 'npc/003-1/ishi.txt')
-rw-r--r--npc/003-1/ishi.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/npc/003-1/ishi.txt b/npc/003-1/ishi.txt
index 48ed76a1a..a99a7674a 100644
--- a/npc/003-1/ishi.txt
+++ b/npc/003-1/ishi.txt
@@ -68,27 +68,27 @@
rif(Mobpt >= (@mpq_cost)*11,l("Gimme as many as I deserve!")), -1,
l("Sorry, I have to go now."), 0;
- @var=@menuret;
+ .@var=@menuret;
// Special cases
- if (@var < 1)
+ if (.@var < 1)
goto L_Give_all;
- if (!@var)
+ if (!.@var)
goto L_Close;
goto L_Items;
L_Close:
- @var=0;
+ .@var=0;
closedialog;
goodbye;
close;
L_Items:
//debugmes "Reaching item loop";
- for (.@i = 0; .@i < @var; .@i ++)
+ for (.@i = 0; .@i < .@var; .@i ++)
{
- //debugmes "Items: "+str(@var);
+ //debugmes "Items: "+str(.@var);
.@lucked=0;
.@reward=0;
@@ -155,9 +155,9 @@ L_Continue:
L_Give_all:
- @var = Mobpt / @mpq_cost;
- if (@var > 50) { // limit to avoid lag server. Probably a bad idea.
- @var = 50;
+ .@var = Mobpt / @mpq_cost;
+ if (.@var > 50) { // limit to avoid lag server. Probably a bad idea.
+ .@var = 50;
mes l("You have too much points. I can't allow you to take all at once right now. I'll try to give you 50, and you come back later!");
next;
}