Talon Posted November 27, 2014 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 78 Reputation: 1 Joined: 09/01/14 Last Seen: October 22, 2016 Share Posted November 27, 2014 (edited) set .@partyid,getcharid(1); set .@mob_base_exp,(( getmonsterinfo( killedrid,MOB_BASEEXP ) / 100 ) * .rotd_exp_bonus ); set .@mob_job_exp,(( getmonsterinfo( killedrid,MOB_JOBEXP ) / 100 ) * .rotd_exp_bonus ); if( .@partyid ){ set .@aid,getcharid(3); set .@baselevel,BaseLevel; set .@map$,strcharinfo(3); getpartymember .@partyid,1; getpartymember .@partyid,2; while( .@i < $@partymembercount ){ if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) ) if( attachrid( $@partymemberaid[.@i] ) ) if( strcharinfo(3) == .@map$ && ( BaseLevel - .@baselevel ) <= .party_level_range && ( BaseLevel - .@baselevel ) >= ~.party_level_range ){ set BaseExp,( BaseExp + .@mob_base_exp ); set JobExp,( JobExp + .@mob_job_exp ); dispbottom "[ROTD Party] : "+.@mob_base_exp+" EXP"; } set .@i,.@i + 1; } attachrid( .@aid ); }else{ set BaseExp,( BaseExp + .@mob_base_exp ); set JobExp,( JobExp + .@mob_job_exp ); dispbottom "[ROTD SOLO] : "+.@mob_base_exp+" EXP"; } if( rand( 100 ) < .rotd_item_rate && .rotd_zeny ) set Zeny,Zeny + rand( .rotd_zeny ); if( rand( 100 ) < .rotd_item_rate && .rotd_item_amount ) getitem .rotd_item_id,rand( .rotd_item_amount ),.@aid; Trying to find out how to get how many party members are in a party, then divide the experience rates; Was trying to do if ( $@partymembercount > 2 ){ set .@mob_job_exp,(( getmonsterinfo( killedrid,MOB_JOBEXP ) / 100 ) * .rotd_exp_bonus / 2 ); } ...But I guess $@partymembercount isn't the code to get how many members in a party tho Anyone can help me a bit in this?.. Thanks~! Edited November 27, 2014 by Talon Quote Link to comment Share on other sites More sharing options...
tr0n Posted November 27, 2014 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 562 Reputation: 152 Joined: 02/21/12 Last Seen: February 27 Share Posted November 27, 2014 Check the wiki. There is everything you need to know about party related commands and informations: http://rathena.org/wiki/Getpartymember first you have to use this command to store the informations in global variables: getpartymember <party id>{,<type>}; then just use this global variable for your script: $@partymembercount Quote Link to comment Share on other sites More sharing options...
Talon Posted November 28, 2014 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 78 Reputation: 1 Joined: 09/01/14 Last Seen: October 22, 2016 Author Share Posted November 28, 2014 Check the wiki. There is everything you need to know about party related commands and informations: http://rathena.org/wiki/Getpartymember first you have to use this command to store the informations in global variables: getpartymember <party id>{,<type>}; then just use this global variable for your script: $@partymembercount Okay, thanks for replied. I'll have a look when I'm free =) Quote Link to comment Share on other sites More sharing options...
Question
Talon
Trying to find out how to get how many party members are in a party, then divide the experience rates;
Was trying to do if ( $@partymembercount > 2 ){ set .@mob_job_exp,(( getmonsterinfo( killedrid,MOB_JOBEXP ) / 100 ) * .rotd_exp_bonus / 2 ); }
...But I guess $@partymembercount isn't the code to get how many members in a party tho Anyone can help me a bit in this?.. Thanks~!
Edited by TalonLink to comment
Share on other sites
2 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.