RamsayIV Posted January 19, 2016 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 01/19/16 Last Seen: November 23, 2022 Share Posted January 19, 2016 (edited) Hi guys. I was trying to make some conditions on the PK Mode that the emulator has by default. So, on my server, i activated the PK Mode but i wanted to add some conditions: 1. Only Rebirth Class (Champion, Lord Knights, etc...) can fight on the Fields and Dungeons. 2. Only Expanded Class (Gunslinger, TaeKwon, Ninja) can also fight on the Fields and Dungeons. 3. Novices, 1st Class and 2nd Class Can Not fight on the Fields and Dungeons. I've been searching this stuff on the SRC files and i found these lines, src/map/map.ph: if( state&BCT_ENEMY && battle_config.pk_mode && !map_flag_gvg(m) && s_bl->type == BL_PC && t_bl->type == BL_PC ) { // Prevent novice engagement on pk_mode (feature by Valaris) TBL_PC *sd = (TBL_PC*)s_bl, *sd2 = (TBL_PC*)t_bl; if ( (sd->class_&MAPID_UPPERMASK) == MAPID_NOVICE || (sd2->class_&MAPID_UPPERMASK) == MAPID_NOVICE || (int)sd->status.base_level < battle_config.pk_min_level || (int)sd2->status.base_level < battle_config.pk_min_level || (battle_config.pk_level_range && abs((int)sd->status.base_level - (int)sd2->status.base_level) > battle_config.pk_level_range) ) state &= ~BCT_ENEMY; } So, because u have 0 knowledge about SRC, i couldn't do it by mself. I was hoping that someone of you guys could help me out with these, it will be much appreciated. Thank you guys. ______________________________________ EDIT: Sorry guys, it was supposed to be on SRC Support section, my bad. Edited January 19, 2016 by RamsayIV Quote Link to comment Share on other sites More sharing options...
0 Scylla Posted January 19, 2016 Group: Members Topic Count: 47 Topics Per Day: 0.01 Content Count: 374 Reputation: 47 Joined: 03/27/13 Last Seen: Monday at 11:23 PM Share Posted January 19, 2016 Hi guys. I was trying to make some conditions on the PK Mode that the emulator has by default. So, on my server, i activated the PK Mode but i wanted to add some conditions: 1. Only Rebirth Class (Champion, Lord Knights, etc...) can fight on the Fields and Dungeons. 2. Only Expanded Class (Gunslinger, TaeKwon, Ninja) can also fight on the Fields and Dungeons. 3. Novices, 1st Class and 2nd Class Can Not fight on the Fields and Dungeons. I've been searching this stuff on the SRC files and i found these lines, src/map/map.ph: if( state&BCT_ENEMY && battle_config.pk_mode && !map_flag_gvg(m) && s_bl->type == BL_PC && t_bl->type == BL_PC ) { // Prevent novice engagement on pk_mode (feature by Valaris) TBL_PC *sd = (TBL_PC*)s_bl, *sd2 = (TBL_PC*)t_bl; if ( (sd->class_&MAPID_UPPERMASK) == MAPID_NOVICE || (sd2->class_&MAPID_UPPERMASK) == MAPID_NOVICE || (int)sd->status.base_level < battle_config.pk_min_level || (int)sd2->status.base_level < battle_config.pk_min_level || (battle_config.pk_level_range && abs((int)sd->status.base_level - (int)sd2->status.base_level) > battle_config.pk_level_range) ) state &= ~BCT_ENEMY; } So, because u have 0 knowledge about SRC, i couldn't do it by mself. I was hoping that someone of you guys could help me out with these, it will be much appreciated. Thank you guys. ______________________________________ EDIT: Sorry guys, it was supposed to be on SRC Support section, my bad. I'm not sure if this is gonna work but back up your src in case it didn't. Simply add the following jobs you want below this line: (sd->class_&MAPID_UPPERMASK) == MAPID_NOVICE || (sd2->class_&MAPID_UPPERMASK) == MAPID_NOVICE || So that'll be: (sd->class_&MAPID_UPPERMASK) == MAPID_NOVICE || (sd2->class_&MAPID_UPPERMASK) == MAPID_NOVICE || (sd->class_&MAPID_UPPERMASK) == MAPID_MAGE || (sd2->class_&MAPID_UPPERMASK) == MAPID_MAGE || Then go add the other jobs, after that recompile. Quote Link to comment Share on other sites More sharing options...
0 RamsayIV Posted January 19, 2016 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 3 Reputation: 0 Joined: 01/19/16 Last Seen: November 23, 2022 Author Share Posted January 19, 2016 Thank you for replying. I did it, but it also considers Blacksmith and Whitesmith. I want Whitesmith to engage in tf. :/ Quote Link to comment Share on other sites More sharing options...
Question
RamsayIV
Hi guys. I was trying to make some conditions on the PK Mode that the emulator has by default.
So, on my server, i activated the PK Mode but i wanted to add some conditions:
1. Only Rebirth Class (Champion, Lord Knights, etc...) can fight on the Fields and Dungeons.
2. Only Expanded Class (Gunslinger, TaeKwon, Ninja) can also fight on the Fields and Dungeons.
3. Novices, 1st Class and 2nd Class Can Not fight on the Fields and Dungeons.
I've been searching this stuff on the SRC files and i found these lines, src/map/map.ph:
So, because u have 0 knowledge about SRC, i couldn't do it by mself.
I was hoping that someone of you guys could help me out with these, it will be much appreciated.
Thank you guys.
______________________________________
EDIT: Sorry guys, it was supposed to be on SRC Support section, my bad.
Edited by RamsayIVLink to comment
Share on other sites
2 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.