Jump to content
  • 0

customize this koe src code


Nokia

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

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?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  143
  • Reputation:   30
  • Joined:  12/23/11
  • Last Seen:  

	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;

}

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

thanks, working very well

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...