Results 1 to 7 of 7
  1. #1
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored

    Help! Auto Assemble in VB '08

    #Still unsolved but request to close this thread.
    Last edited by Hahaz; 07-09-2010 at 12:45 AM.

  2. #2
    Julma Henri's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,528
    Reputation
    205
    Thanks
    775
    My Mood
    In Love
    What that code Does Ingame ?
    Help me get donator.



    Want to become part of Editor Force? Click the tag below and apply now !

  3. #3
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    Stop the plant's cooldown after u summon it, so u can summon as many plants instantly.

  4. #4
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,915
    Reputation
    161
    Thanks
    3,108
    Gimme a second and I'll write you a function.

    Create a new module:

    Code:
     Module Hacks
    
    Private Declare Function OpenP Lib "kernel32" Alias "OpenProcess" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
    Private Declare Function WritePMem Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function WriteFloat Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function  Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByRef buffer As Single, ByVal size As Int32, ByRef lpNumberOfBytesRead As Int32) As Boolean
    Private Declare Function ReadMem Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Integer) As Integer
    
    Public Buff1, String1 As Long
    Public Buff2 As Single
    Public Buff3, String2 As Integer
    
    'WriteMemory
    Private Function WriteMem (ByVal MAddress As Integer, ByVal MValue As Long, ByVal MBytes As Integer)
    Dim LookUp As Process() = Process.GetProcessesByName("WarRock")
    If LookUp.Length = 0 Then
    End
    End If
    Dim PHandle As IntPtr = OpenP(&H1F0FFF, 0, LookUp(0).Id)
    WritePMem(PHandle, MAddress, MValue, MBytes, Nothing)
    CloseHandle(PHandle)
    End Function
    
    'WriteFloat
    Private Function Float (ByVal MAddress As Integer, ByVal MValue As Single)
    Dim LookUp As Process() = Process.GetProcessesByName("WarRock")
    If LookUp.Length = 0 Then
    End
    End If
    Dim PHandle As IntPtr = OpenP(&H1F0FFF, 0, LookUp(0).Id)
    WriteFloat(PHandle, MAddress, MValue, 4, Nothing)
    CloseHandle(PHandle)
    End Function
    
    Public function memoryh4x(ByVal address as string, ByVal value as long, ByVal bytes as integer)
    
    string1 = readdll("cshell.dll")
    string2 = "&H" & Hex(string1 + address)
    Call WriteMem(string2, value, bytes)
    
    Return Nothing
    End Function
    
    Public function floath4x(ByVal address as string, ByVal value as long)
    string1 = readdll("cshell.dll")
    string2 = "&H" & Hex(string1 + address)
    Call Float(string2, value)
    
    Return Nothing
    End Function
    
    End Module
    Second Module:

    Replace WarRock with the PROCESS NAME.

    Code:
    Module readdll
        'readdll
        Public Function readdll(ByVal modulename As String)
            Dim procmodule As ProcessModule
            Dim constant1 As Integer
            Dim constant2 As Long
            Dim constant3 As Process() = Process.GetProcessesByName("WarRock")
            If constant3.Length = 0 Then
                Return 0
            End If
            For Each procmodule In constant3(0).Modules
                If modulename = procmodule.ModuleName Then
                    constant1 = procmodule.BaseAddress
                End If
            Next
            constant2 = constant1
            Return constant2
        End Function
    End Module
    Now, to 'hack' it:

    1/2/4/8 bytes:

    memoryh4x(&H01B2C89F, 1337, 4) 'this will insert the value 1337 in the address 01B2c89f, which has 4 bytes

    float:

    floath4x(&H01B2C89F, 1337)
    Last edited by Blubb1337; 07-08-2010 at 09:31 PM.



  5. #5
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    Quote Originally Posted by Blubb1337 View Post
    Gimme a second and I'll write you a function.
    Thanks!

  6. #6
    Hahaz's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    Matrix World
    Posts
    1,170
    Reputation
    64
    Thanks
    4,091
    My Mood
    Bored
    I got errors when using your module:

    Error 1 Keyword is not valid as an identifier.
    Error 4 'readdll' is a type and cannot be used as an expression.
    Error 5 'readdll' is a type and cannot be used as an expression.
    Warning 2 Function 'WriteMem' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
    Warning 3 Function 'Float' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used.
    edit: ops.. sry double post.

    edit2: nvm... i will try it in c++

    #Request to close this thread
    Last edited by Hahaz; 07-09-2010 at 12:43 AM.

  7. #7
    Lolland's Avatar
    Join Date
    Feb 2009
    Gender
    male
    Location
    Lolland!
    Posts
    3,156
    Reputation
    49
    Thanks
    868
    My Mood
    Inspired
    Okay, closed on request.

Similar Threads

  1. [Help]Auto Update
    By snotpig in forum Visual Basic Programming
    Replies: 7
    Last Post: 03-13-2010, 03:32 PM
  2. [HELP] Auto Save
    By 2vivi in forum Visual Basic Programming
    Replies: 2
    Last Post: 01-15-2010, 02:36 PM
  3. [VB HELP]Auto-Type Combat Arms Mute
    By Pixie in forum Visual Basic Programming
    Replies: 12
    Last Post: 10-03-2009, 07:23 AM
  4. auto-assembler
    By zeco in forum Assembly
    Replies: 8
    Last Post: 08-28-2009, 10:35 AM
  5. [Please Help] Auto-Updating
    By twistedswift in forum Hack Requests
    Replies: 0
    Last Post: 08-01-2008, 10:59 AM