How to Custom box
#1

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 Wink , I hope Ive help someone Smile .
 
p.s. sorry for my english Big Grin
 

 

 

 

#2
thx it help me 

#3
how i make to open + itens ? for exemple click in box open a all set 5 parts?

#4

well it should be a_random = 2

and on all items a_prob = 0 and change the flag of box ITEM_FLAG_NO_STASH and  Part of set  = 8389632

 

let me know if it works

#5

a_random 0 = random by a_prob

a_random 1 = random

a_random 2 = give all items

#6
Great guide for boxes thank filix_93.......thanks given

#7
what i need set in t_luckydrawbox in a_index what i need to set because i dont know .

#8

what i need set in t_luckydrawbox in a_index what i need to set because i dont know .
a_index is random , dont need a specific value , is like a_index in t_npc_regen or t_shot , it doesnt matter

#9
awesome guide very nicely explained and thanks hateme for those value explanations Smile

#10
what you mean with: insert into a_index the Numb 0 of the box-> what its this? the ID of the item?



Forum Jump:


Users browsing this thread: 1 Guest(s)