[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
-
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? -
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
-
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login