Jump to content
  • 0

Must use Shift+ on Custom Skill like Blessing


OscarScorp

Question


  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Hello everyone,

I've created a buff skill similar to Blessing but I must use Shift in cities in order to make it work on other players and myself. It also has the issue of being able to apply it to mobs without pressing Shift (in fields/dungeons).

I've copied the exact same code from Blessing in skill.cpp and in skill_db.txt, am I missing something?

Thanks in advance!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

itd be easier if you just said what you wanted the skill to do 

 

you can try playing with your nk/inf1/inf2 settings and targetting but the noshift/shift option might just be client side.... 

 

28,9,6,16,6,0x21,0,10,1,yes,0,0x2000,0,magic,0,0x0,    AL_HEAL,Heal
34,9,6,16,0,0x1,0,10,1,yes,0,0,0,magic,0,0x1000,    AL_BLESSING,Blessing
 

in order of bold

inf1

// 04 inf (0- passive, 1- enemy, 2- place, 4- self, 16- friend, 32- trap)
 

nk

//    0x01 - No damage skill

 

inf2

//    0x00400 - usable only on party-members (and enemies if skill is offensive)

//    0x01000 - disable usage on enemies (for non-offensive skills).
 

Edited by Naruto
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

My custom skill buffs a selected player (can be casted on self) with both Blessing and Increase Agility. Basically it.
My skill_db: (0x1 because it's a quest-skill)

904,9,6,16,0,0x1,0,1,1,yes,0,0x1,0,magic,0,0x0,					PR_DOUBLEBUFF,Benedictus


I tried adding 0x21 just like AL_HEAL but same issue. I must use Shift+Skill on allies and myself in towns. I can use it without Shift in dungeons and fields but this also leads to being able to use it on monsters.

Edited by OscarScorp
Added code
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

21 hours ago, OscarScorp said:

My custom skill buffs a selected player (can be casted on self) with both Blessing and Increase Agility. Basically it.
My skill_db: (0x1 because it's a quest-skill)


904,9,6,16,0,0x1,0,1,1,yes,0,0x1,0,magic,0,0x0,					PR_DOUBLEBUFF,Benedictus


I tried adding 0x21 just like AL_HEAL but same issue. I must use Shift+Skill on allies and myself in towns. I can use it without Shift in dungeons and fields but this also leads to being able to use it on monsters.

in source just add something like

 if( bl->type == BL_MOB )

skill_failed(sd);   //you can remove this as i think it just gives you the skill failed msg on rA src
        return 0;

}

SCSTART ..... 

BREAK;

 

put it at the top where all your skill effects take place ... 

 

 

you cant figure out how to make the shift thing work ?  I would have to look through it...if this isnt good enough 

 

You dont want it to work on enemies ? then changing the inf2 in skilldb should be good enough 

//    0x01000 - disable usage on enemies (for non-offensive skills).


34,9,6,16,0,0x1,0,10,1,yes,0x01000,0,magic,0,0x1000,    AL_BLESSING,Blessing

 

could be 0x1000 

Edited by Naruto
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  217
  • Reputation:   16
  • Joined:  01/28/15
  • Last Seen:  

Thank you.

The most important aspect I'm looking for is to make it so it can be used without holding shift.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

13 hours ago, OscarScorp said:

Thank you.

The most important aspect I'm looking for is to make it so it can be used without holding shift.

/ns  in chat 

 

if nothing src modifications, and the editted skilldb entry dont work for you then im not sure 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/11/14
  • Last Seen:  

bringing this back from the dead since i have the same problem

 

SA_ELEMENTWATER and company require a shift click in order to target yourself or allies, need it to just be like any other buff. just need to be pointed in the right direction

Edited by blinzer
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.06
  • Content Count:  60
  • Reputation:   3
  • Joined:  06/21/23
  • Last Seen:  

Sorry for resurrecting an old thread but I'm having same issue with my custom supportive skills. They require '/ns' to cast on players, yet they can be cast on mobs without using '/ns'
I'm using 20220406, any thoughts on this?

skill.cpp

    case NV_CLEARS:
        clif_skill_nodamage(src,bl,skill_id,skill_lv,1);
        status_change_end(bl, SC_CURSE);
        break;

skill_db

  - Id: 785
    Name: NV_CLEARS
    Description: Clears
    MaxLevel: 1
    Type: Weapon
    TargetType: Support
    DamageFlags:
      NoDamage: true
    Flags:
      IsQuest: true
    Range: 1
    Hit: Single
    HitCount: 1
    CastCancel: true
    Cooldown: 5000
    Requires:
      SpCost: 20
Edited by jamesandrew
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  172
  • Reputation:   91
  • Joined:  04/10/12
  • Last Seen:  

I remember reading once that, every custom skill is treated as an offensive skill

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