QuestionUnresolvedNeed help!!!

Posts 1–6 of 6 · Page 1 of 1
Need help!!!
Hi!

When i create a trainer i usually use only one adress like for ammo,money or health but this is time its two.
When i create a trainer in visual studio this is the code that i use
Code:
Dim MTP As String = TextBox2.Text
        Try
            WriteInteger("ac_client", &HDDA5A4, MTP)

        Catch ex As Exception

        End Try
but now i need to have two instead of just one so how do i do that like this

Adress x = 281A49C
Adress y = 281A4A0

And the x adress and the y adress need to be available to get changed to the new x and y place
ex x = 103 and y = 210

Could someone help me out please!
This thread answers the question abour multiple Offsets.
http://www.mpgh.net/forum/showthread.php?t=1181236

Now onto your question.
You have addresses for X & Y and want to find Z?
Normally Z is +4 of X (or Y, try it out).
And to print your X/Y/Z perhaps you should put all that in a loop that reads X/Y/Z.

Using your own Example:

Code:
Dim PlayerLocX as Integer = lblX.text
Dim PlayerLocY as Integer = lblY.text
Dim PlayerLocZ as Integer = lblZ.text

Try

	ReadInteger("ac_client", &HADDYOFX, PlayerLocX)
	ReadInteger("ac_client", &HADDYOFY, PlayerLocY)
	ReadInteger("ac_client", &HADDYOFZ, PlayerLocZ)

Catch ex As Exception
	MsgBox(ex.message)
End Try

'That way, it will constantly write your player location on Labels.
That is not a running code, it is just an example how it will look like. Well, if I have the same problem, Id do what wrote anyway. Im not picky, whatever works, works doesnt matter how you approach your problem or how you present your solution.
I just want to know how i can use two.
Like two addresses in this code D:


Code:
Dim MTP As String = TextBox2.Text
        Try
            WriteInteger("ac_client", &HDDA5A4, MTP)

        Catch ex As Exception

        End Try
You Could Do Something Like This

Code:
Private Const X_Addy = &H281A49C
Private Const Y_Addy = &H281A4A0

Then On Button Click
WriteInteger("Game Process",X_Addy,Textbox1.text)'Change X Coord
WriteInteger("Game Process",Y_Addy,Textbox2.text)'Change Y Coord
End Sub

You Could Add a Timer Too to make button unable to be click if textbox dont have the coordinate
Timer1 Sub
If Textbox1.text = "" and Textbox2.text = "" then
Button1.enabled = false
else
Button2.Enabled = True
end if
end sub
Why do you declare your variables always as string?!
Learn the basics of "Basic" before you coding shit like that.
You are lucky that vb.net is pretty tolerant about that, but though you should learn how to use datatypes!
No response for more than a week.
Marking it as unresolved.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?