• 0
Sign in to follow this  
Radian

Converting into mail type reward

Question

Hi guys, Im not sure how i can convert this getitem into a mail system reward. Im endorsing the mail system for the players to use it more often.

So here's the script part for the reward :

	for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) {
		attachrid [email protected][[email protected]];
		for ( [email protected] = 0; [email protected] < getarg(2); [email protected] += 2 ) {
			getitem getelementofarray( getarg(1), [email protected] ), getelementofarray( getarg(1), [email protected] +1 );
			showdigit gettimetick(2) - .time, 0;
		}
	}

 

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 1

@Radian ROFL !!!

why not just ask me personally on discord ?

 

L_reward:
	bg_get_data getarg(0), 1;
	deletearray [email protected];
	deletearray [email protected];
	for ( [email protected] = 0; [email protected] < getarg(2) /2; [email protected] ) {
		[email protected][[email protected]] = getelementofarray( getarg(1), [email protected] *2 );
		[email protected][[email protected]] =  getelementofarray( getarg(1), ( [email protected] *2 ) +1 );
	}
	for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) {
		attachrid [email protected][[email protected]];
		showdigit gettimetick(2) - .time, 0;
		mail getcharid(0), "XXXRO auto-reward", "BG: Arathi Basin", "Congratulations ~ This is your reward for participating.",
			0, [email protected], [email protected];
	}
	detachrid;
	return;

 

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
47 minutes ago, Radian said:

Hi guys, Im not sure how i can convert this getitem into a mail system reward. Im endorsing the mail system for the players to use it more often.

So here's the script part for the reward :

	for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) {
		attachrid [email protected][[email protected]];
		for ( [email protected] = 0; [email protected] < getarg(2); [email protected] += 2 ) {
			getitem getelementofarray( getarg(1), [email protected] ), getelementofarray( getarg(1), [email protected] +1 );
			showdigit gettimetick(2) - .time, 0;
		}
	}

 

I believe you have to upgrade your rA to the latest version as the mail script command was just released

Share this post


Link to post
Share on other sites
  • 0
1 minute ago, TheDerpySupport said:

I believe you have to upgrade your rA to the latest version as the mail script command was just released

I just did. And cant figure it out how to convert that part into the latest script command for the mail.

Share this post


Link to post
Share on other sites
  • 0
Just now, AnnieRuru said:

@Radian ROFL !!!

why not just ask me personally on discord ?

 

L_reward:
	bg_get_data getarg(0), 1;
	deletearray [email protected];
	deletearray [email protected];
	for ( [email protected] = 0; [email protected] < getarg(2) /2; [email protected] ) {
		[email protected][[email protected]] = getelementofarray( getarg(1), [email protected] *2 );
		[email protected][[email protected]] =  getelementofarray( getarg(1), ( [email protected] *2 ) +1 );
	}
	for ( [email protected] = 0; [email protected] < [email protected]; [email protected] ) {
		attachrid [email protected][[email protected]];
		showdigit gettimetick(2) - .time, 0;
		mail getcharid(0), "XXXRO auto-reward", "BG: Arathi Basin", "Congratulations ~ This is your reward for participating.",
			0, [email protected], [email protected];
	}
	detachrid;
	return;

 

Hahaha.. People might find this useful if they search for it :ani_swt3:

  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0
On 4/13/2018 at 11:48 PM, Radian said:

Hahaha.. People might find this useful if they search for it :ani_swt3:

Also note it only supports up to 5 items types, so of your item array is longer.might not work as you like.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this