[TuT] How to write a pointer and a float in vb6
ok so you have your pointer and offset,now what keep using uce to hack or make a trainer?well if you already know how to make a trainer with theredeyes tut.but now we want to add superjump or swim.or w/e has a pointer.
things you need in vb6
how to add a timer(interval of 1)
how to add a textbox
theredeyes module,with my addon
ok so heres my superjump code for example
'we have to Dim our stuff,first
'Ingame Hotkey Numpad 1 Obviously
' Read a value from memory -the value being read is a pointer
' Add (&H180) to the pointer,so now jump1 would be are pointer with are offset
' Assign the value to be written,well use 2000 for how high we want togo,
'and instead of 2000 u can put in a textbox, now any number you put in your textbox is how high you want to go
'heres were we writeafloat,notice weve already assigend jump1 and jump3
so heres the code alltogether
this is how i do a pointer,and a float
swim is not a float so you dont need to callwriteafloat
heres the red eyes module with my addon
things you need in vb6
how to add a timer(interval of 1)
how to add a textbox
theredeyes module,with my addon
ok so heres my superjump code for example
'we have to Dim our stuff,first
Code:
Dim jump As Long Dim jump1 As Long Dim jump3 As Single
Code:
If GetKeyPress(VbKeyNumPad1) Then
Code:
Call ReadALong("WarRock", &H896E28, jump)
Code:
jump1 = jump + &H180
Code:
jump3 = 2000
Code:
jump3 = text1
'heres were we writeafloat,notice weve already assigend jump1 and jump3
Code:
Call WriteAFloat("WarRock", jump1, jump3)
End if
end sub
so heres the code alltogether
Code:
Dim jump As Long
Dim jump1 As Long
Dim jump3 As Single
If GetKeyPress(VbKeyNumPad1) Then
Call ReadALong("WarRock", &H896E28, jump)
jump1 = jump + &H180
jump3 = 2000 'or text1 for a textbox
Call WriteAFloat("WarRock", jump1, jump3)
End if
End Sub
this is how i do a pointer,and a float
swim is not a float so you dont need to callwriteafloat
Code:
Dim swim as long
Dim swim1 as long
Dim swim3 as Single
If GetKeyPress(VbKeyNumPad8)Then
Call ReadALong("WarRock",&H896E28,swim)
swim1 = swim + &H54 'adds the offset
swim3 = 4 'is the value we want
Call WriteALong("WarRock",swim1,swim3)
End If
End Sub
warrock module.txt
