Jump to content
  • 0
AinsLord

Q>item box with random option upon opening the box

Question

is there a item box that will provide a random option upon opening

like example

you open "god sword box" it will give you the sword with random options.

and "Costume Lower Box" it will give you random costume item with a random options.

 

if there is like a free script care to share

 

thanks in advance

Edited by AinsLord
specific info
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
6 hours ago, AinsLord said:

is there a item box that will provide a random option upon opening

like example

you open "god sword box" it will give you the sword with random options.

and "Costume Lower Box" it will give you random costume item with a random options.

 

if there is like a free script care to share

 

thanks in advance

did you mean if you open a box it will give you a random item?

Link to comment
Share on other sites

  • 0
Just now, GM Winter said:

did you mean if you open a box it will give you a random item?

thats one

and the other one the item obtained have a random option 

like this on

image.png.e3a311a2df95b8e31afd5be9acc5dd0f.png

Link to comment
Share on other sites

  • 0

put this script to your item db this will give you a random item 

getitem callfunc("F_Rand",512,513,500),1;

then regarding the photo you send i think you need to make a custom item in item db and make a decs in your item lua then use the id in the box above so they will get your random custom item

Link to comment
Share on other sites

  • 0
3 minutes ago, GM Winter said:

put this script to your item db this will give you a random item 

getitem callfunc("F_Rand",512,513,500),1;

then regarding the photo you send i think you need to make a custom item in item db and make a decs in your item lua then use the id in the box above so they will get your random custom item

ive made the box ill just make it random items

so here is the script i made to get specific item with a specific item option

//Test functions
function	script	F_CASH_SHOP_RANDOM	{
	setarray .@OptID[0],RDMOPT_WEAPON_ATTR_TELEKINESIS, RDMOPT_VAR_MAXHPAMOUNT;
	setarray .@OptVal[0],10,10;
	setarray .@OptParam[0],0,0;

	getitem3 5518,1,1,0,0,0,0,0,0,.@OptID,.@OptVal,.@OptParam;

end;
}

im still trying to figure out how can i make it like random option once i open the box

random @optID random OptVal dont know yet what is optparam for

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...