diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-08-20 14:02:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-08-20 14:02:13 -0300 |
commit | 81bdb90dce2b92d4402c3b34ac18e528ba457d44 (patch) | |
tree | d91c0f54c09c375bfdfc7478483010d645686db1 /npc/functions | |
parent | 5629260b874fe11c31914d3f8dea2dc224b12aa7 (diff) | |
download | serverdata-81bdb90dce2b92d4402c3b34ac18e528ba457d44.tar.gz serverdata-81bdb90dce2b92d4402c3b34ac18e528ba457d44.tar.bz2 serverdata-81bdb90dce2b92d4402c3b34ac18e528ba457d44.tar.xz serverdata-81bdb90dce2b92d4402c3b34ac18e528ba457d44.zip |
Fix a bug on anyloot() function
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/util.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/npc/functions/util.txt b/npc/functions/util.txt index 21abcd1f2..0a25f2649 100644 --- a/npc/functions/util.txt +++ b/npc/functions/util.txt @@ -743,10 +743,9 @@ function script anyloot { return Exception("Faulty anyloot skill command invoked - error"); // Get Items - for (.@i=0;.@i < getargcount(); .@i++) { + for (.@i=0;.@i < getargcount(); .@i+=2) { if (rand2(10000) < getarg(.@i+2)) getitem getarg(.@i), rand2(1, getarg(.@i+1)); - .@i++; } return true; } |