Nokia Posted April 30, 2013 Posted April 30, 2013 Hey, im currently using the following src code for my koe event: + if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) { + struct map_session_data *sd = BL_CAST(BL_PC, s_bl); + struct mob_data *md = BL_CAST(BL_MOB, t_bl); + if ( ( ( md->class_ == 1288 || md->class_ == 1905 ) + && !strcmp( mapindex_id2name(sd->mapindex), "arug_que01" ) ) && + ( sd->status.guild_id == mapreg_readreg( add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) ) + return 0; + } + as far i understand, it checks if the map is aruq_que01 and if the mobs are 1288/1905 <- if so, any skill wont work on the mobs. so is there a way to allow certain skills? such as pneuma, safety wall, sanc, etc? Quote
1 Jarek Posted May 1, 2013 Posted May 1, 2013 if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) { struct map_session_data *sd = BL_CAST(BL_PC, s_bl); struct mob_data *md = BL_CAST(BL_MOB, t_bl); if ( ( ( md->class_ == 1288 || md->class_ == 1905 ) && !strcmp( mapindex_id2name(sd->mapindex), "arug_que01" ) ) && ( sd->status.guild_id == mapreg_readreg( add_str("$koegid") ) || battle_getcurrentskill(src) > 0 ) ) switch(battle_getcurrentskill(src)){ case AL_PNEUMA: case MG_SAFETYWALL: case PR_SANCTUARY: //add more skill here break; default: return 0; } } 1 Quote
Question
Nokia
Hey, im currently using the following src code for my koe event:
as far i understand, it checks if the map is aruq_que01 and if the mobs are 1288/1905 <- if so, any skill wont work on the mobs.
so is there a way to allow certain skills? such as pneuma, safety wall, sanc, etc?
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.