Jump to content
  • 0

box with callfunc


Zutcer

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   5
  • Joined:  07/19/15
  • Last Seen:  

I want to make an olbbluebox with callfunc, inside the script I want to separate the IDs to be delivered and their amount per percentage, as an example

In a range of 10%
607.15;
608.25;
In a range of 30%
607.10;
608.20;

 

somebody can help me?

Edited by Zutcer
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 2

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

1 hour ago, Zutcer said:

I want to make an olbbluebox with callfunc, inside the script I want to separate the IDs to be delivered and their amount per percentage, as an example

In a range of 10%
607.15;
608.25;
In a range of 30%
607.10;
608.20;

 

somebody can help me?

Please try this.

function	script	F_RandomRate	{

	.@r = rand(100);
	if( .@r <= 10 )			// 10% Rate
		setarray .@i,607,15,608,25;
	else if( .@r <= 40 ) {	// 40% Rate
		setarray .@i,607,10,608,20;
	} else {
		dispbottom( "You recieved nothing.");
		end;
	}
	getitem .@i[0],.@i[1];
	end;
}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  114
  • Reputation:   5
  • Joined:  07/19/15
  • Last Seen:  

Thx, its work :DDD

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