summaryrefslogtreecommitdiff
path: root/npc/items/shovel.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-14 21:59:30 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-14 21:59:30 -0200
commite66090061f0f8cea75e5b9421668f789b0f966ac (patch)
treef13e37b506560ab8c2de40e6623d4b9bdd684484 /npc/items/shovel.txt
parentf5b6bc263ade9ca22967584e146b02908ddab74f (diff)
downloadserverdata-e66090061f0f8cea75e5b9421668f789b0f966ac.tar.gz
serverdata-e66090061f0f8cea75e5b9421668f789b0f966ac.tar.bz2
serverdata-e66090061f0f8cea75e5b9421668f789b0f966ac.tar.xz
serverdata-e66090061f0f8cea75e5b9421668f789b0f966ac.zip
This reverts commit f5b6bc263ade9ca22967584e146b02908ddab74f.
Diffstat (limited to 'npc/items/shovel.txt')
-rw-r--r--npc/items/shovel.txt9
1 files changed, 2 insertions, 7 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index 18a2b2fc4..fc30b9168 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -39,15 +39,10 @@ function script shovel_scatter {
.@amount=getarg(5,1);
freeloop(true); // DANGEROUS
- for (.@i = 0; .@i < .@amount; .@i++) {
- .@id=getarg( rand(getargcount()-6) +6);
- //shovel_scriptItem(.@map$, rand(.@x1,.@x2), rand(.@y1,.@y2), .id);
- }
+ for (.@i = 0; .@i < .@amount; .@i++)
+ shovel_scriptItem(.@map$, rand(.@x1,.@x2), rand(.@y1,.@y2), getarg(rand(getargcount()-6)+6));
freeloop(false);
- // For testing
- .@debugid=(getargcount()-6)+6;
- debugmes("array len: %d, minimum index 6, maximum index %d (last was %d)", getargcount(), .@debugid, .@id);
.@wtc = getarraysize($@WBT_Random_id);
debugmes "Scattered "+.@amount+" items on "+.@map$+". Currently scattered: "+.@wtc;
return;