Jump to content
  • 0

R>Cashpoint in a party


Question

Posted (edited)

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

5 answers to this question

Recommended Posts

Posted

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

Posted


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

}

}

}

}

}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...