Hello I have a little source code for KOE that worked before and it is made from rathena, can someone help me to convert it ot hercules because Im having error when Im compilng it
here's the code
here's the code
Code:
if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) { struct map_session_data *sd = BL_CAST(BL_PC, s_bl); if ( ( ((TBL_MOB*)target)->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "vmorocc" ) ) && ( sd->status.guild_id == mapreg_readreg( add_str("$KOEGUILD") ) || battle_getcurrentskill(src) > 0 ) ) return 0; }