mrfizi Posted October 4, 2018 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 383 Reputation: 78 Joined: 10/30/12 Last Seen: March 17 Share 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 Link to comment Share on other sites More sharing options...
0 maken06 Posted October 4, 2018 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 234 Reputation: 115 Joined: 02/24/15 Last Seen: March 20, 2024 Share Posted October 4, 2018 Quote Link to comment Share on other sites More sharing options...
0 mrfizi Posted October 6, 2018 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 383 Reputation: 78 Joined: 10/30/12 Last Seen: March 17 Author Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted October 23, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
0 Hidan Posted October 23, 2018 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 50 Reputation: 2 Joined: 04/03/14 Last Seen: July 18, 2024 Share 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 Link to comment Share on other sites More sharing options...
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.
Link to comment
Share on other sites
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.