02-13-2013, 08:11 AM
hi all , here a little info on how to create yours custom box :
create your box in itemall , Type = 2 , Sub Type = 3 , Class = 127 , Wearing pos = -1 ,
on flag just select :
if you want the box can trade : ITEM_FLAG_COUNT , ITEM_FLAG_DROP , ITEM_FLAG_EXCHANGE , ITEM_FLAG_TRADE , Part of a set , and flag should be = 8388635
if you want the box can trade : ITEM_FLAG_COUNT , ITEM_FLAG_TRADE , Part of a set , and flag should be = 8388625
Than on Numb 0 , here goes the luckydrawbox index .
dont forgot to load the new box on smc too .
now go to DB newproject_data and register your box in t_item .
open t_lukydrawbox , insert into a_index the Numb 0 of the box , a_name what you want , a_enable = 1 , a_random = 1 .
if you want to make a box like coin of master one , go into t_luckydrawneed and set a_lukydraw_idx the Numb 0 of the box , a_item_idx = id of the item you need to open the box , a_count = amout of the item you need to open the box .
if you want a normal box like the ramslo armor box one dont go in t_luckydrawneed .
now open t_luckydrawresult and set a_luckydraw_idx the Numb 0 of the box , a_item_idx = id of the item you can find into the box , a_count = amout of the item you can find into the box , a_upgrade = plus of the item you can find ito the box ( only for armors and weapon I think xD ) , a_prob = the
probability you can find that item , a_flag = 0 .
you are done , log in game and have fun with your box
, I hope Ive help someone
.p.s. sorry for my english


