Jump to content
  • 0

Problem on Pre-re e RE


dygow16

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  05/12/12
  • Last Seen:  

I would ask the help of friends'm riding a server full pre renewal and I'm not finding any information that met my requirement.

I changed the file renewal.h disabling options but from what I've been reading have to change the directory of folders date and npc? someone could help me believe it is in const.h file

 

my renewal.h

 

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

//quick option to disable all renewal option, used by ./configure
//#define PRERE
#ifndef PRERE
/**
 * 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 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

/// renewal stat calculations
/// (disable by commenting the line)
///
/// leave this line to enable renewal calculation for increasing status/parameter points
//#define RENEWAL_STAT

#endif

#endif // _CONFIG_RENEWAL_H_
 

 and my const.h (not edited)

 

// Copyright © rAthena Dev Teams - Licensed under GNU GPL
// For more information, see LICENCE in the main folder
#ifndef _RRCONFIGS_CONST_
#define _RRCONFIGS_CONST_

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

/**
 * @INFO: This file holds constants that aims at making code smoother and more efficient
 */

/**
 * "Sane Checks" to save you from compiling with cool bugs
 **/
#if SECURE_NPCTIMEOUT_INTERVAL <= 0
    #error SECURE_NPCTIMEOUT_INTERVAL should be at least 1 (1s)
#endif
#if NPC_SECURE_TIMEOUT_INPUT < 0
    #error NPC_SECURE_TIMEOUT_INPUT cannot be lower than 0
#endif
#if NPC_SECURE_TIMEOUT_MENU < 0
    #error NPC_SECURE_TIMEOUT_MENU cannot be lower than 0
#endif
#if NPC_SECURE_TIMEOUT_NEXT < 0
    #error NPC_SECURE_TIMEOUT_NEXT cannot be lower than 0
#endif

/**
 * Path within the /db folder to (non-)renewal specific db files
 **/
#ifdef RENEWAL
    #define DBPATH "re/"
#else
    #define DBPATH "pre-re/"
#endif

#define DBIMPORT "import"

/**
 * DefType
 **/
#ifdef RENEWAL
    typedef short defType;
    #define DEFTYPE_MIN SHRT_MIN
    #define DEFTYPE_MAX SHRT_MAX
#else
    typedef signed char defType;
    #define DEFTYPE_MIN CHAR_MIN
    #define DEFTYPE_MAX CHAR_MAX
#endif

/* pointer size fix which fixes several gcc warnings */
#ifdef __64BIT__
    #define __64BPRTSIZE(y) (intptr)y
#else
    #define __64BPRTSIZE(y) y
#endif

/* ATCMD_FUNC(mobinfo) HIT and FLEE calculations */
#ifdef RENEWAL
    #define MOB_FLEE(mob) ( mob->lv + mob->status.agi + 100 )
    #define MOB_HIT(mob)  ( mob->lv + mob->status.dex + 175 )
#else
    #define MOB_FLEE(mob) ( mob->lv + mob->status.agi )
    #define MOB_HIT(mob)  ( mob->lv + mob->status.dex )
#endif

/* Renewal's dmg level modifier, used as a macro for a easy way to turn off. */
#ifdef RENEWAL_LVDMG
    #define RE_LVL_DMOD(val) \
        if( status_get_lv(src) > 100 && val > 0 ) \
            skillratio = skillratio * status_get_lv(src) / val;
    #define RE_LVL_MDMOD(val) \
        if( status_get_lv(src) > 100 && val > 0) \
            md.damage = md.damage * status_get_lv(src) / val;
    /* ranger traps special */
    #define RE_LVL_TMDMOD() \
        if( status_get_lv(src) > 100 ) \
            md.damage = md.damage * 150 / 100 + md.damage * status_get_lv(src) / 100;
#else
    #define RE_LVL_DMOD(val)
    #define RE_LVL_MDMOD(val)
    #define RE_LVL_TMDMOD()
#endif

/* Feb 1st 2012 */
#if PACKETVER >= 20120201
    #define NEW_CARTS
    #ifndef ENABLE_SC_SAVING
     #warning "Cart won't be able to be saved for relog"
    #endif
    #define MAX_CARTS 9
#else
    #define MAX_CARTS 5
#endif

// 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); \
    }
#endif
/**
 * End of File
 **/
#endif
 

I ask a thousand apologies if I posted wrong or if the topic was still too big'm not very good at posts

Edited by dygow16
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  802
  • Reputation:   229
  • Joined:  01/30/13
  • Last Seen:  

You don't actually need to edit anything. It will automatically read from the "pre-re" folder if you disable renewal.

By the way, if you want full pre-renewal you don't even need to comment all the renewal defines, you can just uncomment PRERE here:

//quick option to disable all renewal option, used by ./configure

//#define PRERE

(uncomment second line)

I did only that and it worked automatically and read all the data from the pre-re folder so I'm pretty sure there are no further changes needed.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  05/12/12
  • Last Seen:  

Thank you my friend I will test but since already appreciate the attention

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