diff options
-rw-r--r-- | npc/items/shovel.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt index fb73c82ee..f58565975 100644 --- a/npc/items/shovel.txt +++ b/npc/items/shovel.txt @@ -34,15 +34,13 @@ function script shovel_scatter { .@id=getarg(5); .@amount=getarg(6,1); - .@wtc = getarraysize($@WBT_Random_id); - debugmes "Asked to scatter "+.@amount+" items. Currently scattered: "+.@wtc; - freeloop(true); // DANGEROUS for (.@i = 0; .@i < .@amount; .@i++) shovel_scriptItem(.@map$, rand(.@x1,.@x2), rand(.@y1,.@y2), any_of(.@id)); freeloop(false); - debugmes "Scattered "+.@amount+" items on "+.@map$; + .@wtc = getarraysize($@WBT_Random_id); + debugmes "Scattered "+.@amount+" items on "+.@map$+". Currently scattered: "+.@wtc; return; } |