Jump to content
  • 0

change script so all party member got 50 cashpoints


Phantom Of Rogue-Gon

Question


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

-	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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


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


....

....

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

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


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


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

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:  

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

Link to comment
Share on other sites


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


if( killedrid == 3627 || killedrid == 3628 || killedrid == 3629 ) set .@point,( .@point * .@online_count ); // add this ...

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