viewing paste Giant Fly Wing | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
        case ITEMID_GIANT_FLY_WING: {
            struct party_data *p;
            if (!sd->status.party_id) { // No party
                clif->msgtable(sd, MSG_PARTY_MEMBER_NOT_SUMMONED);
                break;
            }
            if ((p = party->search(sd->status.party_id)) != NULL) {
                int i;
                int16 m;
                ARR_FIND(0, MAX_PARTY, i, p->data[i].sd == sd);
 
                if (i == MAX_PARTY || !p->party.member[i].leader) { // Should not happen, Player is in party, but data not found in memory/ Not a Leader.
                    clif->msgtable(sd, MSG_PARTY_MEMBER_NOT_SUMMONED);
                    break;
                }
                
                m = sd->bl.m;
                
                ARR_FIND(0, MAX_PARTY, i, p->data[i].sd && p->data[i].sd != sd && p->data[i].sd->bl.m == m);
                if (i == MAX_PARTY) { // You're the leader, but no members in the map
                    clif->msgtable(sd, MSG_PARTY_NO_MEMBER_IN_MAP);
                    break;
                }
            }
        }
Viewed 1146 times, submitted by Dastgir.