[Release] Set Mystery Box Cost
-
First you need to make a self thread.
welcome() { self waittill( "spawned_player" ); self thread SetBoxCost(); }
then place SetBoxCost() anywhere in your script.
SetBoxCost() { i = 0; while (i < level.chests.size) { level.chests[ i ].zombie_cost = 100; // you can change the cost here level.chests[ i ].old_cost = 100; // you can change the cost here i++; } wait 15; // This is the wait time before the iPrintln message box shows up. You can change this to your liking or remove it. self iPrintln("Mystery Box Cost Set To ^2100"); }
Enjoy!
Have any questions add my Discord: Ashton Biehl#6969
-
Thanks for sharing this, I'm sure people will find it very handy!
Small question though: why did you put the wait on 15 seconds, ain't that a bit too long? -
GewoonIraj I have more scripts so I put it to wait 15 seconds so I don't get spammed with a bunch of messages
-
Does this work for custom matches?
-
Kaizex I haven't tested it, but im sure it does if you inject it.
-
Ashton Biehl dude someone needs to teach me how to do this scripting stuff cuz my dumbass doesn't get it at all lol