Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/09/22 in all areas

  1. Hello, Here it is! From: Kreustoo <[email protected]> Subject: Remove party requirement for Twilight alchemy --- src/map/party.cpp | 10 ++++++---- src/map/skill.cpp | 16 +++++++++------- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/src/map/party.cpp b/src/map/party.cpp index 030adb86c..359bd5770 100644 --- a/src/map/party.cpp +++ b/src/map/party.cpp @@ -975,10 +975,12 @@ int party_skill_check(struct map_session_data *sd, int party_id, uint16 skill_id case MO_COMBOFINISH: //Increase Counter rate of Star Gladiators if (!p->state.sg) return 0; break; - case AM_TWILIGHT2: //Twilight Pharmacy, requires Super Novice - return p->state.snovice; - case AM_TWILIGHT3: //Twilight Pharmacy, Requires Taekwon - return p->state.tk; + //[Custom] Disable AM_TWILIGHT2 and AM_TWILIGHT3 party requirement + //case AM_TWILIGHT2: //Twilight Pharmacy, requires Super Novice + // return p->state.snovice; + //case AM_TWILIGHT3: //Twilight Pharmacy, Requires Taekwon + // return p->state.tk; + //[Custom] end default: return 0; //Unknown case? } diff --git a/src/map/skill.cpp b/src/map/skill.cpp index 0a168837c..219675bfe 100644 --- a/src/map/skill.cpp +++ b/src/map/skill.cpp @@ -15680,13 +15680,15 @@ bool skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_i } } break; - case AM_TWILIGHT2: - case AM_TWILIGHT3: - if (!party_skill_check(sd, sd->status.party_id, skill_id, skill_lv)) { - clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); - return false; - } - break; + //[Custom] Disable AM_TWILIGHT2 and AM_TWILIGHT3 party requirement + //case AM_TWILIGHT2: + //case AM_TWILIGHT3: + // if (!party_skill_check(sd, sd->status.party_id, skill_id, skill_lv)) { + // clif_skill_fail(sd,skill_id,USESKILL_FAIL_LEVEL,0); + // return false; + // } + // break; + //[Custom] end case SG_SUN_WARM: case SG_MOON_WARM: case SG_STAR_WARM: -- 2.25.0.windows.1
    1 point
  2. warp_get_suggestions(sd, map_name); return -1; } - if ((x || y) && map_getcell(m, x, y, CELL_CHKNOPASS)) - { //This is to prevent the pc_setpos call from printing an error. - clif_displaymessage(fd, msg_txt(sd,2)); // Invalid coordinates, using random target cell. - if (!map_search_freecell(NULL, m, &x, &y, 10, 10, 1)) - x = y = 0; //Invalid cell, use random spot. - } + if (x || y) { //This is to prevent the pc_setpos call from printing an error. + if(map_getcell(m, x, y, CELL_CHKNOPASS)){ + clif_displaymessage(fd, msg_txt(sd,2)); // Invalid coordinates, using random target cell. + if (!map_search_freecell(NULL, m, &x, &y, 10, 10, 1)) + x = y = 0; //Invalid cell, use random spot. + } else { + struct map_data *mapdata = map_getmapdata(m); + for (int i = 0; i < mapdata->npc_num; i++) + if( x == mapdata->npc[i]->bl.x && y == mapdata->npc[i]->bl.y ){ + if (!map_search_freecell(NULL, m, &x, &y, 1, 1, 1)) + x = y = 0; + break; + } + } + }
    1 point
  3. in mob.c - pc_isGM(sd) + pc_get_group_level(sd) Try this one: if( (mvp_sd && pc_get_group_level(mvp_sd)) || (sd && pc_get_group_level(sd)) ) { if( mvp_sd && pc_get_group_level(mvp_sd) < battle_config.gm_monsterdrop_lv ) type |= 1; else if( sd && pc_get_group_level(sd) < battle_config.gm_monsterdrop_lv ) type |= 1; } It should work, i tested mine here.
    1 point
  4. src/map/skill.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/skill.c b/src/map/skill.c index ad08fb3..23db870 100755 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -15595,6 +15595,7 @@ void skill_weaponrefine (struct map_session_data *sd, int idx) pc_unequipitem(sd,idx,3); } clif_delitem(sd,idx,1,3); + clif_additem(sd,idx,1,0); clif_upgrademessage(sd->fd, 0, item->nameid); clif_inventorylist(sd); clif_refine(sd->fd,0,idx,item->refine);
    1 point
×
×
  • Create New...