Help opennos box

02/16/2018 20:36 PoliRot#1
for box random items and box with items i want only like here
case 5841:
int rnd = ServerManager.RandomNumber(0, 1000);
short[] vnums = null;
if (rnd < 900)
{
vnums = new short[] { 4356, 4357, 4358, 4359 };
}
else
{
vnums = new short[] { 4360, 4361, 4362, 4363 };
}
session.Character.GiftAdd(vnums[ServerManager.RandomNumber(0, 4)], 1);
session.Character.Inventory.RemoveItemFromInventor y(inv.Id);
break;

but something new some ideas ?
and im not speaking about 302 box. im speaking about all other boxes like otto box etc
02/16/2018 21:09 0Lucifer0#2
You can use every all other box like the 302 one. Just add the correct info in the database if its not working that mean that there is a little regression somewhere to fix because it was working before
02/16/2018 21:29 PoliRot#3
Yea but i need to put the id id on specialitem.cs case:5302 id of the oto costume box it will not work because i need to add in specialitem.cs the id 5302 all this vnums = new short[] { 4356, 4357, 4358, 4359 };
}
else
{
vnums = new short[] { 4360, 4361, 4362, 4363 };
}
session.Character.GiftAdd(vnums[ServerManager.RandomNumber(0, 4)], 1);
session.Character.Inventory.RemoveItemFromInventor y(inv.Id);
but im stuck what info i should to add for random box or box like fox receive only the 2 part of the fox costume like box id 5302: for get this 2 id 4177 and 4179
02/18/2018 17:46 Modix#4
Create box in database....not specialitem.cs lol