Issue information

Issue ID
#7837
Status
Needs more Info
Severity
None
Started
kyeme
Nov 18, 2013 14:52
Last Post
kyeme
Nov 26, 2013 10:25
Confirmation
N/A

kyeme - Nov 18, 2013 14:52

Defense in pre-renewal changes to a negative number once the total defense of an item reaches [color=#ff0000]131[/color]
I would like to suggest a defense cap. Thank you :)

evilpuncker - Nov 18, 2013 16:30

seems like u r trying to use renewal item db with pre-re source? :P

Frost - Nov 18, 2013 22:19

it is normal because integer supports only 127, even in eathena. your def will become negative if your reach that limit

Ind - Nov 25, 2013 15:52

ehm o-o where does it get negative? I wasn't able to reproduce but I think I'm looking at the wrong place

sevenzz23 - Nov 25, 2013 16:58

this will happen if you make a custom item with def. more than 131

ossi0110 - Nov 25, 2013 18:11

[quote name="sevenzz23" timestamp="1385398732"]
this will happen if you make a custom item with def. more than 131[/quote]

thats normal on PRE-Renewall [color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3] because integer supports only 127[/size][/font][/color]


[color=rgb(40,40,40)][font=helvetica, arial, sans-serif][size=3]btw the server drops mostly a warning when you use a item with more then 127 Def,[/size][/font][/color]

This post has been edited by ossi0110 on Nov 25, 2013 18:12

kyeme - Nov 26, 2013 10:25

[quote name="Ind" timestamp="1385394725"]
ehm o-o where does it get negative? I wasn't able to reproduce but I think I'm looking at the wrong place[/quote]
Try this

{
Id: 2102
AegisName: "Guard_"
Name: "Guard"
Type: 5
Buy: 500
Weight: 300
[color=#ff0000]Def: 60[/color]
Slots: 1
Loc: 32
View: 1
},
{
Id: 2404
AegisName: "Shoes_"
Name: "Shoes"
Type: 5
Buy: 3500
Weight: 400
[color=#ff0000]Def: 51[/color]
Slots: 1
Job: 0xFFFFFFFE
Loc: 64
},

Then upgrade the shoes and guard to plus 10
(60def + 51def + 10refine + 10refine = [color=#ff0000]131[/color])

The result will become [color=rgb(255,0,0)]-127[/color]

This post has been edited by kyeme on Nov 26, 2013 10:39