mrfizi Posted October 4, 2018 Posted October 4, 2018 Hello rAthena, I need a guide for make a new custom box like OBB. I have tried to make like old style and search in forum. But I failed to make it. Old guide is not compatible with the latest rAthena. Can someone help me? Thank you. Quote
0 mrfizi Posted October 6, 2018 Author Posted October 6, 2018 On Fri Oct 05 2018 at 3:22 AM, maken06 said: There is script by @Emistry that same like what I want. Link: But the problem is, how to make certain item can got 3, 2 and some item only got 1.. This is the item in the box for example: When player click/open the box, it give random item like * 1 rune hem / 1 wing / 1 costume / 3 miracle tonic / 3 Field Manual / 3 speed pot / 2 token of Sieg. Quote
0 Emistry Posted October 23, 2018 Posted October 23, 2018 function script func_Box { setarray .@item_id,501,502,503,504,505; setarray .@amount,1,2,3,4,5; .@i = rand(getarraysize(.@item_id)); getitem .@item_id[.@i], .@amount[.@i]; announce "["+strcharinfo(0)+"] get "+.@amount[.@i]+"x "+getitemname(.@item_id[.@i])+" from box",0; return; } 2 Quote
0 Hidan Posted October 23, 2018 Posted October 23, 2018 (edited) On 10/23/2018 at 5:38 PM, Emistry said: function script func_Box { setarray .@item_id,501,502,503,504,505; setarray .@amount,1,2,3,4,5; .@i = rand(getarraysize(.@item_id)); getitem .@item_id[.@i], .@amount[.@i]; announce "["+strcharinfo(0)+"] get "+.@amount[.@i]+"x "+getitemname(.@item_id[.@i])+" from box",0; return; } UP! Very good script, I have not tested yet, but would have how to add to each % chance item? Edited October 26, 2018 by Hidan Quote
Question
mrfizi
Hello rAthena,
I need a guide for make a new custom box like OBB. I have tried to make like old style and search in forum. But I failed to make it. Old guide is not compatible with the latest rAthena.
Can someone help me? Thank you.
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.