Results 1 to 3 of 3
  1. #1
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,113
    My Mood
    Angelic

    Red face [VB.Net] Simple Command "Class" (For Kenshin13 Jr)

    .
    @Kenshin13 Jr

    As I said, I would create a simple Command "Class" for you, and here it is


     
    Code:
    Dim PlayerAddresses As Integer() = {100, 200, 300, 400} 'Player 1 | Player 2 | Player 3 | Player 4
        Dim FunctionOffsets As Integer() = {&H1, &H2, &H3, &H4, &H5} 'Primary Ammo | Secondary Ammo | Grenades Ammo | Health | Score (Offset value from Player Address)
    
    Public Function AnalyzeCommand(ByVal Command As String) As Integer()
            Dim PlayerIndex, OptionIndex As Integer
    
            If Command.Contains("p1") Then PlayerIndex = 0
            If Command.Contains("p2") Then PlayerIndex = 1
            If Command.Contains("p3") Then PlayerIndex = 2
            If Command.Contains("p4") Then PlayerIndex = 3
    
            If Command.Contains("pAmmo") Then OptionIndex = 0
            If Command.Contains("sAmmo") Then OptionIndex = 1
            If Command.Contains("gAmmo") Then OptionIndex = 2
            If Command.Contains("health") Then OptionIndex = 3
            If Command.Contains("score") Then OptionIndex = 4
    
            Return {PlayerAddresses(PlayerIndex) + FunctionOffsets(OptionIndex), Int32.Parse(Command.Remove(0, Command.LastIndexOf(" ")))}
        End Function


    How To Use

    The 'PlayerAddress' is where you enter the address for each player. (It must be the same 'base' for all.)
    -Example: Use the player's name, as the base address. And take the Name Address (-) Health Address. (Then you get the Offset)

    Add the Offset you got for Health in the: 'FunctionOffset', in the Correct Index Position.
    Re-do this for all the options you want


    Usage:
    Last edited by Jorndel; 06-26-2013 at 05:17 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  2. #2
    ImMalkah's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    GTA Section
    Posts
    2,779
    Reputation
    370
    Thanks
    2,699
    My Mood
    Devilish
    Thanks bro, ill try to do this

    MPGH HISTORY:

    Registered Since 4-23-2013
    Editor 09-04-2013 - unknown
    Minion 10-22-2013 - 1-18-2014
    Donator 12-31-2014 - present
    Premium Seller 12-31-2016 - present
    Minion 03-15-2017 - I forgot

  3. #3
    epicplayer112211221122's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    99
    Reputation
    10
    Thanks
    143
    can someone send me a test for send command to the game?
    like give weapon "weapon name"

Similar Threads

  1. Netting Material Class name for Dayz+
    By cobra0702 in forum DayZ Discussion
    Replies: 2
    Last Post: 01-31-2013, 08:56 AM
  2. My spanish class quotes
    By Marauder in forum General
    Replies: 11
    Last Post: 08-30-2011, 11:16 PM
  3. Easy Class Editor for alteriw.net
    By sisadebela in forum Call of Duty Modern Warfare 2 Private Servers
    Replies: 7
    Last Post: 05-30-2010, 11:08 AM
  4. Replies: 6
    Last Post: 01-26-2008, 10:57 AM