Jump to content

RamsayIV

Members
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    United States
  • Server
    None

RamsayIV's Achievements

Poring

Poring (1/15)

  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Hello community. Well, i have enabled the PK Mode on my server but i've been trying to exclude the First and Second Classes from this mode, so only the Rebirth Classes (Lord Knight, Champion, etc...) can fight on the maps which this is enabled. I've found that this can be edited in src/battle.c exactly in these lines: if( state&BCT_ENEMY && battle_config.pk_mode && map[m].flag.fvf && !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; } Where by default the Novice Class fights is disabled on PK Maps. I tried to add the Mage Class exception by adding this and IT DOES WORK. But when i try to add the Wizard Class exception with the same condition it won't work: I don't why it doesnt work. I imagine that i have to use another condition but i have no clue about which one could be. I was wondering if some of you could help me out with this. Thank you in advance for your attention and possible help.
  2. Thank you for replying. I did it, but it also considers Blacksmith and Whitesmith. I want Whitesmith to engage in tf. :/
  3. 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.
×
×
  • Create New...