[TUT-newfix] Adding New Grades to Gunz
Updated TUT
Changelog
Code:
- Fixed 0,2 grade and all the normal grades which was black if u Followed my last TUT
Edit the below stuff
Code:
0049EF04 . 81F9 FE000000 CMP ECX,0FE
0049EF0A . 56 PUSH ESI
0049EF0B . B8 FF000000 MOV EAX,0FF
0049EF10 . 0F85 DA611400 JNZ Address1-fornewgrade ///--> i prefer jumping to address 005E50F0
Then
Code:
Address1-fornewgrade CMP ECX,[Grade in hexadecimals] //// --> CMP ECX,0C8 = Grade 200 its hexadecimal number
JNZ SHORT Address2-fornewgrade
MOV ESI,DWORD PTR SS:[ESP+10]
TEST ESI,ESI
MOV EDX,DWORD PTR SS:[ESP+C]
MOV DWORD PTR SS:[ESP+8],FF4080FF -->Binary - C7 44 24 08 FF 80 40 FF /// Thats the colour part and its orange
MOV EAX,DWORD PTR SS:[ESP+8]
MOV DWORD PTR DS:[EDX],EAX
MOV AL,1
POP ESI
RETN
Repeat the above code till (n-1) grades u need
For the last grade it shld be like this
Code:
Address1-fornewgrade CMP ECX,[Grade in hexadecimals] //// --> CMP ECX,0C8 = Grade 200 its hexadecimal number
JNZ 0049EF5E ///// Note u are jumping back to Developer Grade
MOV ESI,DWORD PTR SS:[ESP+10]
TEST ESI,ESI
MOV EDX,DWORD PTR SS:[ESP+C]
MOV DWORD PTR SS:[ESP+8],FF4080FF -->Binary - C7 44 24 08 FF 80 40 FF /// Thats the colour part and its orange
MOV EAX,DWORD PTR SS:[ESP+8]
MOV DWORD PTR DS:[EDX],EAX
MOV AL,1
POP ESI
RETN
This part is not required if u wish to make ur own string in a masked such as Administrator / Developer its necessary
Add this code below the Colours
Code:
MOV EAX,DWORD PTR SS:[ESP+8]
MOV DWORD PTR DS:[EDX],EAX
JE SHORT 0049EFAA ///--> jump to address of MOV AL,1 [3rd last line]
PUSH 232C ///--> THe no from mesages.xml u want to call
CALL 005084F0
MOV ECX,EAX
CALL 004CF670
MOV EDX,ESI
LEA ESP,DWORD PTR SS:[ESP]
MOV CL,BYTE PTR DS:[EAX]
INC EAX
MOV BYTE PTR DS:[EDX],CL
INC EDX
TEST CL,CL
JNZ SHORT theduel_.0049EFA0 ///---> JUmp to MOV CL,BYTE PTR DS:[EAX]
MOV AL,1
POP ESI
RETN
For colour stuff
use sayutas TUT
u can change this too sayutas code if u do not know how my colour code works
MOV DWORD PTR SS:[ESP+8],FF4080FF
to
MOV BYTE PTR SS:[ESP+8],FF
MOV BYTE PTR SS:[ESP+9],00
MOV BYTE PTR SS:[ESP+A],00
MOV BYTE PTR SS:[ESP+B],FF
Code:
Converting Grades to Hexadecimal
right click on olly ---> search for all constants --> and type the grade in signed and u get the hexadecimal no :)
Code:
Colour codes
http://www.trucosblogger.com/2007/06/generador-hex-color.html // Thanks diosz
Credits:-
Katsumi
sayuta
ownprox
cereal
Trilest
and all who found how to add grades
Re: [TUT] Adding New Grades to Gunz
Seems fine, but how did i help? LOL
Re: [TUT] Adding New Grades to Gunz
Quote:
Originally Posted by
sayuta
Seems fine, but how did i help? LOL
0049EFAF . xxxxxx JMP Address1-fornewgrade
0049EFB4 . 32C0 XOR AL,AL
0049EFB6 . B0 01 MOV AL,1
0049EFB8 . 5E POP ESI
0049EFB9 . C3 RETN
from ur post http://forum.ragezone.com/f311/olydb...7/#post5077525
Re: [TUT] Adding New Grades to Gunz
must be XOR AL,AL if im right o.o
not MOV AL,1.
Not sure,
Re: [TUT] Adding New Grades to Gunz
Quote:
Originally Posted by
sayuta
must be XOR AL,AL if im right o.o
not MOV AL,1.
Not sure,
but it still works :P
btw u have any idea in making the Admin and dev's grade Masked and the new Grades unmasked?
i use this in a masked runnable
Re: [TUT] Adding New Grades to Gunz
think i do, but done it long time ago with the ingame name string.
Like call only Admin, Dev, GM. => Show Ingame name string in color
And other Ranks like : jjang, VIP, HallOfFame etc => Show normal ingame name string color
Re: [TUT] Adding New Grades to Gunz
Quote:
Originally Posted by
sayuta
think i do, but done it long time ago with the ingame name string.
Like call only Admin, Dev, GM. => Show Ingame name string in color
And other Ranks like : jjang, VIP, HallOfFame etc => Show normal ingame name string color
HMm
Wud be nice if you can help me in getting unmasked new grades work
Re: [TUT] Adding New Grades to Gunz
Re: [TUT] Adding New Grades to Gunz
nice lol thanks for creds but all i did was use wizkids way but i had to learn how he did it
Re: [TUT] Adding New Grades to Gunz
Quote:
Originally Posted by
ownprox
nice lol thanks for creds but all i did was use wizkids way but i had to learn how he did it
I don't know his way, but I've done it by hooking the original function, easier to edit and all.
Btw, im on the credits :O:. Thanks
Re: [TUT] Adding New Grades to Gunz
Code:
MOV BYTE PTR SS:[ESP+8],FF
MOV BYTE PTR SS:[ESP+9],00
MOV BYTE PTR SS:[ESP+A],00
MOV BYTE PTR SS:[ESP+B],00
o.O
its wrong?
becuz with that dont work
should be
Code:
MOV BYTE PTR SS:[ESP+8],FF
MOV BYTE PTR SS:[ESP+9],00
MOV BYTE PTR SS:[ESP+A],00
MOV BYTE PTR SS:[ESP+B],FF <- always