Jump to content
  • 0

Custom GM Box


mrfizi

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  292
  • Reputation:   46
  • Joined:  10/30/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   2
  • Joined:  04/03/14
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...