Jump to content
  • 0

MATK Limit


Katazui

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   22
  • Joined:  11/23/11
  • Last Seen:  

How do you set the MATK a limit like at 65k?

 

And how do you set other things limits too?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   22
  • Joined:  11/23/11
  • Last Seen:  

You know, probably all my posts and topics asking for help doesn't get the help it needs. So, my post cost really should be like 20. Fuck this.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   0
  • Joined:  09/23/12
  • Last Seen:  

With that attitude you'll definitely get some replies. Try searching, google, reading some guides.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   14
  • Joined:  12/12/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  08/01/12
  • Last Seen:  

@evelyn i have like 3 years trying to solve this , on eathena, 3ceam and rathena. that code only modify the matk rate :S but not the max value, i still trying to see if someone can help me with this. a few days ago i found a guide on rathena. but the src code is not the same. its a very very old code. http://www.eathena.ws/board/lofiversion/index.php/t250152.html

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