Jump to content
  • 0

How to make ESKE only for mobs?


johnbond

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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.

 

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   14
  • Joined:  04/28/12
  • Last Seen:  

what version are you using? in the current version, its restricted to players.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

what version are you using? in the current version, its restricted to players.

 

 

I think this I use is older.

 

How to make it restrict to players?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  145
  • Reputation:   14
  • Joined:  04/28/12
  • Last Seen:  

I really don't know if it's src or in db.. try to google it.
if you don't have a solution yet, better to disable the skill first.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

I really don't know if it's src or in db.. try to google it.

if you don't have a solution yet, better to disable the skill first.

 

 

Anybody know how to fix?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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;

}

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

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