Jump to content
  • 0

AGI Up and Blessing targetting


Vach

Question


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Hello everyone, I have been interested in making AGI Up and Blessing target the same way Angelus does (by applying instantly to everyone in your party) and I have been unsuccessful. I figured it was something to do with the skill_db.txt settings, but I may not be configuring them properly.

I I surmised it might be done by tweaking the inf and nk, but I wasn't successful in my tests. Anyone know if this kind of thing is source code related?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Read the the 'Party version' from Arch Bishop skill. Or you can try to use 0x3 in value #6

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

Read the the 'Party version' from Arch Bishop skill. Or you can try to use 0x3 in value #6

If 0x3 works I'd be surprised because I thought it would be 12 - 0x0400- usable only on party-members (and enemies if skill is offensive) o_o... Well, 0x3 will work too then I guess just because you're making it a no damage skill, yet with splash area. So, looking at Angelus, we use 0x3 yet gives that splash effect in-game to party members.. but it's not using the 12 slots, 0x0400. So it could work either way.

33,0,6,4,0,0x3,-1,10,1,yes,0,0,0,magic,0, AL_ANGELUS,Angelus
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

0x3 had no effect, it just makes it target only you. Although that is part of the inf being changed to 4 to match how Angelus is placed. The 0x0400 had no effect unless being used with 16 targeting in which case you can't use it on enemies anymore ("negative bless" versus Undead).

It looks to me that the way Angelus functions is by targeting yourself, and "splashing" the entire visible screen (the -1 splash), but it is granted to those far off screen, which leads me to believe it is hard coded to work that way. I looked around but I'm still not familiar enough with the source code to know where the casting of Angelus takes place.

>_<

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

I see, I figured it was part of the source. Is the AGI/Blessing code located in that same file (skill.c)?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

I wanted to post back and let others know I solved this issue. If you would like to know instructions for your own purposes, feel free to post.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

I wanted to post back and let others know I solved this issue. If you would like to know instructions for your own purposes, feel free to post.

I recommend you post your solution so that people know for future references xD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Yea, I was thinking that when I posted... why not just... do it now? ...but then I had my computer troubles and ah... I digress. XD

Anyway, to change the functionality of these skills go to skill.c and find this block:

    case AL_INCAGI:
case AL_BLESSING:
case MER_INCAGI:
case MER_BLESSING:
 if (dstsd != NULL && tsc->data[sC_CHANGEUNDEAD]) {
  skill_attack(BF_MISC,src,src,bl,skillid,skilllv,tick,flag);
  break;
 }

This section of code is earlier in the skill call and declares individual targets using:

clif_skill_nodamage(src,bl,skillid,skilllv,
  sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv)));

Comment out the AL_INCAGI and AL_BLESSING lines here, NOTE, this will mean you cannot target undead with them anymore.

Then find this block:

case AL_ANGELUS:
case PR_MAGNIFICAT:
case PR_GLORIA:
case SN_WINDWALK:
case CASH_BLESSING:
case CASH_INCAGI:
case CASH_ASSUMPTIO:
 if( sd == NULL || sd->status.party_id == 0 || (flag & 1) )
  clif_skill_nodamage(bl, bl, skillid, skilllv, sc_start(bl,type,100,skilllv,skill_get_time(skillid,skilllv)));
 else if( sd )
  party_foreachsamemap(skill_area_sub, sd, skill_get_splash(skillid, skilllv), src, skillid, skilllv, tick, flag|BCT_PARTY|1, skill_castend_nodamage_id);
 break;

And add:

//  Added here for "global cast effect"
case AL_INCAGI:
case AL_BLESSING:
// ---

Above it. After this it is very important you go to skill_db and make Increase AGI and Blessing mimic Angelus's skill db settings (target flags, etc.)

And that was it!

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