[Source] Player Stats 1.2

This is a discussion on [Source] Player Stats 1.2 within the Warcraft 3 Hacks, bots and tools board part of the Warcraft 3 forum category; Hi, this is another tool from me This tool name is Player Stats and it creates a multiboard for none ...

Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Sosha's Avatar
    Sosha is offline :)



    Array
    Join Date
    Oct 2011
    Location
    Iran
    Posts
    517
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    12
    Reputation
    1008

    [Source] Player Stats 1.2

    Hi, this is another tool from me

    This tool name is Player Stats and it creates a multiboard for none have multiboard maps like all Blizzard official maps.maybe later I will change tool name to Advanced Player Stats when I add more features on it.

    Screen Shot :






    Features :


    • Auto Value Update
    • Auto Player Detection
    • Very simple and easy to use
    • Open Source



    To Do :


    • Add Players Total Lumber
    • Add Players Total Gold (Added)
    • Add Players Total Heroes
    • Add Players Total Units (Added)
    • Add Players Built Struct Count
    • Add Players Trained Units


    How To Use :

    Press F5 in Game (if you try to use it in a map which already has a multiboard it cause game to crash)

    K = Total Killed Units
    U = Total Trained Units

    If someone made some nice changes to source code , give it to me to post in in here
    Attached Files
    Last edited by Sosha; 10-03-2012 at 01:41 PM. Reason: Updating to 1.2

  2. The Following 7 Users Say Thank You to Sosha For This Useful Post:


  3. #2
    mekanica's Avatar
    mekanica is offline Mentor
    Array
    Join Date
    Mar 2007
    Location
    France
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    11
    Reputation
    26
    Thank you, it's very usefull
    French baguette is here !

  4. #3
    Sosha's Avatar
    Sosha is offline :)



    Array
    Join Date
    Oct 2011
    Location
    Iran
    Posts
    517
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    12
    Reputation
    1008
    Your welcome
    Updated to 1.1

  5. #4
    Farid.Agl's Avatar
    Farid.Agl is offline Advanced Hacker

    Array
    Join Date
    Sep 2011
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    322
    Good job, you are changing my mind.
    Why a map cannot have more than one multiboard?

    PS: Take a look at wHack's source, you will find a way for getting total gold and lumber.

  6. #5
    Sosha's Avatar
    Sosha is offline :)



    Array
    Join Date
    Oct 2011
    Location
    Iran
    Posts
    517
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    12
    Reputation
    1008
    Quote Originally Posted by GoDLiKe.ON3 View Post
    Good job, you are changing my mind.
    Why a map cannot have more than one multiboard?
    Thank you , I really don't know why.I have just tested it in DotA with no success.The DotA multiboard replaces with mine.

    Quote Originally Posted by GoDLiKe.ON3 View Post
    PS: Take a look at wHack's source, you will find a way for getting total gold and lumber.
    Also I can get them by these functions :

    static int Player0Lumber = GetPlayerScore(Player(0),ConvertPlayerScore(16)); // Total Lumber
    static int Player0Gold = GetPlayerScore(Player(0),ConvertPlayerScore(15)); // Total Gold

    ----------

    PS: I will post the source code in some minutes

  7. #6
    Zephyrix is offline Wannabe Member
    Array
    Join Date
    Dec 2009
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    5
    That's some scary code man...
    You ever heard of loops?

    bool IsPlayer0Playing(){
    if (GetPlayerSlotState(Player(0)) == ConvertPlayerSlotState(1) )


    return true;
    else
    return false;
    }
    ...
    if ( IsPlayer0Playing() )
    why?

    just do this...
    if ( GetPlayerSlotState(Player(0)) == ConvertPlayerSlotState(1))
    and

    if ( IsPlayer0Playing() ) {
    MultiboardSetItemStyleBJ( hMultiboard, 1, 2, true, false );
    MultiboardSetItemStyleBJ( hMultiboard, 2, 2, true, false );
    MultiboardSetItemStyleBJ( hMultiboard, 3, 2, true, false );
    MultiboardSetItemStyleBJ( hMultiboard, 4, 2, true, false );
    // Set Player Names
    JassString sP0Name;
    GetJassString(GetPlayerName(0), &sP0Name);
    MultiboardSetItemValueBJ( hMultiboard, 1, 2, &sP0Name );
    // Now set width
    MultiboardSetItemWidthBJ( hMultiboard, 1, 2, 0.08 );
    MultiboardSetItemWidthBJ( hMultiboard, 2, 2, 0.02 );
    MultiboardSetItemWidthBJ( hMultiboard, 3, 2, 0.02 );
    MultiboardSetItemWidthBJ( hMultiboard, 4, 2, 0.06 );
    Reserved = ( Reserved + 1 );
    }


    if ( IsPlayer1Playing() )
    {
    MultiboardSetItemStyleBJ( hMultiboard, 1, Reserved, true, false );
    MultiboardSetItemStyleBJ( hMultiboard, 2, Reserved, true, false );
    MultiboardSetItemStyleBJ( hMultiboard, 3, Reserved, true, false );
    MultiboardSetItemStyleBJ( hMultiboard, 4, Reserved, true, false );
    // Set Player Names
    That entire function void AddPlayersToMultiboard() can be replaced with:

    int numRows = 2;

    for(int i = 0; i < 12; i++)
    {
    if ( GetPlayerSlotState(Player(i)) != ConvertPlayerSlotState(1))
    continue;

    MultiboardSetItemStyleBJ( hMultiboard, 1, numRows, true, false );
    MultiboardSetItemStyleBJ( hMultiboard, 2, numRows, true, false );
    MultiboardSetItemStyleBJ( hMultiboard, 3, numRows, true, false );
    MultiboardSetItemStyleBJ( hMultiboard, 4, numRows, true, false );
    // Set Player Names
    JassString playerName;
    GetJassString(GetPlayerName(i), &playerName);
    MultiboardSetItemValueBJ( hMultiboard, 1, numRows, &playerName);
    // Now set width
    MultiboardSetItemWidthBJ( hMultiboard, 1, numRows, 0.08 );
    MultiboardSetItemWidthBJ( hMultiboard, 2, numRows, 0.02 );
    MultiboardSetItemWidthBJ( hMultiboard, 3, numRows, 0.02 );
    MultiboardSetItemWidthBJ( hMultiboard, 4, numRows, 0.06 );
    numRows++;
    }
    You took over 300 lines of code to do that?
    Last edited by Zephyrix; 10-03-2012 at 10:36 AM.

  8. #7
    Sosha's Avatar
    Sosha is offline :)



    Array
    Join Date
    Oct 2011
    Location
    Iran
    Posts
    517
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    12
    Reputation
    1008


    It was late and I was tired and just wanted to post in here and go to bed.
    Thats why source looks confusing ...
    I will use loops in next update

  9. #8
    xtrem is offline Newbie
    Array
    Join Date
    Mar 2010
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    2
    this guy really sux like his maphack fee lol
    It's hard to admit its mistakes and he has always a reason. lol

    pathetic..

  10. The Following User Says Thank You to xtrem For This Useful Post:


  11. #9
    Sosha's Avatar
    Sosha is offline :)



    Array
    Join Date
    Oct 2011
    Location
    Iran
    Posts
    517
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    12
    Reputation
    1008
    Quote Originally Posted by xtrem View Post
    this guy really sux like his maphack fee lol
    It's hard to admit its mistakes and he has always a reason. lol

    pathetic..
    Ask your parents to teach you some respect and how to speak with others.

    Updated to 1.2
    - Source code optimized
    - Added Total Players Gold

  12. The Following 4 Users Say Thank You to Sosha For This Useful Post:


  13. #10
    Farid.Agl's Avatar
    Farid.Agl is offline Advanced Hacker

    Array
    Join Date
    Sep 2011
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    322
    Quote Originally Posted by xtrem View Post
    this guy really sux like his maphack fee lol
    It's hard to admit its mistakes and he has always a reason. lol

    pathetic..
    Respectfully, did you even coded a simple "Hello world" application?! I don't think so.
    Just stay out of the way and let experts do they bests. Simply, don't get involved in what you have no idea about, that's not funny.

  14. The Following 2 Users Say Thank You to Farid.Agl For This Useful Post:


Page 1 of 3 123 LastLast

Similar Threads

  1. Stats?!
    By ONLYST4R in forum Starcraft 2 Hacks, bots and tools
    Replies: 10
    Last Post: 09-02-2013, 06:38 AM
  2. [Request] Counter Strike Source Hack Source Code
    By luketh in forum Counter-Strike: Source Hacks
    Replies: 4
    Last Post: 04-10-2010, 02:24 AM
  3. Replies: 6
    Last Post: 06-04-2009, 07:12 PM
  4. Stats.XML Help!
    By Dark.Ember in forum WoW Private Servers
    Replies: 0
    Last Post: 02-26-2008, 04:13 PM
  5. Help (stats)
    By kori42 in forum Warcraft 3 forum
    Replies: 27
    Last Post: 03-01-2007, 03:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •