Jump to content
  • 0

Change Suffragium to reduce Fixed Cast Time instead of Variable Cast Time


healthydude

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   2
  • Joined:  02/05/13
  • Last Seen:  

Great day to everyone here in rAthena forums, 

I've been trying all day on finding a workaround on how I can edit these two skills:

1. Suffragium

2. Bragi's Poem

I want to modify it in a way that they reduce "Fixed Casting Time" instead of "Variable Cast Time".

I would appreciate it if anyone can enlighten me on how to modify these skills.

Regards,

healthydude

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

Hey buddy,

use the latest rathena, then copy-pasta.

const.hpp

Quote

// Renewal variable cast time reduction
#ifdef RENEWAL_CAST
    #define VARCAST_REDUCTION(val){ \
        if( (varcast_r += val) != 0 && varcast_r >= 0 ) \
            time = time * (1 - (float)min(val, 100) / 100); \
    }
    #define FIXCAST_REDUCTION(val){ \
        if( (fixcast_r += val) != 0 && fixcast_r >= 0 ) \
            time = time * (1 - (float)min(val, 100) / 100); \
    }

#endif

skill.cpp

Quote

        if (sc->data[SC_SUFFRAGIUM]) {
            //VARCAST_REDUCTION(sc->data[SC_SUFFRAGIUM]->val2);
            FIXCAST_REDUCTION(sc->data[SC_SUFFRAGIUM]->val2);

            status_change_end(bl, SC_SUFFRAGIUM, INVALID_TIMER);
        }

Quote

        if (sc->data[SC_POEMBRAGI])
            FIXCAST_REDUCTION(sc->data[SC_POEMBRAGI]->val2);
            //reduce_cast_rate += sc->data[SC_POEMBRAGI]->val2;

 

Edited by Ninja
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   2
  • Joined:  02/05/13
  • Last Seen:  

Thank you so much sir! You are a friggin life saver! I already solved it but thanks for giving me another avenue for solutions like this!

Image result for who's awesome you're awesome

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