Jump to content

WoflRoom

Members
  • Posts

    4
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

WoflRoom's Achievements

Drops

Drops (2/15)

  • One Year In
  • Conversation Starter
  • First Post
  • Dedicated
  • Week One Done

Recent Badges

0

Reputation

  1. Hello, my server has a season character system, and the character's rate is different from that of the others, so I would like to prevent it from being adopted, so that there is no abuse to quickly increase the Rank using the marriage system and adoption. In src\map\pc.cpp I found where the restrictions are... Can I read here the single variable that I define in the character during his creation to return negative and not let him be adopted or make a query in MySQL on the "char_reg_num" table to validate his rate and block it? enum adopt_responses pc_try_adopt(map_session_data *p1_sd, map_session_data *p2_sd, map_session_data *b_sd) { if( !p1_sd || !p2_sd || !b_sd ) return ADOPT_CHARACTER_NOT_FOUND; if( b_sd->status.father || b_sd->status.mother || b_sd->adopt_invite ) return ADOPT_ALREADY_ADOPTED; // already adopted baby / in adopt request if( !p1_sd->status.partner_id || !p1_sd->status.party_id || p1_sd->status.party_id != b_sd->status.party_id ) return ADOPT_MARRIED_AND_PARTY; // You need to be married and in party with baby to adopt if( p1_sd->status.partner_id != p2_sd->status.char_id || p2_sd->status.partner_id != p1_sd->status.char_id ) return ADOPT_MARRIED_AND_PARTY; // Not married, wrong married if( p2_sd->status.party_id != p1_sd->status.party_id ) return ADOPT_MARRIED_AND_PARTY; // Both parents need to be in the same party // Parents need to have their ring equipped if( !pc_isequipped(p1_sd, WEDDING_RING_M) && !pc_isequipped(p1_sd, WEDDING_RING_F) ) return ADOPT_EQUIP_RINGS; if( !pc_isequipped(p2_sd, WEDDING_RING_M) && !pc_isequipped(p2_sd, WEDDING_RING_F) ) return ADOPT_EQUIP_RINGS; // Already adopted a baby if( p1_sd->status.child || p2_sd->status.child ) { clif_Adopt_reply(p1_sd, ADOPT_REPLY_MORE_CHILDREN); return ADOPT_MORE_CHILDREN; } // Parents need at least lvl 70 to adopt if( p1_sd->status.base_level < 70 || p2_sd->status.base_level < 70 ) { clif_Adopt_reply(p1_sd, ADOPT_REPLY_LEVEL_70); return ADOPT_LEVEL_70; } if( b_sd->status.partner_id ) { clif_Adopt_reply(p1_sd, ADOPT_REPLY_MARRIED); return ADOPT_MARRIED; } if( !( ( b_sd->status.class_ >= JOB_NOVICE && b_sd->status.class_ <= JOB_THIEF ) || b_sd->status.class_ == JOB_SUPER_NOVICE || b_sd->status.class_ == JOB_SUPER_NOVICE_E ) ) return ADOPT_NOT_NOVICE; return ADOPT_ALLOWED; } What syntax can I use to query variables here or make a query in the db?
  2. Hello! All fine? This line does not exist in the latest version of the emulator... status_change_end(&sd->bl, SC_PRESERVE, INVALID_TIMER); I made the rest of the changes and it partially worked. 1 - When I log out, it disappears and I need to reactivate it. (Does anyone know how to leave it fixed, disable using it again) 2 - When the Skill is copied and Preserve is not active, it copies other skills by adding new icons of the skills that are being copied without deleting the previous one, just by relogging the old ones they disappear)
×
×
  • Create New...