Jump to content
  • 0

Question

Posted
OnNPCKillEvent:
if (killedrid == 1956)	{ // IFRIT
if (getcharid(1)){
	getpartymember getcharid(1),1;
	getpartymember getcharid(1),2;
	set .@acc_id, getcharid(3);
	for( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 )
		if( isloggedin( $@partymemberaid[.@i],$@partymembercid[.@i] ) )
			if( attachrid( $@partymemberaid[.@i] ) )
			set .@sharedpoints, (50/$@partymembercount);
			set #CASHPOINTS, #CASHPOINTS + .@sharedpoints;

	attachrid( .@acc_id );
	dispbottom "All party members have gained "+.@sharedpoints+" DaedaRO Points.";
	announce "MVP Watcher: "+strcharinfo(0) +" and the "+strcharinfo(1) +" party have killed Naght Sieger for 50 DaedaRO point/s!",0,0x38ACEC;
	}

 

 

What do I need to do so that It also displays " You have gained "+.@sharedpoints+" DaedaRO Points." for every member of the party not only the killer?

 

 

3 answers to this question

Recommended Posts

Posted


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

set .@sharedpoints, (50/$@partymembercount);

set #CASHPOINTS, #CASHPOINTS + .@sharedpoints;

dispbottom "Gained "+.@sharedpoints+" Points.";

}

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