Jump to content
  • 0

customize this koe src code


Question

Posted

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?

2 answers to this question

Recommended Posts

  • 1
Posted

	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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...