Jump to content
  • 0

Check SC_ int_party.c


Question

Posted

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...