Jump to content
  • 0

R> Party members when killing


kyeme

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  03/08/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  03/08/12
  • Last Seen:  

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 by kyeme
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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;

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  03/08/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

it only work for those who are in the same map.....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  03/08/12
  • Last Seen:  

Yes same map. But not working to the Killer..

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

it work fine at my test server.....

BVm0O.jpg

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  03/08/12
  • Last Seen:  

Its working now! Im sorry, I think wrong copy paste hahaha. Thank you very mush Sir! /no1/thx

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...