Jump to content
  • 0
kyeme

R> Party members when killing

Question

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

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

OnLABEL:

if( getcharid(1) ){
set [email protected]$,strcharinfo(3);
getpartymember getcharid(1),1;
getpartymember getcharid(1),2;
for ( set [email protected], 0; [email protected] < [email protected]; set [email protected], [email protected] +1 )
if ( isloggedin( [email protected][[email protected]] )  ){
attachrid( [email protected][[email protected]] );
if( strcharinfo(3) == [email protected]$ ){
getitem 607,1;
getitem 608,1;
 }
}
}
end;

Link to comment
Share on other sites

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 [email protected]$,strcharinfo(3);

getpartymember getcharid(1),1;

getpartymember getcharid(1),2;

for ( set [email protected], 0; [email protected] < .partymembercount; set [email protected], [email protected] +1 )

if ( isloggedin( .partymemberaid[[email protected]] ) )

attachrid( .partymemberaid[[email protected]] );

if( strcharinfo(3) == [email protected]$ ){

getitem 607,1;

getitem 608,1;

}

}

end;

}

But still not working, only the killer can get the items.

Edited by kyeme
Link to comment
Share on other sites

try this again

fixed wrong variable

OnLABEL:
if( getcharid(1) ){
set [email protected]$,strcharinfo(3);
getpartymember getcharid(1),1;
getpartymember getcharid(1),2;
for ( set [email protected], 0; [email protected] < [email protected]; set [email protected], [email protected] +1 )
if ( isloggedin( [email protected][[email protected]] )  ){
attachrid( [email protected][[email protected]] );
if( strcharinfo(3) == [email protected]$ ){
getitem 607,1;
getitem 608,1;
 }
}
}
end;

  • Upvote 2
Link to comment
Share on other sites

Hi Sir, the script is not working to the killer and some party members.. Help Sir Emistry..

Edited by kyeme
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.