Re: Activing /gt*commnads + /jjang to ban command
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
Re: Activing /gt*commnads + /jjang to ban command
so this is a matchserver edit? alrighty then :P
Re: Activing /gt*commnads + /jjang to ban command
Quote:
Originally Posted by
wesman2232
so this is a matchserver edit? alrighty then :P
Probably Server and Client sided.. Because if the client requests a compare with 2. But it's changed to 253 in the server. it won't work.
If i'm wrong, don't flame just tell me
Re: Activing /gt*commnads + /jjang to ban command
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.
Re: Activing /gt*commnads + /jjang to ban command
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
Re: Activing /gt*commnads + /jjang to ban command
Re: Activing /gt*commnads + /jjang to ban command
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.
Re: Activing /gt*commnads + /jjang to ban command
Quote:
Originally Posted by
NIRVANAdylan
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.
so you made the jjang command like typing in-game? like you made it so you can type /jjang player 253 and it would ban them?
Re: Activing /gt*commnads + /jjang to ban command
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.
Re: Activing /gt*commnads + /jjang to ban command
Quote:
Originally Posted by
ThievingSix
This is on your client, not server -.-
Lol, that shut the him up !
Great TuT !
Re: Activing /gt*commnads + /jjang to ban command
Quote:
Originally Posted by
ThievingSix
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
FFS, forgot about that one. I was thinking about something different.
Quote:
Originally Posted by
NIRVANAdylan
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 don't know why, but I prefer working in the runnable and not via an external file.
Re: Activing /gt*commnads + /jjang to ban command
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!
Re: Activing /gt*commnads + /jjang to ban command
Where i will write this ?