[Question]Durability

05/28/2011 08:06 { Angelius }#1
how does it work i mean the calculation for it , im trying to calculate all items durability in the vip repair window and than find out the cast for the whole thing to be repaired but some how its being F**d up .

and the client is not sending any values that has anything to do with the cast on the repair button click ,

and i really need to find out what is the right math/formula for it :P

EDIT.

Open Me

A:
Durability = 15/41
cast: 91995;

B:
Durability = 19/70
cast: 37566;

how come the lower Durability casts less that the higher one i dont get it ?
05/28/2011 10:24 pro4never#2
Ok so excuse me if I'm completely wrong because I haven't done anything with the repair all button (not of importance to me really)

Shouldn't it work similar to how the repair button works? Should send uids of items to be repaired and you do all the calcs for costs server side. Alternatively you could just on receiving the repair all subtype find all valid items to be repaired and run your calculations based on those.

Again, sorry for any confusion just not 100 pct sure on what the issue is here.
05/28/2011 10:48 { Angelius }#3
nope its not the same the only thing that is being sent to the server is a 1009 subtype 15 for the vip and subtype 14 for the normal one ,

for the vip the packet contains the client UID + the subtype + some random value (no clue)
and for the normal repair (one item at a time) its the item UID + the subtype,

and still nothing about the amount so yes its server sided and thats the problem :P

some how every time i try to calculate it the amount changes and its never the same compared to the amount that the client asked to repair all the items ,

simply
foreach(equips values)
{
if (Dura < MaxDura)
Cast += (what should i do here :P);
}
05/28/2011 11:05 12tails#4
add me on msn angelius... i can give it to u if u want :P (PM me)
05/28/2011 11:09 { Angelius }#5
sure ty :)
05/28/2011 17:42 .Kinshi#6
I calculated and released the repair calcs here on epvp.

[Only registered and activated users can see links. Click Here To Register...]
05/28/2011 19:51 { Angelius }#7
Quote:
Originally Posted by .Kinshi View Post
I calculated and released the repair calcs here on epvp.

[Only registered and activated users can see links. Click Here To Register...]
ohh i never saw it i guess a got lost with over than 19 pages for the search result or maybe i have been using the wrong keywords to search :P

thanks any ways :)
05/28/2011 20:09 InfamousNoone#8
And here I was thinking I would get to post;
"S> Grade 2 Fraction Skills".