Radian Posted April 14, 2018 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Share 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 Link to comment Share on other sites More sharing options...
1 AnnieRuru Posted April 14, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share 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 Link to comment Share on other sites More sharing options...
0 TheDerpySupport Posted April 14, 2018 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 208 Reputation: 60 Joined: 09/23/17 Last Seen: July 28, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 Radian Posted April 14, 2018 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
0 Radian Posted April 14, 2018 Group: Members Topic Count: 162 Topics Per Day: 0.04 Content Count: 1546 Reputation: 192 Joined: 07/23/14 Last Seen: June 24, 2024 Author Share 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 Link to comment Share on other sites More sharing options...
0 Stolao Posted April 15, 2018 Group: Developer Topic Count: 48 Topics Per Day: 0.01 Content Count: 1443 Reputation: 344 Joined: 10/17/12 Last Seen: Sunday at 01:58 PM Share 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 Link to comment Share on other sites More sharing options...
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 :
Link to comment
Share on other sites
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.