LCKB
How to Custom box - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Tutorials & Guides (https://lckb.dev/forum/forumdisplay.php?fid=124)
+----- Forum: Ep2 Guides (https://lckb.dev/forum/forumdisplay.php?fid=165)
+----- Thread: How to Custom box (/showthread.php?tid=1605)

Pages: 1 2


- filix_93 - 02-13-2013


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
 

 

 

 




- Douglas Farias - 02-13-2013

thx it help me 




- Douglas Farias - 02-13-2013

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




- filix_93 - 02-13-2013


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




- HateMe - 02-13-2013


a_random 0 = random by a_prob

a_random 1 = random

a_random 2 = give all items




- Janebug - 02-14-2013

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




- Ph3NoM - 02-15-2013

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




- filix_93 - 02-15-2013


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




- Mr Perez - 02-21-2013

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




- halohalo - 03-31-2013

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