Radian Posted April 14, 2018 Posted April 14, 2018 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; } } Quote
0 TheDerpySupport Posted April 14, 2018 Posted April 14, 2018 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 Quote
0 Radian Posted April 14, 2018 Author Posted April 14, 2018 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. Quote
1 AnnieRuru Posted April 14, 2018 Posted April 14, 2018 @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; 1 Quote
0 Radian Posted April 14, 2018 Author Posted April 14, 2018 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 1 Quote
0 Stolao Posted April 15, 2018 Posted April 15, 2018 On 4/13/2018 at 11:48 PM, Radian said: Hahaha.. People might find this useful if they search for it Also note it only supports up to 5 items types, so of your item array is longer.might not work as you like. Quote
Question
Radian
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 :
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.