Jump to content
  • 0

Question

Posted

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

  • 0
Posted
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.

  • 0
Posted
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;
}

 

  • Upvote 2
  • 0
Posted (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 by Hidan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...