[DEV] Discussion - DURA

09/26/2011 17:12 ismokedrow#1
Ok so here is the deal, I stumbled across dura items in the database and was successful in the attempt to alter their stats (Using information provided by Silent Bill) the dura works in game and can have it's stats set to give the correct amount of stat and stat type for the wep. (Using Base_Var for P/M.atk)

I believe the correct stats can be implemented via the OPT_var records, the problem is the item either starts out at 0/170 dura (this is on R6 Fervent Cleaver [2h] axe) if you change the 'Endurance' record on the cleaver you actually get dura to reset in. My problem is that the table is originally int32 and I tried several values ranging from -2 through 170 to -1.000 to 170.000 After a certain point I began testing different data types for the endurance field (Decimal, Numerical) and the lowest I can get the weapons dura is 380/170.


The weapon works when equipped and gives all stats set in the record to be given, the issue I feel is when you log the items will break. (This most likely due to the game seeing 380/170 and saying the dura is not correct and then it breaks. (While changing the endurance value for the weapon I got a range of durability all the way up to 200k/170) So I guess what the discussion is, is as follows:


We need to find the correct data type for the 'Endurance' field and the proper value for the field so that we can back the durability into the safe range e.g 150/170 to test and see if thats why the item breaks on relog.


Secondly the correct Opt_Var type (e.g. 11 for p.atk) for the dura type in question and set the values accordingly.


If I am correct in my findings and assumptions we could have dura working within days to weeks, but this is only if someone wants to take the time to help me figure out the problem.


Pyrok has said previous 'The game doesn't understand dura' I can't accept that as the final answer for the simple fact that when I spawn in a dura wep with edited opt_var's it will even give whatever stats I set to be the dura stats and will work for the entire duration of my being logged in, the moment I log out and back in all dura weps will break due to them being spawned with 0/xxx dura (Unless edited and as before with my edits the lowest dura I have achieved is 380/170)


I will be speaking with 'Silent Bill' and a few other database and SQL savvy people I know, but my hopes are that dura is not a thing just for the emulator and is just waiting to be fixed.


-ismokedrow
09/26/2011 19:06 ironhammer500#2
Well it seems you arnt changing the right value, or did u try change the max dura anyways afaik dura wasnt fully added to epic 7 was it? so it might be a client issue.

But ive not seen the dura so cant say much only that you could try to edit the max dura and set a higher cap so ur item probaly has half endurance.

OPT_var is the varible option so your editing the value that is the life of the item not the max dura.

try what i said find the max endurance value but i get the feeling dura wont work till 7.1 server and client are sync'd

Same with staging its probaly in there but wont work.
09/26/2011 20:03 daverockmee1#3
Ok I aint a DEV or anything close to it but just something that came to my mind, if you cant get the first part lower then the second why not increase the second part?
09/26/2011 20:04 ismokedrow#4
ironhammer500 add me on skype I wanna give you a tour of some of the things I have been working on at Redemption.

P.S.

I spoke to Pyrok directly, he says the the 'endurance' table isn't directly related to the dura on the items, but when tampered can cause higher durability but that won't matter as the item will not give the correct durability.
09/27/2011 11:37 ironhammer500#5
@smoke added ya now.

But i get the feeling dura is just lingering in the files waiting for the epic 7 implement.

wonder what other crap they make up then go "hey lets make them wait and pay lots of dollars to wait for stuff thats in the game all rdy!"
09/27/2011 12:13 Naga4Sale#6
considering how bad the dura system was back then i dont care if it was released!

only when they introduced the repair all button i started to use it. would that be possible to do?
09/28/2011 22:37 lawlywood#7
Hey peeps im back. And guess what: I saw those PMs i recieved during my ban. LSHMSFOAIDMT i got banned from a mod who got banned? Wtfux, srsly ePvPers is a strange board.

Anyway: I think the durasystem itself would be pretty awesome cause you can increase the stats, if you want to, so it isn't so bad at all. (and you could decrease those masses of buffs to gain the strength you got on live server)
09/30/2011 22:05 Ikealampe#8
Maybe u could try to put the dura fixing items to npc.. They are avaible in database, but i cant find the right item id :/..
When you inserted them you could try to fix your broken stuff on regular way whit same item and the right npc item.. Maybe there is a way to find the right database path this way
10/01/2011 10:19 misterd#9
perhaps its a good idea to write on an .lua if user has item (dura) then automaticly repair and set dura 170? that would solve it i geuss
10/01/2011 12:34 wisp66#10
Quote:
Originally Posted by Naga4Sale View Post
considering how bad the dura system was back then i dont care if it was released!

only when they introduced the repair all button i started to use it. would that be possible to do?
you mean a repair all button?
depends what epic it was added
perhaps later on yes but not with the current gameserver much like adding ursa tab i did alot of research in to that and its not possable for those right now
what i mean when i say its not possable or not understood by gameserv is that this gameserv.exe is from 2009 and is built to support 5.2 threw 6.1 but can support some features as high as 7.1
anything client gui cant be changed or if it wasnt already added in 6.1 look yes functionality yes but only to current functions higher functions from newer epics no
ursa tab and open ursa untimed was 6.2 as gameserver has no clue what its expected to do same would go for a dura button and pet staging and while actual dura is a maybe if its hexed in to replace ancient gear pet staging is a no as its unrefrenced