Jump to content
  • 0

How to make ESKE only for mobs?


Question

Posted

Hi guys,

 

I want to ask maybe somebody knows how I can make the eske skill of soul linkers to only be castable to MONSTERS and not to players.

 

471,9,6,1,0,0x1,0,3,1,no,0,0,0,magic,0,0x0,        SL_SKE,Eske


Is it a DB modification or a SRC mod?

Kindly anyone please show me how we can do this.

 

Thank you.

 

 

7 answers to this question

Recommended Posts

  • 0
Posted (edited)

skill.c (line: 10509)

if( ud->skill_id >= SL_SKE && ud->skill_id <= SL_SKA && target->type == BL_MOB )
{
    if( ((TBL_MOB*)target)->mob_id == MOBID_EMPERIUM )
    break;
}

change to

if (ud->skill_id == SL_SKE && target->type != BL_MOB)
{
    clif_skill_fail(sd, SL_SKE, USESKILL_FAIL_TOTARGET_PLAYER, 0);
    break;
}
else if( ud->skill_id >= SL_SKE && ud->skill_id <= SL_SKA && target->type == BL_MOB )
{
    if( ((TBL_MOB*)target)->mob_id == MOBID_EMPERIUM )
    break;
}

NOTE: not tested, use at your own risk.

Edited by benching
  • 0
Posted

skill.c (line: 10509)

if( ud->skill_id >= SL_SKE && ud->skill_id <= SL_SKA && target->type == BL_MOB )
{
    if( ((TBL_MOB*)target)->mob_id == MOBID_EMPERIUM )
    break;
}

change to

if (ud->skill_id == SL_SKE && target->type != BL_MOB)
{
    clif_skill_fail(sd, SL_SKE, USESKILL_FAIL_TOTARGET_PLAYER, 0);
    break;
}
else if( ud->skill_id >= SL_SKE && ud->skill_id <= SL_SKA && target->type == BL_MOB )
{
    if( ((TBL_MOB*)target)->mob_id == MOBID_EMPERIUM )
    break;
}

NOTE: not tested, use at your own risk.

 

 

I cant find these lines.

 

if( ud->skill_id >= SL_SKE && ud->skill_id <= SL_SKA && target->type == BL_MOB )

{

if( ((TBL_MOB*)target)->mob_id == MOBID_EMPERIUM )

break;

}

  • 0
Posted (edited)

check your skill.c line:8303

look for this line:

case SL_SKA: // [marquis007]
case SL_SKE:
then add this :
if(sd && skill_id == SL_SKE && bl->type != BL_MOB){
    clif_skill_fail(sd, SL_SKE, USESKILL_FAIL_TOTARGET_PLAYER, 0);
    break;
}

to be sure, it should look like this:

case SL_SKA: // [marquis007]
case SL_SKE:
if(sd && skill_id == SL_SKE && bl->type != BL_MOB){
    clif_skill_fail(sd, SL_SKE, USESKILL_FAIL_TOTARGET_PLAYER, 0);
    break;
}
Edited by benching

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