Results 1 to 3 of 3
  1. #1
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,539
    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 06: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
    Diamond's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Location
    CoD Section
    Posts
    2,226
    Reputation
    200
    Thanks
    2,523
    My Mood
    Devilish
    Thanks bro, ill try to do this
    Instagram: fadi.ovo

    Twitter: @byFadi

    YouTube: OVO MobZai

  3. #3
    epicplayer112211221122's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    99
    Reputation
    10
    Thanks
    138
    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, 09:56 AM
  2. My spanish class quotes
    By Marauder in forum General
    Replies: 11
    Last Post: 08-31-2011, 12:16 AM
  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, 12:08 PM
  4. Replies: 6
    Last Post: 01-26-2008, 11:57 AM