CF4_99
Veteran
- Messages
- 145
- Reaction score
- 56
- Points
- 888
Hello Everyone, today I have another release, and it is 2 things,
1. Changing The Price Of The Mystery Box To Whatever You Want.
2. Hiding/Taking Away The Mystery Box
I have been trying to find a way to change the price of the Mystery Box for a while and finally found it, I also stumbled across a code that hides the Mystery Box!
So Here It Is Enjoy!
Make Sure To Use This #include
#include maps/mp/zombies/_zm_magicbox;
Hide/Take Away Mystery Box1. Changing The Price Of The Mystery Box To Whatever You Want.
2. Hiding/Taking Away The Mystery Box
I have been trying to find a way to change the price of the Mystery Box for a while and finally found it, I also stumbled across a code that hides the Mystery Box!
So Here It Is Enjoy!
Make Sure To Use This #include
#include maps/mp/zombies/_zm_magicbox;
Code:
SetBoxHidden()
{
i = 0;
while(i < level.chests.size)
{
level.chests[ i ] hide_chest();
level.chests[ level.chest_index ].hidden = 1;
i++;
}
self iPrintln("Mystery Box ^2Hidden");
}
Set Mystery Box Price
Code:
SetBoxCost()
{
i = 0;
while (i < level.chests.size)
{
level.chests[ i ].zombie_cost = 50;
level.chests[ i ].old_cost = 50;
i++;
}
self iPrintln("Mystery Box Cost Set To ^250");
}
Set Mystery Box Price To Custom(Easier/Faster Way)
Code:
SetBoxCostCustom(cost)
{
i = 0;
while (i < level.chests.size)
{
level.chests[ i ].zombie_cost = cost;
level.chests[ i ].old_cost = cost;
i++;
}
self iPrintln("Mystery Box Cost Set To ^2"+cost+"");
}
Example For The Custom Mystery Box Price
Code:
self add_option("MainMods", "Set Box Cost To 10", ::SetBoxCostCustom, 10);
Credits:
CabCon(Didn't Realize He Already Found The hide_chest/show_chest)
CabCon(Didn't Realize He Already Found The hide_chest/show_chest)
Last edited: