Triedge Posted March 18, 2017 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 46 Reputation: 1 Joined: 03/20/12 Last Seen: April 18 Share Posted March 18, 2017 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. Quote Link to comment Share on other sites More sharing options...
Question
Triedge
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
in map/status.c
in map/status.h
But at the moment of compiling I get the following error.
Link to comment
Share on other sites
0 answers 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.