Jump to content
  • 0

Must use Shift+ on Custom Skill like Blessing


Question

Posted

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!

8 answers to this question

Recommended Posts

  • 0
Posted (edited)

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
  • 0
Posted (edited)

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
  • 0
Posted (edited)
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
  • 0
Posted
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 

  • 0
Posted (edited)

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
  • 0
Posted (edited)

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

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