Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

Party exp share when kill mob script


kronobr

Question


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  71
  • Reputation:   0
  • Joined:  06/24/19
  • Last Seen:  

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.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  953
  • Reputation:   184
  • Joined:  04/05/13
  • Last Seen:  

Use isloggedin commands.

rathena\doc\script_commands.txt lines 10023 for example.

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