Jump to content
  • 0

Converting into mail type reward


Question

Posted

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 ( .@i = 0; .@i < $@arenamemberscount; ++.@i ) {
		attachrid $@arenamembers[.@i];
		for ( .@j = 0; .@j < getarg(2); .@j += 2 ) {
			getitem getelementofarray( getarg(1), .@j ), getelementofarray( getarg(1), .@j +1 );
			showdigit gettimetick(2) - .time, 0;
		}
	}

 

5 answers to this question

Recommended Posts

  • 0
Posted
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 ( .@i = 0; .@i < $@arenamemberscount; ++.@i ) {
		attachrid $@arenamembers[.@i];
		for ( .@j = 0; .@j < getarg(2); .@j += 2 ) {
			getitem getelementofarray( getarg(1), .@j ), getelementofarray( getarg(1), .@j +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

  • 0
Posted
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.

  • 1
Posted

@Radian ROFL !!!

why not just ask me personally on discord ?

 

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

 

  • Upvote 1
  • 0
Posted
Just now, AnnieRuru said:

@Radian ROFL !!!

why not just ask me personally on discord ?

 


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

 

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

  • Upvote 1
  • 0
Posted
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.

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