Jump to content
  • 0

Party exp share when kill mob script


Question

Posted
OnWBossDied:
	announce " " + strcharinfo(0) + " Find a Mob treasure!", bc_all, 0xFF0000;
	getitem 617,1;
	if (getcharid(1) == 0){
getexp 80000,0;
	end;
}
else {
	if( getcharid(1) ) {
		getpartymember( getcharid(1),2 );
		getpartymember( getcharid(1),1 );
	for( .@i = 0; .@i < $@partymembercount; .@i++ ) {
		if (attachrid($@partymemberaid[.@i])) {
			if (strcharinfo(3) == .map_event$) {
				getexp 80000,0;
			}
			detachrid;
		}
	}
	end;
}}}

I need the player to receive the exp and the party also to receive the exp. But I was bugging when there is no party person online. Can anyone help adjust?   The item (getitem) is just for who kill and this is ok.  When I was at a party created, but all offline, I was not receiving the exp.

1 answer to this question

Recommended Posts

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