Jump to content
  • 0

random box announce null item name


Question

Posted (edited)

Help again, im using of of euphy's script having an error with this when it broadcast it says [null] item bla bla help!.
 

16247,Dragon_Arhat_Mask_Box,Dragon Arhat Mask Box,18,20,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "CustomBox"; },{},{}
function script CustomBox {
setarray .BoxItems[0],5597,5596,5594;
 
set .Random, getarraysize( .BoxItems );
getitem .BoxItems[ rand( .Random ) ], 1;
announce "["+strcharinfo(0)+"] has just obtained a ["+getitemname(.BoxItems[ .Random ])+"] from a Custom Box.",0;
end;
}

post-18342-0-75151600-1455347388_thumb.png

Edited by Emistry
codebox

7 answers to this question

Recommended Posts

  • 0
Posted

you can try this

function	script	CustomBox	{
	.@item = F_Rand( 5597,5596,5594 );
	getitem .@item, 1;
	announce "["+strcharinfo(0)+"] has just obtained a ["+getitemname( .@item )+"] from a Custom Box.",0;
	return;
}
  • 0
Posted (edited)

 

you can try this

function	script	CustomBox	{
	.@item = F_Rand( 5597,5596,5594 );
	getitem .@item, 1;
	announce "["+strcharinfo(0)+"] has just obtained a ["+getitemname( .@item )+"] from a Custom Box.",0;
	return;
}

Emistry! can you add something like you can get a jackpot prize base on random chance and broadcast from that script? thank you in advance :3

Edited by Noire

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