You need to change the mov in the matchserver, there is a function named MMatchDBMgr::EventJjangUpdate you need to find where is the mov and change 2 to 253 in hex
You need to change the mov in the matchserver, there is a function named MMatchDBMgr::EventJjangUpdate you need to find where is the mov and change 2 to 253 in hex
so this is a matchserver edit? alrighty then :P
The server has the UPDATE query. It's something like UPDATE Account SET UGradeID=%d WHERE AID=%d
Since 253 is bigger than 2, you'll need to use some free space at the bottom, most likely. I've never looked into it, but I think you'll need to JMP to the bottom, make it 253, JMP back.
253 and 2 both occupy the same space.
0 - 255 = 1 byte
256 - 65535 = 2 bytes
65536 - 16777215 = 3 bytes
16777216 - 4294967295 = 4 bytes
=P
lol T6
You guys should really know ASM for being server owners and whatnot. Since if some of you attract real attention you can easily patch anything you dislike. For my executable, my /jjang doesn't even set the UGradeID at all, i have to manually set it.
Yes, so i don't call it jjang, i can call it like permission changer, or something, since i can change the grade id's from where I am. Plus, i recommend people not to rip open Gunz and add their own stuff just 'at-the bottom'. Just code a DLL, and hook ZChatOutput, and look to see when the user types something in an array maybe, e.g. /ban stop the /ban from being outputted to the actual chat, and do what you want /ban to do. Then just use a little bit of Gunz's extra space to then make the DLL you made inject upon starting. Then when you want to go more advanced, after making edits put some real good packer onto your EXE + DLL for added security.
I'm working on /gtgod on the client again, i know how much work it is =/
Better start now :P
EDIT: Fuck it, too much work and updating address, don't got time for it:P
EDIT2: Will do it in a DLL faster!
EDIT3:
I'm thinking this would do it: (not tested)
MOV ECX, 00672FB8 ;address to pGame + 0x50
MOV EAX, 00473750 ;address to SetHP
PUSH 100 ;100 being the HP
CALL EAX
RETN
make sure to change Arg3 to the address of where you put the above code, if you're going to test!
Last edited by NIRVANAdylan; 30-12-08 at 11:12 PM.
Where i will write this ?