summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-01 01:02:46 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-01 01:02:46 -0300
commit0f445fb1e9b591e1b39f2c41eaf0520673436fc3 (patch)
tree16783121228a7318fb5638eaaa9d08329ed2b493 /npc
parent70df6ef331b2cfed0251fcc447dfef557f0fb91f (diff)
downloadserverdata-0f445fb1e9b591e1b39f2c41eaf0520673436fc3.tar.gz
serverdata-0f445fb1e9b591e1b39f2c41eaf0520673436fc3.tar.bz2
serverdata-0f445fb1e9b591e1b39f2c41eaf0520673436fc3.tar.xz
serverdata-0f445fb1e9b591e1b39f2c41eaf0520673436fc3.zip
[skip ci] Insane Code Added
Diffstat (limited to 'npc')
-rw-r--r--npc/items/shovel.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/items/shovel.txt b/npc/items/shovel.txt
index b33cbbfae..fb73c82ee 100644
--- a/npc/items/shovel.txt
+++ b/npc/items/shovel.txt
@@ -36,8 +36,12 @@ function script shovel_scatter {
.@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$;
return;