matheus00123 Posted January 22, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 34 Reputation: 3 Joined: 01/14/12 Last Seen: May 13, 2023 Share Posted January 22, 2018 (edited) Hello! I wanted help to convert this modification into src, soon or around the world, and no emulator worked perfectly with the script below. Src used in brAthena, I wanted to convert this to rAthena. /** * King of Emperium Hill **/ int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int *flag ) { if ( retVal == 1 ) { struct block_list *s_bl = src; if( (s_bl = battle->get_master(src)) == NULL ) s_bl = src; if ( s_bl->type == BL_PC && target->type == BL_MOB ) { TBL_PC *sd = BL_CAST( BL_PC, s_bl ); TBL_MOB *md = BL_CAST( BL_MOB, target ); if ( ( md->class_ == MOBID_EMPELIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) && ( sd->status.guild_id == mapreg->readreg( script->add_str("$koegid") ) || battle->get_current_skill(src) > 0 ) ) return 0; } } return retVal; } Edited January 23, 2018 by matheus00123 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted January 22, 2018 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: 18 hours ago Share Posted January 22, 2018 *you didn't search for it Quote Link to comment Share on other sites More sharing options...
0 matheus00123 Posted January 23, 2018 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 34 Reputation: 3 Joined: 01/14/12 Last Seen: May 13, 2023 Author Share Posted January 23, 2018 Tranks!!! Quote Link to comment Share on other sites More sharing options...
Question
matheus00123
Hello!
I wanted help to convert this modification into src, soon or around the world, and no emulator worked perfectly with the script below.
Src used in brAthena, I wanted to convert this to rAthena.
/** * King of Emperium Hill **/ int battle_check_target_post( int retVal, struct block_list *src, struct block_list *target, int *flag ) { if ( retVal == 1 ) { struct block_list *s_bl = src; if( (s_bl = battle->get_master(src)) == NULL ) s_bl = src; if ( s_bl->type == BL_PC && target->type == BL_MOB ) { TBL_PC *sd = BL_CAST( BL_PC, s_bl ); TBL_MOB *md = BL_CAST( BL_MOB, target ); if ( ( md->class_ == MOBID_EMPELIUM && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) && ( sd->status.guild_id == mapreg->readreg( script->add_str("$koegid") ) || battle->get_current_skill(src) > 0 ) ) return 0; } } return retVal; }
Link to comment
Share on other sites
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.