Jump to content
  • 0

how to fix pre-renewal and stats points?


Question

Recommended Posts

Posted

I've already anwsered this question for someone else but here's the 2 choices again on what you could do to change that.

-Recompile server with pre-renewal formulas overall by commenting this line in renewal.h,

 

#define RENEWAL
It well turn your server into part pre-renewal for several formulas unless you comment out the rest on it.

or

-Go in the source code, pc.c, and change the following line,

sp += (low < 100) ? (2 + (low - 1) / 10) : (16 + 4 * ((low - 100) / 5));
for
sp += ( 1 + (low + 9) / 10 );
and recompile the server which will make server use pre-renewal formulas for status point calculations while keeping the rest of the renewal settings.
Posted (edited)

did you re-compile?
because i'm currently using the second solution myself and its working..
 

-Go in the source code, pc.c, and change the following line,
sp += (low < 100) ? (2 + (low - 1) / 10) : (16 + 4 * ((low - 100) / 5));
for
sp += ( 1 + (low + 9) / 10 );
and recompile the server which will make server use pre-renewal formulas for status point calculations while keeping the rest of the renewal settings.
Edited by Jhedzkie
Posted

i think i already do that thing.

 

check my pc.c on that part.

 

        return 0; // Official servers show '0' when max is reached
 
    high = low + val;
 
    if ( val < 0 )
        swap(low, high);
 
    for ( ; low < high; low++ )
#ifdef RENEWAL // renewal status point cost formula
        sp += ( 1 + (low + 9) / 10 );
#else
        sp += ( 1 + (low + 9) / 10 );
#endif
    
    return sp;
}
 
/// Raises a stat by 1.
/// Obeys max_parameter limits.
/// Subtracts stat points.
///
/// @param type The stat to change (see enum _sp)
int pc_statusup(struct map_session_data* sd, int type)
{
    int max, need, val;
 
    nullpo_ret(sd);
Posted (edited)

tried, tested working with a fresh copy of the latest rA svn.

 

2hy9dav.png

 

 

 

well, there's nothing more i can tell you. that's about everything that you'll be needing to do.

Edited by Jhedzkie
Posted (edited)

You didn't recompile it XD If you have a host then you must have it.. Closing and Starting the map-server doesn't compile src folders.. As far as I know~

 

and your using renewal not pre-renewal.

Edited by Paulinds
Posted

/rathena/trunk/src/config/renewal.h

 

// Copyright (c) rAthena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _CONFIG_RENEWAL_H_
#define _CONFIG_RENEWAL_H_

/**
 * rAthena configuration file (http://rathena.org)
 * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
 **/

/**
 * @INFO: This file holds general-purpose renewal settings, for class-specific ones check /src/config/classes folder
 **/

/// game renewal server mode
/// (disable by commenting the line)
///
/// leave this line to enable renewal specific support such as renewal formulas
#define RENEWAL

/// renewal cast time
/// (disable by commenting the line)
///
/// leave this line to enable renewal casting time algorithms
/// cast time is decreased by DEX * 2 + INT while 20% of the cast time is not reduced by stats.
/// example:
///  on a skill whos cast time is 10s, only 8s may be reduced. the other 2s are part of a
///  "fixed cast time" which can only be reduced by specialist items and skills
#define RENEWAL_CAST

/// renewal drop rate algorithms
/// (disable by commenting the line)
///
/// leave this line to enable renewal item drop rate algorithms
/// while enabled a special modified based on the difference between the player and monster level is applied
/// based on the http://irowiki.org/wiki/Drop_System#Level_Factor table
#define RENEWAL_DROP

/// renewal exp rate algorithms
/// (disable by commenting the line)
///
/// leave this line to enable renewal item exp rate algorithms
/// while enabled a special modified based on the difference between the player and monster level is applied
#define RENEWAL_EXP

/// renewal level modifier on damage
/// (disable by commenting the line)
///
// leave this line to enable renewal base level modifier on skill damage (selected skills only)
#define RENEWAL_LVDMG

/// renewal enchant deadly poison algorithm
///
/// leave this line to enable the renewed EDP algorithm
/// under renewal mode:
///  - damage is NOT increased by 400%
///  - it does NOT affect grimtooth
///  - weapon and status ATK are increased
#define RENEWAL_EDP

/// renewal ASPD [malufett]
/// (disable by commenting the line)
///
/// leave this line to enable renewal ASPD
/// - shield penalty is applied
/// - AGI has a greater factor in ASPD increase
/// - there is a change in how skills/items give ASPD
/// - some skill/item ASPD bonuses won't stack
#define RENEWAL_ASPD

#endif // _CONFIG_RENEWAL_H_

 

 

Go to this 

/// leave this line to enable renewal specific support such as renewal formulas
#define RENEWAL

 

And Add //

/// leave this line to enable renewal specific support such as renewal formulas
//#define RENEWAL

 

 

This will be Pre-Renewal once you add "//". It will also change the stat points back, I also have the same problem and I just did this step.

Posted (edited)

yes i put this line

 

//#define RENEWAL

 

i already do that sir but still nothing change.

i do right click map server then rebuild its successful but still same problem at stats points.

 

please help, i think my brain will explode. hahaha...

Edited by Hatake Kakashi
Posted (edited)

delete first existing .pdb / .lnk files inside your rathena folder. then recompile it as a whole.

Edited by Jhedzkie

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