summaryrefslogtreecommitdiff
path: root/npc/items
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-01 01:04:29 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-01 01:04:29 -0300
commit0ed3799f0ef8a797f6acb962bc69c268c3e709c6 (patch)
tree7ec77c5a578acdb0c07f506333ad266ef1df08bb /npc/items
parent0f445fb1e9b591e1b39f2c41eaf0520673436fc3 (diff)
downloadserverdata-0ed3799f0ef8a797f6acb962bc69c268c3e709c6.tar.gz
serverdata-0ed3799f0ef8a797f6acb962bc69c268c3e709c6.tar.bz2
serverdata-0ed3799f0ef8a797f6acb962bc69c268c3e709c6.tar.xz
serverdata-0ed3799f0ef8a797f6acb962bc69c268c3e709c6.zip
[skip ci] more compact reports of scattered items
Diffstat (limited to 'npc/items')
-rw-r--r--npc/items/shovel.txt6
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;
}