[Question]Death removal from UI

07/15/2016 19:51 [ADM]Minxii#1
As the title suggests i want to remove the showing of Deaths on the character UI. Ive found with servers before that people will leave pvp after deaths so as not to mess up their KDR. So my idea is to remove that so deaths are inconsequencial. I would however liked to keep them in the DB for Statpad checking purposes any ideas .. thanks in advance
07/15/2016 20:23 -Motion-#2
You can edit the ps_game for not increase the deaths

Sorry English
07/17/2016 08:33 Sleep_#3
Quote:
Originally Posted by [ADM]Minxii View Post
As the title suggests i want to remove the showing of Deaths on the character UI. Ive found with servers before that people will leave pvp after deaths so as not to mess up their KDR. So my idea is to remove that so deaths are inconsequencial. I would however liked to keep them in the DB for Statpad checking purposes any ideas .. thanks in advance
Quote:
Originally Posted by -Motion- View Post
You can edit the ps_game for not increase the deaths

Sorry English
Hi, as told as -Motion-, for do that you require a modification on the ps_game file. If you use episode 4.5, you have to work on this offset with ollydbg or any other debugger: 0045B082. You will find this code:
Code:
MOV DWORD PTR DS:[ESI+150],EAX
you have to change:
Code:
MOV DWORD PTR DS:[ESI+150],0
remember that the change will be permanent if you do that.
Another way is cheat engine. I prepared a cheat table with a script (always for 4.5) which allows to enable / disable that condition. You can download it here: [Only registered and activated users can see links. Click Here To Register...]
Now there's one last problem: when you log in, your deaths will be taken from field K2 in your database. Also you need a counter for deaths and the K2 field is no more usable, so you can create another field and modify your current stored procedure for make that easily.
07/18/2016 19:07 [ADM]Minxii#4
Thank you hunny thats great to know but i actually want to keep the DB entries to check on statpadders. I have worked out the offset in The Game.exe but honestly i suck at Olly lol

For anyone who wants to know the address in Game.exe that is where the "death increase" is stored is [022A082C]. Someone has offered help but is busy atm but anyone else wanting to do this i believe it would be a game.exe edit and there is the address. I tried NOP the area but i cant seem to save after(again may be me being a dumbass with olly)
07/19/2016 09:27 Sleep_#5
Quote:
Originally Posted by [ADM]Minxii View Post
Thank you hunny thats great to know but i actually want to keep the DB entries to check on statpadders. I have worked out the offset in The Game.exe but honestly i suck at Olly lol

For anyone who wants to know the address in Game.exe that is where the "death increase" is stored is [022A082C]. Someone has offered help but is busy atm but anyone else wanting to do this i believe it would be a game.exe edit and there is the address. I tried NOP the area but i cant seem to save after(again may be me being a dumbass with olly)
It's quite easy to do that, you have to work on 2 portions of code:
-go to 0054CE50. you will find:
Code:
MOV DWORD PTR DS:[21E4F6C],EDX
fill it with nop; it represents the code that set your death at login

-go to 0054CAD. you will find:
Code:
MOV DWORD PTR DS:[EAX*4+21E4F68],ECX
fill it with nop; it represents the code that increase your death at each toon death
That's all, i hope i have helped you!

I didn't read the last part of your post. For saving after modification:
Right click->Edit -> Select All
Right click again -> Edit -> Copy to executable