Jump to content
  • 0

King of Emperium Hill


matheus00123

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   3
  • Joined:  01/14/12
  • Last Seen:  

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 by matheus00123
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1691
  • Reputation:   716
  • Joined:  12/21/14
  • Last Seen:  

*you didn't search for it

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...