[help]finding item max Durability

06/17/2011 05:39 taylor2846#1
[Edit]
ok when i use um max drua 10 it shows the dura/maxdrua 0/0 but does not say it is damaged.
when i leave the item dura/max drua 1099 it shows item is damaged and will cost 5 mets to repair it.

please help me with this.
06/17/2011 06:31 nTL3fTy#2
Quote:
Originally Posted by taylor2846 View Post
my items database does not have the right item Durabilitys in it.
like luckyblade has 1099 max dura and and stuff like that when it should have a max dura of 10.


so how could i get the right max dura from this?
other then going 2 each one and editing it bye hand removing the 99 from the end.
i used Item INI Database Batcher.exe to get this database.

do they just add 9 to make it a 4 digit number? or what?
and if anyone has a 5375 itemtype converted to mysql please post it =] save me a little time if not i will just make somthing to convert mine 2 it later if i need 2. after i fix the item dura lol.

any way ttyl going 2 bed now lmao.
You want that 1099 value because that's what needs to be sent to the client in various packets so the client can understand what the item's durability is. The client interprets that number (1099) and shows it to the user as 10 by simply diving by 100 (integer division, of course).
06/17/2011 14:09 taylor2846#3
when i send 1099 the item shows up as damaged and need fixed, yet if i edit it to 10 it does not. any ideal why then?
06/17/2011 14:26 Korvacs#4
Are you sending both minimum and maximum values as 1099?
06/17/2011 14:54 taylor2846#5
yes. max and min drua is 1099
o btw it only says item is damaged after the char logs out and back in after buying a item.

any ideal why it is doing this? because i cant seam 2 find one.
06/17/2011 15:06 Korvacs#6
What does the durability read when they log back in?
06/17/2011 15:17 taylor2846#7
it does not show any dura when i log back in it just says this item is damaged. it will cost you 5 meteors to repair it.
but it does not show any dura on the item.
06/17/2011 15:27 Korvacs#8
Quote:
Originally Posted by taylor2846 View Post
it does not show any dura when i log back in it just says this item is damaged. it will cost you 5 meteors to repair it.
but it does not show any dura on the item.
Looks like your not saving/loading the item durability to me.
06/19/2011 05:39 taylor2846#9
i am saving and loading the item min and max dura, sorry it took so long for a reply i have not had time the past few days.

[EDIT]
omfg, i fell stupid lol
i found what was wrong thanks 2 your post Korvacs.
on loading the itmes i had it reading byte when my database was a int.
i fixed and it worked =]
so thanks xD