Jump to content
  • 0

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


Question

Posted

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

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

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

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