karazu 33 Posted February 25, 2014 (edited) battle.c: In function 'battle_check_target':battle.c:6210: warning: suggest parentheses around '&&' within '||'and this is the diff + if (src->type == BL_PC && target->type == BL_MOB)+ {+ TBL_MOB *mob_ = (TBL_MOB*)target;+ TBL_PC *sd_ = (TBL_PC*)src;+ if (sd_ && mob_)+ {+ if (mob_->noattackable == 1)+ return -1;+ }+ }+ all this onescript.c: In function 'buildin_bg_teamcreate':script.c:18513: warning: implicit declaration of function 'mapindex_name2id' + // BG join+ + BUILDIN_DEF(bg_teamjoin, "ii"),+ BUILDIN_DEF(bg_teamcreate, "s*"),+ // Dota+ BUILDIN_DEF(setmobnowalkable, "ii"),+ BUILDIN_DEF(setmobnoattackable, "ii"), Edited February 25, 2014 by karazu Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 25, 2014 (edited) if (src->type == BL_PC && target->type == BL_MOB)[change intoif ( ( src->type == BL_PC ) && ( target->type == BL_MOB ) ).. . you didn't show the 2nd one but change mapindex_name2id into mapindex->name2id ... hmm ... so that's dota battleground script ... I've heard rumors about it last year during my stay in rathena forum of course it doesn't work in hercules Edited February 25, 2014 by AnnieRuru Quote Share this post Link to post Share on other sites
0 karazu 33 Posted February 25, 2014 if (src->type == BL_PC && target->type == BL_MOB)[change intoif ( ( src->type == BL_PC ) && ( target->type == BL_MOB ) ).. . you didn't show the 2nd one but change mapindex_name2id into mapindex->name2id ... hmm ... so that's dota battleground script ... I've heard rumors about it last year during my stay in rathena forum of course it doesn't work in hercules yes this is.. I will test it now Quote Share this post Link to post Share on other sites
0 karazu 33 Posted February 25, 2014 (edited) Its herebattle.c: In function 'battle_check_target':battle.c:6210: warning: suggest parentheses around '&&' within '||' + } else if( (sd->duel_group+ && !((!battle_config.duel_allow_pvp && map->list[m].flag.pvp) || (!battle_config.duel_allow_gvg && map_flag_gvg(m))))+ || (cell_pk_check(t_bl, s_bl, m) == true) Edited February 25, 2014 by karazu Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 27, 2014 + } else if( (sd->duel_group+ && !((!battle_config.duel_allow_pvp && map->list[m].flag.pvp) || (!battle_config.duel_allow_gvg && map_flag_gvg(m))))+ || (cell_pk_check(t_bl, s_bl, m) == true) I actually see a missing closing bracket instead of suggesting a new parenthesis how about showing a few lines above and below so that I can understand what it actually means no idea what it is when just showing the conditions Quote Share this post Link to post Share on other sites
battle.c: In function 'battle_check_target':
battle.c:6210: warning: suggest parentheses around '&&' within '||'
and this is the diff
all this one
script.c: In function 'buildin_bg_teamcreate':
script.c:18513: warning: implicit declaration of function 'mapindex_name2id'
Share this post
Link to post
Share on other sites