Jump to content

Question

4 answers to this question

Recommended Posts

Posted (edited)

I am not sure if I am correct but it's worth a shot...

 

src/map/status#L3987

        if (bl->type&BL_PC && sd->matk_rate != 100) {
            status->matk_max = status->matk_max * sd->matk_rate/100;
            status->matk_min = status->matk_min * sd->matk_rate/100;
        }
        status->matk_max = status_calc_matk(bl, sc, status->matk_max);

        if ((bl->type&BL_HOM && battle_config.hom_setting&0x20)  //Hom Min Matk is always the same as Max Matk
                || (sc && sc->data[SC_RECOGNIZEDSPELL]))
            status->matk_min = status->matk_max;
        else
            status->matk_min = status_calc_matk(bl, sc, status->matk_min);

 

Perhaps you can add a conditional statement there to check if matk exceeds value it'll equal to fixed x amount.

The area I stated may be wrong area btw, just a heads up.

 

For other limits, I'd guess you'd have to search for each individual one inside the source.

 

----------------------------------------------

 

I tested with 

        if (bl->type&BL_PC && sd->matk_rate != 100) {
            if ( status->matk_min >= 20000 && status->matk_max >= 20000 ){
                status->matk_min = 20000;
                status->matk_max = 20000;
            } else {
            status->matk_max = status->matk_max * sd->matk_rate/100;
            status->matk_min = status->matk_min * sd->matk_rate/100;
            }
        }

Sadly, it didn't work. I am not sure if it is the correct area or not or if im not reading the code correct, but I tried X:. 

There may another area that I don't know about... Oh well.

Edited by Evelynn

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