Jump to content
  • 0

change script so all party member got 50 cashpoints


Question

Posted
-	script	Partypoints	-1,{
OnNPCKillEvent:
if( killedrid == 3600 ||killedrid == 3629 ||killedrid == 3628 || killedrid == 3627 ){
	if( killedrid == 3600 ) set .@point,20;
	if( killedrid == 3629 ) set .@point,20;
	if( killedrid == 3628 ) set .@point,20;
	if( killedrid == 3627 ) set .@point,50;

	set .@party_id,getcharid(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] ) )
				if( attachrid( $@partymemberaid[.@i] ) )
					if( HP && strcharinfo(3) == .@map$ )
						set .@online_count,.@online_count + 1;
		
		for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 )
			if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) )
				if( attachrid( $@partymemberaid[.@i] ) )
					if( HP && strcharinfo(3) == .@map$ ){
						set #CASHPOINTS, #CASHPOINTS + ( .@point / .@online_count );
						dispbottom "Party Online : "+.@online_count+" - Cashpoint Arena "+( .@point / .@online_count )+" Cash Points.";
					}
		attachrid( .@acc_id );
		dispbottom "All Your party member gained "+( .@point / .@online_count )+" cash point/s.";
	}
}
end;
}

 this script

share party cashpoint i have 2 member of my party when i kill this  id 3627 i got 25 points but the original is 50 divide 2? =25

if  one party 10 member got 10divide50= 5cashpoints

 

 i want to change the script if i kill 3627 id all party member got 50 points same my points not divided 

i i have 10 member of my party then i kill 3627 i got 50cashpoints and my party member got 50cashpoints each character

6 answers to this question

Recommended Posts

Posted (edited)


....

....

for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 )

if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) )

if( attachrid( $@partymemberaid[.@i] ) )

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

set .@online_count,.@online_count + 1;

if( killedrid == 3627 ) .@point = .@point * .@online_count; // add this ...

....

....

....

Edited by Emistry
Posted (edited)

master i got error from your script

i replace your code to my code master

erhb46.jpg

this is error

 

btw im EA master and can you add this mobs


	if( killedrid == 3629 = 20 cashpoints
	if( killedrid == 3628 = 20 cashpoints
	if( killedrid == 3627 = 20 cashpoints
Edited by Phantom Of Rogue-Gon
Posted (edited)

-    script    Partypoints    -1,{
OnNPCKillEvent:
if( killedrid == 3600 ||killedrid == 3629 ||killedrid == 3628 || killedrid == 3627 ){
    if( killedrid == 3600 ) set .@point,20;
    if( killedrid == 3629 ) set .@point,20;
    if( killedrid == 3628 ) set .@point,20;
    if( killedrid == 3627 ) set .@point,50;

    set .@party_id,getcharid(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] ) )
                if( attachrid( $@partymemberaid[.@i] ) )
                    if( HP && strcharinfo(3) == .@map$ )
                        set .@online_count,.@online_count + 1;

if( killedrid == 3627 || killedrid == 3628 || killedrid == 3629 ) .@point = .@point * .@online_count; // add this ...
for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 ) if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) ) if( attachrid( $@partymemberaid[.@i] ) ) if( HP && strcharinfo(3) == .@map$ ){ set #CASHPOINTS, #CASHPOINTS + ( .@point / .@online_count ); dispbottom "Party Online : "+.@online_count+" - Cashpoint Arena "+( .@point / .@online_count )+" Cash Points."; } attachrid( .@acc_id ); dispbottom "All Your party member gained "+( .@point / .@online_count )+" cash point/s."; } } end; }
like this?

 

like this?

same error master

20u1z01.jpg

Edited by Phantom Of Rogue-Gon

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