Jump to content
  • 0

Check SC_ int_party.c


Triedge

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  46
  • Reputation:   1
  • Joined:  03/20/12
  • Last Seen:  

I am currently making a modification to the party system, but for it to work, I need to verify if the player has an SC_

I currently have this modification ...

in char/int_party.c

int party_check_exp_share(struct party_data *p)
{
	struct map_session_data *sd[MAX_PARTY];
	unsigned int i;

	for (i = 0; i < MAX_PARTY; i++) {
		if ((sd[i] = p->data[i].sd) == NULL) continue;
		if ((CheckMasterMode(p->data[i].sd) == TRUE)) {
				return 1;
		}
	}
	return (p->party.count < 2 || p->max_lv - p->min_lv <= party_share_level);
}

 

in map/status.c

bool CheckMasterMode(struct map_session_data *sd) {
	struct status_change *sc;

	nullpo_retr(false, sd);
	sc = &sd->sc;
	if (sd && sc && sc->data[SC_MASTERMODE]) {
		ShowDebug("Player en SC_MASTERMODE \n");
		return true;
	}

	ShowDebug("No have SC_Mastermode! \n");
	return false;
}

in map/status.h

bool CheckMasterMode(struct map_session_data *sd);

But at the moment of compiling I get the following error.

 

Screenshot_119.thumb.png.0c0b50b0ebc13d66ba0f97fa5ed186ab.png

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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