Thread: Map Checker

Results 1 to 3 of 3
  1. #1
    Horror's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    51,4.
    Posts
    6,940
    Reputation
    574
    Thanks
    5,005
    My Mood
    Twisted

    Post Map Checker

    So yea, im releasing my C# Map Checker i guess Was thinking of releasing some source, not released before, and helpfull.
    I guess it might be usefull for SOME people, in this case, we'r using it to print a text giving you the current map in textBox22
    Code:
    private void timer1_Tick(object sender, EventArgs e)
            {
                if (ReadString(0xADAAF3, 7) == "seatown")
                {
                    textBox22.Text = "Current Map : Seatown.";
                    textBox22.BackColor = Color.Lime;
                }
                else
                    if (ReadString(0xADAAF3, 4) == "dome")
                    {
                        textBox22.Text = "Current Map : Dome.";
                        textBox22.BackColor = Color.Lime;
                    }
                    else
                        if (ReadString(0xADAAF3, 6) == "plaza2")
                        {
                            textBox22.Text = "Current Map : Arkaden.";
                            textBox22.BackColor = Color.Lime;
                        }
                        else
                            if (ReadString(0xADAAF3, 9) == "mogadishu")
                            {
                                textBox22.Text = "Current Map : Bakaara.";
                                textBox22.BackColor = Color.Lime;
                            }
                            else
                                if (ReadString(0xADAAF3, 5) == "paris")
                                {
                                    textBox22.Text = "Current Map : Resistance.";
                                    textBox22.BackColor = Color.Lime;
                                }
                                else
                                    if (ReadString(0xADAAF3, 8) == "exchange")
                                    {
                                        textBox22.Text = "Current Map : Downturn.";
                                        textBox22.BackColor = Color.Lime;
                                    }
                                    else
                                        if (ReadString(0xADAAF3, 7) == "bootleg")
                                        {
                                            textBox22.Text = "Current Map : Bootleg.";
                                            textBox22.BackColor = Color.Lime;
                                        }
                                        else
                                            if (ReadString(0xADAAF3, 6) == "carbon")
                                            {
                                                textBox22.Text = "Current Map : Carbon.";
                                                textBox22.BackColor = Color.Lime;
                                            }
                                            else
                                                if (ReadString(0xADAAF3, 7) == "hardhat")
                                                {
                                                    textBox22.Text = "Current Map : Hardhat.";
                                                    textBox22.BackColor = Color.Lime;
                                                }
                                                else
                                                    if (ReadString(0xADAAF3, 5) == "alpha")
                                                    {
                                                        textBox22.Text = "Current Map : Lockdown.";
                                                        textBox22.BackColor = Color.Lime;
                                                    }
                                                    else
                                                        if (ReadString(0xADAAF3, 7) == "village")
                                                        {
                                                            textBox22.Text = "Current Map : Village.";
                                                            textBox22.BackColor = Color.Lime;
                                                        }
                                                        else
                                                            if (ReadString(0xADAAF3, 7) == "lambeth")
                                                            {
                                                                textBox22.Text = "Current Map : Fallen.";
                                                                textBox22.BackColor = Color.Lime;
                                                            }
                                                            else
                                                                if (ReadString(0xADAAF3, 5) == "radar")
                                                                {
                                                                    textBox22.Text = "Current Map : Outpost.";
                                                                    textBox22.BackColor = Color.Lime;
                                                                }
                                                                else
                                                                    if (ReadString(0xADAAF3, 11) == "interchange")
                                                                    {
                                                                        textBox22.Text = "Current Map : Interchange.";
                                                                        textBox22.BackColor = Color.Lime;
                                                                    }
                                                                    else
                                                                        if (ReadString(0xADAAF3, 11) == "underground")
                                                                        {
                                                                            textBox22.Text = "Current Map : Underground.";
                                                                            textBox22.BackColor = Color.Lime;
                                                                        }
                                                                        else
                                                                            if (ReadString(0xADAAF3, 11) == "bravo")
                                                                            {
                                                                                textBox22.Text = "Current Map : Mission.";
                                                                                textBox22.BackColor = Color.Lime;
                                                                            }
                                                                            else
                                                                                if (ReadString(0xADAAF3, 12) == "terminal_cls")
                                                                                {
                                                                                    textBox22.Text = "Current Map : Terminal.";
                                                                                    textBox22.BackColor = Color.Lime;
                                                                                }
                                                                                    else
                                                                                    {
                                                                                        textBox22.Text = "Map not supported / Not ingame.";
                                                                                        textBox22.BackColor = Color.Red;
                                                                                    }
            }
    Maps included : vanilla ones + Terminal. No DLC's, but they shouldnt be hard to add (i just dont have em)
    If your not a coder, dont ask how to use this . There are plenty of tuts out here to get you started in coding.
    Anyways, good luck Hope this helped some of you
    Last edited by Horror; 10-05-2012 at 10:46 AM.
     

    Minion+ : February 2014 - January 2015
    Counter Strike: Global Offensive Minion : November 2014 - January 2015
    Alliance of Valiant Arms Minion : August 2014 - January 2015
    Need For Speed World Minion : January 2014 - January 2015
    Rust Minion : January 2014 - January 2015
    Call of Duty Minion : January 2013 - January 2015
    Editor : December 2012 - April 2013
    Donator : March 2014 - Current
    Member : October 2010 - Current

    Previously known as "Isaakske".

  2. The Following 4 Users Say Thank You to Horror For This Useful Post:

    Geometrical (10-05-2012),KeyTools (10-30-2012),[MPGH]MarkHC (10-05-2012),stevonator (10-05-2012)

  3. #2
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,311
    My Mood
    Angelic
    LOL your "else if" indentation is weird :S

    Nice job anyways


    CoD Minion from 09/19/2012 to 01/10/2013

  4. #3
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,329
    My Mood
    Breezy
    What @-InSaNe- said, why are you indenting the else-if statements. They should be at the same level as the first one.

    Code:
    if(ReadString(0xADAAF3, 7) == "seatown")
    {
        // blah.
    }
    else if(ReadString(0xADAAF3, 4) == "dome")
    {
       // blah.
    }
    Also, a better way could be to store the map names in a dictionary and only read the length for the longest map name. It's shorter and saves time.

    Code:
    string mapName = ReadString(0xADAAF3, 12); // Longest map name is 12 characters.
    var mapDict = new Dictionary<string, string>();
    mapDict.Add("seatown", "Seatown");
    mapDict.Add("plaza2", "Plaza");
    // ... etc
    foreach(var kvp in mapDict)
    {
        // Only take the same amount of characters as the current map.
        if(mapName.Substring(0, kvp.Key.Length) == kvp.Key)
        {
            textBox22.Text = kvp.Value;
            textBox22.BackColor = Color.Lime;
            break;
        }
    }
    // Blah blah, not supported/in-game.
    Last edited by master131; 10-05-2012 at 11:15 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  5. The Following User Says Thank You to master131 For This Useful Post:

    KeyTools (10-30-2012)

Similar Threads

  1. map
    By Skurdz in forum General
    Replies: 4
    Last Post: 04-28-2006, 09:06 AM
  2. New Map "Lost Shrine"
    By fallen in forum Gunz General
    Replies: 2
    Last Post: 02-20-2006, 09:33 AM
  3. New Maps? Maybe?
    By ituneslove in forum WarRock - International Hacks
    Replies: 4
    Last Post: 02-19-2006, 02:21 PM
  4. Best Map?
    By SimpleAs in forum WarRock - International Hacks
    Replies: 13
    Last Post: 01-25-2006, 09:13 PM

Tags for this Thread