kyeme Posted August 28, 2012 Posted August 28, 2012 Hello Good day! Im here for requesting the script. This is for the party members receiving the item. Example: When one of the party members killed the enemy, everyone (only party members in the same MAP) will receive an item. Thanks in advance. ~kyeme Quote
Emistry Posted August 28, 2012 Posted August 28, 2012 OnLABEL: if( getcharid(1) ){ set .@Location$,strcharinfo(3); getpartymember getcharid(1),1; getpartymember getcharid(1),2; for ( set .@a, 0; .@a < $@partymembercount; set .@a, .@a +1 ) if ( isloggedin( $@partymemberaid[.@a] ) ){ attachrid( $@partymemberaid[.@a] ); if( strcharinfo(3) == .@Location$ ){ getitem 607,1; getitem 608,1; } } } end; Quote
kyeme Posted August 28, 2012 Author Posted August 28, 2012 (edited) Thanks Sir Emistry! Il try this.. Hi Sir but the script is not working, i change d into - script Test -1,{ OnPCKillEvent: if( getcharid(1) ){ set .@Location$,strcharinfo(3); getpartymember getcharid(1),1; getpartymember getcharid(1),2; for ( set .@a, 0; .@a < .partymembercount; set .@a, .@a +1 ) if ( isloggedin( .partymemberaid[.@a] ) ) attachrid( .partymemberaid[.@a] ); if( strcharinfo(3) == .@Location$ ){ getitem 607,1; getitem 608,1; } } end; } But still not working, only the killer can get the items. Edited August 28, 2012 by kyeme Quote
Emistry Posted August 28, 2012 Posted August 28, 2012 try this again fixed wrong variable OnLABEL: if( getcharid(1) ){ set .@Location$,strcharinfo(3); getpartymember getcharid(1),1; getpartymember getcharid(1),2; for ( set .@a, 0; .@a < $@partymembercount; set .@a, .@a +1 ) if ( isloggedin( $@partymemberaid[.@a] ) ){ attachrid( $@partymemberaid[.@a] ); if( strcharinfo(3) == .@Location$ ){ getitem 607,1; getitem 608,1; } } } end; 2 Quote
kyeme Posted August 28, 2012 Author Posted August 28, 2012 (edited) Hi Sir, the script is not working to the killer and some party members.. Help Sir Emistry.. Edited August 28, 2012 by kyeme Quote
Emistry Posted August 28, 2012 Posted August 28, 2012 it only work for those who are in the same map..... Quote
kyeme Posted August 28, 2012 Author Posted August 28, 2012 Yes same map. But not working to the Killer.. Quote
kyeme Posted August 28, 2012 Author Posted August 28, 2012 Its working now! Im sorry, I think wrong copy paste hahaha. Thank you very mush Sir! Quote
Question
kyeme
Hello Good day! Im here for requesting the script. This is for the party members receiving the item.
Example: When one of the party members killed the enemy, everyone (only party members in the same MAP) will receive an item.
Thanks in advance.
~kyeme
8 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.