Phantom Of Rogue-Gon Posted August 16, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Share Posted August 16, 2013 - script Partypoints -1,{ OnNPCKillEvent: if( killedrid == 3600 ||killedrid == 3629 ||killedrid == 3628 || killedrid == 3627 ){ if( killedrid == 3600 ) set .@point,20; if( killedrid == 3629 ) set .@point,20; if( killedrid == 3628 ) set .@point,20; if( killedrid == 3627 ) set .@point,50; set .@party_id,getcharid(1); if( !.@party_id ){ set #CASHPOINTS,#CASHPOINTS + .@point; dispbottom "Gained "+.@point+" Cashpoints."; }else{ getpartymember .@party_id,1; getpartymember .@party_id,2; set .@acc_id, getcharid(3); set .@map$,strcharinfo(3); for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 ) if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) ) if( attachrid( $@partymemberaid[.@i] ) ) if( HP && strcharinfo(3) == .@map$ ) set .@online_count,.@online_count + 1; for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 ) if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) ) if( attachrid( $@partymemberaid[.@i] ) ) if( HP && strcharinfo(3) == .@map$ ){ set #CASHPOINTS, #CASHPOINTS + ( .@point / .@online_count ); dispbottom "Party Online : "+.@online_count+" - Cashpoint Arena "+( .@point / .@online_count )+" Cash Points."; } attachrid( .@acc_id ); dispbottom "All Your party member gained "+( .@point / .@online_count )+" cash point/s."; } } end; } this script share party cashpoint i have 2 member of my party when i kill this id 3627 i got 25 points but the original is 50 divide 2? =25 if one party 10 member got 10divide50= 5cashpoints i want to change the script if i kill 3627 id all party member got 50 points same my points not divided i i have 10 member of my party then i kill 3627 i got 50cashpoints and my party member got 50cashpoints each character Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 16, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 16, 2013 (edited) .... .... for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 ) if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) ) if( attachrid( $@partymemberaid[.@i] ) ) if( HP && strcharinfo(3) == .@map$ ) set .@online_count,.@online_count + 1; if( killedrid == 3627 ) .@point = .@point * .@online_count; // add this ... .... .... .... Edited August 17, 2013 by Emistry Quote Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 16, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share Posted August 16, 2013 (edited) master i got error from your script i replace your code to my code master this is error btw im EA master and can you add this mobs if( killedrid == 3629 = 20 cashpoints if( killedrid == 3628 = 20 cashpoints if( killedrid == 3627 = 20 cashpoints Edited August 16, 2013 by Phantom Of Rogue-Gon Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 17, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 17, 2013 if( killedrid == 3627 || killedrid == 3628 || killedrid == 3629 ) .@point = .@point * .@online_count; // add this ... Quote Link to comment Share on other sites More sharing options...
Phantom Of Rogue-Gon Posted August 17, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.02 Content Count: 181 Reputation: 0 Joined: 08/07/13 Last Seen: September 15, 2014 Author Share Posted August 17, 2013 (edited) - script Partypoints -1,{ OnNPCKillEvent: if( killedrid == 3600 ||killedrid == 3629 ||killedrid == 3628 || killedrid == 3627 ){ if( killedrid == 3600 ) set .@point,20; if( killedrid == 3629 ) set .@point,20; if( killedrid == 3628 ) set .@point,20; if( killedrid == 3627 ) set .@point,50; set .@party_id,getcharid(1); if( !.@party_id ){ set #CASHPOINTS,#CASHPOINTS + .@point; dispbottom "Gained "+.@point+" Cashpoints."; }else{ getpartymember .@party_id,1; getpartymember .@party_id,2; set .@acc_id, getcharid(3); set .@map$,strcharinfo(3); for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 ) if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) ) if( attachrid( $@partymemberaid[.@i] ) ) if( HP && strcharinfo(3) == .@map$ ) set .@online_count,.@online_count + 1; if( killedrid == 3627 || killedrid == 3628 || killedrid == 3629 ) .@point = .@point * .@online_count; // add this ... for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 ) if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) ) if( attachrid( $@partymemberaid[.@i] ) ) if( HP && strcharinfo(3) == .@map$ ){ set #CASHPOINTS, #CASHPOINTS + ( .@point / .@online_count ); dispbottom "Party Online : "+.@online_count+" - Cashpoint Arena "+( .@point / .@online_count )+" Cash Points."; } attachrid( .@acc_id ); dispbottom "All Your party member gained "+( .@point / .@online_count )+" cash point/s."; } } end; } like this? like this? same error master Edited August 17, 2013 by Phantom Of Rogue-Gon Quote Link to comment Share on other sites More sharing options...
Capuche Posted August 17, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted August 17, 2013 Same here http://rathena.org/board/topic/86347-rcashpoint-in-a-party/?p=217512 Quote Link to comment Share on other sites More sharing options...
Emistry Posted August 17, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted August 17, 2013 if( killedrid == 3627 || killedrid == 3628 || killedrid == 3629 ) set .@point,( .@point * .@online_count ); // add this ... Quote Link to comment Share on other sites More sharing options...
Question
Phantom Of Rogue-Gon
this script
share party cashpoint i have 2 member of my party when i kill this id 3627 i got 25 points but the original is 50 divide 2? =25
if one party 10 member got 10divide50= 5cashpoints
i want to change the script if i kill 3627 id all party member got 50 points same my points not divided
i i have 10 member of my party then i kill 3627 i got 50cashpoints and my party member got 50cashpoints each character
Link to comment
Share on other sites
6 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.