How to make Custom Box
#1

Changing a item thats a box you open is done with t_luckydrawresults , luckydrawnbox luckydrawNeed...

 

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 .

don't 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 don't 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 I've help someone 

 

 

a_random 0 = random by a_prob

a_random 1 = random

a_random 2 = give all items

 

CREDITS DOESNT GO TO ME Smile



Forum Jump:


Users browsing this thread: 1 Guest(s)