Jump to content
  • 0

Question

Posted (edited)

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

11 answers to this question

Recommended Posts

Posted
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?

Posted

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.

Posted (edited)

"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
Posted (edited)

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
Posted (edited)

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
Posted

@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

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