Jump to content
  • 0

R>Cashpoint in a party


youtube

Question


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  171
  • Reputation:   0
  • Joined:  06/19/13
  • Last Seen:  

good day biggrin.png


can i request about cashpoint


 


details


one party name PARTYLIST 5members


when i kill this mobs 1514 my partymembers got cashpoints20 all members


same like my points and annouce the partyname kill this mobs


and


1609 i kill this mobs i got 50cashpoints and my party members and annouce the party members this party kill this mobs


this details for mobs


1514=20 cashpoints


1511=30 cashpoints


1548= 40 cashpoints


1609 = 60 cashpoints

Edited by youtube
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


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


  • Group:  Members
  • Topic Count:  74
  • Topics Per Day:  0.02
  • Content Count:  171
  • Reputation:   0
  • Joined:  06/19/13
  • Last Seen:  

yea same but i think this script is divide to how many party member i want if i kill

1514=20 cashpoints

1511=30 cashpoints

1548= 40 cashpoints

1609 = 60 cashpoints

then my party member same my Cashpoints 



LETS SAY I KILL THIS 1609 ID MOB I GOT MY CASHPOINT IS 60 AND MY PARTY MEMBERS GOT 60CASHPOINTS EACH. NOT DIVIDED 

SAME THE OTHER ID MOBS 1514 , 1511 ,1548

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


- script Partypoints -1,{

function AddMob;

OnNPCKillEvent:

// <mob ID>, <Cashpoints reward>

AddMob( 3600,20 );

AddMob( 3627,20 );

AddMob( 3628,20 );

AddMob( 3629,50 );

end;

function AddMob {

if ( killedrid != getarg(0) ) return;

set .@party_id, getcharid(1);

set .@point, getarg(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] ) ) {

attachrid $@partymemberaid[.@i];

if( HP && strcharinfo(3) == .@map$ ) {

set #CASHPOINTS,#CASHPOINTS + .@point;

dispbottom "Gained "+.@point+" Cashpoints.";

}

}

}

}

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   0
  • Joined:  08/07/13
  • Last Seen:  

how to add Partyname announce?? i i kill 1 mob my Partyname is annouce 

Link to comment
Share on other sites


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


getpartymember .@party_id,1;
getpartymember .@party_id,2;
set .@acc_id, getcharid(3);
set .@map$,strcharinfo(3);
announce getpartyname( .@party_id )+" gained cashpoints.",0;    // <---- ADD THIS

you may refer announce , getpartyname ...

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