Jump to content
  • 0

Def going negative


integral

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   4
  • Joined:  02/01/12
  • Last Seen:  

Can anyone help me with this problem?

Using rAthena latest version with renewal mode 0.

When the def of items equipped on my character reaches 128 and above, it gives negative results.

Thank you.

Edit: I forgot to add, I'm also using the item_db of renewal.

Edited by integral
Link to comment
Share on other sites

11 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  164
  • Reputation:   12
  • Joined:  01/03/12
  • Last Seen:  

if you disable renewal or REMODE = 0,

your item_db must also be pre renewal , because def on renewal is different from before it

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   4
  • Joined:  02/01/12
  • Last Seen:  

if you disable renewal or REMODE = 0, your item_db must also be pre renewal , because def on renewal is different from before it

yeah, but isn't there any way for me to use the renewal item_db but still having the pre-re mechanics?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

You can just transfer over the contents of the renewal item_db over to the pre-re item_db. however do note that changes like armor, attack, etc will be renewal.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  167
  • Reputation:   4
  • Joined:  02/01/12
  • Last Seen:  

You can just transfer over the contents of the renewal item_db over to the pre-re item_db. however do note that changes like armor, attack, etc will be renewal.

Yes, I already did that, but, due to the def armor raised, the defense of a character is going negative once it reaches 127 def.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  52
  • Reputation:   6
  • Joined:  01/06/12
  • Last Seen:  

"pre-re" mechanics? But then having above 99 defense would mean you'd take no damage from physical attacks wouldn't it?

Well, here you go:

if you go into status.h and find where the structure status_data is declared, and then find:

signed char
 def, mdef;

And change signed char into short, then def and mdef should be able to go from -32k to +32k, but there's probably several checks that cap the value to 128 (CHAR_MAX/2 = 256/2, since a signed character can go from -128 to 128) in status.c, but you could find those with a little searching. At least it shouldn't overcap unless you somehow get above 33k defense.

Edited by Variant
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  06/23/12
  • Last Seen:  

i have the same problem to.. i dont want to use the renewal defense formunal because my server is only in 99/70 and no 3rd class.. so i want to use the item_db of the renewal, and no renewal formula on defense.. if i reach 100 def.. it turns negative

This my Setting

// Max armor def/mdef
// NOTE: This setting have no effect if server is run on Renewal Mode (RRMODE)
// NOTE: does not affects skills and status effects like Mental Strength
// If weapon_defense_type is non-zero, it won't apply to max def.
// If magic_defense_type is non-zero, it won't apply to max mdef.
max_def: 500

// Def to Def2 conversion bonus. If the armor def/mdef exceeds max_def,
// the remaining is converted to vit def/int mdef using this multiplier
// (eg: if set to 10, every armor point above the max becomes 10 vit defense points)
over_def_bonus: 1

still become negative when i reach the defense of 100

Edited by lilyuuki
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  234
  • Reputation:   19
  • Joined:  06/15/12
  • Last Seen:  

i have the same problem to.. i dont want to use the renewal defense formunal because my server is only in 99/70 and no 3rd class.. so i want to use the item_db of the renewal, and no renewal formula on defense.. if i reach 100 def.. it turns negative

@lilyuuki

Look at the post from Variant:

99def @pre-re makes you pretty much immune to physikal attacks.

So going above 99def @pre-re makes no sense at all.

Here are some possible "fixes":

- Turn on Renewal

- Use the pre-re db

- try what Variant posted

- modify the renewal items in your re db to give less def

Edited by Ainna
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  06/23/12
  • Last Seen:  

@ainna

i dont know what to modify.. im using rathena - Revision 16434.. i want to disable the renewal.. so no renewal defense formula and i use the pre-re itemdb.txt but still it gives me negative defense

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  234
  • Reputation:   19
  • Joined:  06/15/12
  • Last Seen:  

Any refineable custom items with uber def? +10 refiner? Accessory refineable?

It´s not easy to get 99def in pre-re.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  80
  • Reputation:   0
  • Joined:  07/03/12
  • Last Seen:  

Can u teach how to use pre-renewal DB instead of renewal DB

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  126
  • Reputation:   4
  • Joined:  10/31/12
  • Last Seen:  

if im using pre-re but my item_db is renewal. . . what can i solve my problem for negative when i reach the defense of 100?

 

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