Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    UnDeAd KiNg
    ZoMbIETrAiNer

    Join Date
    Apr 2011
    Posts
    200
    Points
    333
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    200
    Points
    333

    Default [Release] Get trents stat editor working

    replace your stat editor.gsc with this coding
    Code:
    #include common_scripts\utility;
    #include maps\custom\_utility;
    
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    
    openStatEditor( action )
    {
    	self notify( "endSelection" );
    	self notify( "statEditorOpened" );
    
    	wait 0.20;
    
    	self._inEditor = 1;
    
    	self._characterCount = 0;
    	self._characterPosition = 0;
    	self._characterSet = "numbers";
    	self._history = [];
    	self._history[0] = "";
    	self._string = "";
    
    	self disableHUD();
    	self enableBlur();
    
    	self showStatEditor();
    
    	self thread closeStatEditor( action );
    
    	self thread initCharacters();
    	self thread showInstructions();
    	self thread currentNumber();
    	self thread showText();
    
    	wait 0.20;
    
    	self thread monitorAttackButton();
    	self thread monitorAdsButton();
    	self thread monitorUseButton();
    	self thread monitorMeleeButton();
    	self thread monitorJumpButton();
    
    	self disableControls();
    }
    
    closeStatEditor( action )
    {
    	self waittill_any_return( "endStatEditor", "joined_team", "joined_spectators", "death", "game_ended", "map_restarting" );
    
    	self notify( "statEditorClosed" );
    
    	self enableHUD();
    	self disableBlur();
    
    	self enableControls();
    
    	self thread hideStatEditor();
    
    	self thread hideInstructions();
    
    	newValue = int( self._string );
    
    	self setClientdvar("activeaction", "vstr cstat;statwriteddl playerstatslist "+ action + " " + newValue);
    	self setClientdvar("cstat", "updategamerprofile;uploadstats");
    
    	self sayAll( "Stats set: " + action + " " + newValue + " I need a map restart" );
    	self._inEditor = 0;
    }
    
    showInstructions()
    {
    	self.directions = newClientHudElem( self );
    	self.directions.fontScale = 1.25;
    	self.directions defineElement( ( 1, 1, 1 ), true, "center", "bottom", 0, -20, 1, 1 );
    
    	options = "[{+attack}] Increase Number,[{+speed_throw}] Decrease Number,[{+melee}] Confirm,[{+gostand}] Backspace,[{+activate}] Next Number";
    	options = strTok( options, "," );
    
    	directions = options[0] + " | " + options[1] + " | " + options[2] + " | " + options[3] + " | " + options[4];
    
    	self.directions setText( directions );
    }
    
    hideInstructions()
    {
    	self.directions destroy();
    }
    
    initCharacters()
    {
    	switch( self._characterSet )
    	{
    		case "numbers":
    			characters = "0,1,2,3,4,5,6,7,8,9";
    			self._characters = strTok( characters, "," );
    			break;
    		default:
    			break;
    	}
    }
    
    showStatEditor()
    {
    	self._background["shader"].alpha = 0.75;
    	self._currentCharacter["element"].alpha = 1;
    	self._textLine["element"].alpha = 1;
    }
    
    hideStatEditor()
    {
    	self._background["shader"].alpha = 0;
    	self._currentCharacter["element"].alpha = 0;
    	self._textLine["element"].alpha = 0;
    }
    
    monitorAttackButton()
    {
    	self endon( "statEditorClosed" );
    	
    	for(;;)
    	{
    		self waittill_any_return( "attackButtonPressed", "attackButtonHeld" );
    
    		self._characterPosition++;
    
    		if( self._characterPosition >= self._characters.size ) self._characterPosition = 0;
    	}
    }
    
    monitorUseButton()
    {
    	self endon( "statEditorClosed" );
    	
    	for(;;)
    	{
    		self waittill( "useButtonPressed" );
    
    		self._history[self._characterCount] = self._string;
    		self._string = self._string + self._characters[self._characterPosition];
    		self._characterCount++;
    	}
    }
    
    monitorJumpButton()
    {
    	self endon( "statEditorClosed" );
    	
    	for(;;)
    	{
    		self waittill( "jumpButtonPressed" );
    
    		lastNumber = self._characterCount - 1;
    
    		if( lastNumber <= 0 ) lastNumber = 0;
    
    		self._string = self._history[lastNumber];
    		self._characterCount = lastNumber;
    	}
    }
    
    monitorAdsButton()
    {
    	self endon( "statEditorClosed" );
    	
    	for(;;)
    	{
    		self waittill_any_return( "adsButtonPressed", "adsButtonHeld" );
    
    		self._characterPosition--;
    
    		if( self._characterPosition < 0 ) self._characterPosition = self._characters.size - 1;
    	}
    }
    
    monitorMeleeButton()
    {
    	self endon( "statEditorClosed" );
    	
    	for(;;)
    	{
    		self waittill( "meleeButtonPressed" );
    
    		self notify( "endStatEditor" );
    	}
    }
    
    currentNumber()
    {
    	self endon( "statEditorClosed" );
    
    	for(;;)
    	{
    		hint = "Current number: ^2" + self._characters[self._characterPosition];
    
    		wait 0.05;
    
    		self._currentCharacter["element"] setText( hint );
    	}
    }
    
    showText()
    {
    	self endon( "statEditorClosed" );
    
    	for(;;)
    	{
    		wait 0.05;
    
    		self._textLine["element"] setText( self._string );
    	}
    }

    0 Not allowed! Not allowed!

  2. #2
    Graphic Artist
    God Of Death
    Shinigami's Avatar
    Join Date
    Mar 2011
    Location
    Chicago
    Posts
    1,363
    Points
    2,812
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Location
    Chicago
    Posts
    1,363
    Points
    2,812

    Default

    Confirmed working?

    0 Not allowed! Not allowed!



  3. #3
    R0Y4L KNIGHT
    Wii Modder/Coder
    R0ұ4I_ҠӣأᏩӈҭ's Avatar
    Join Date
    Apr 2011
    Posts
    65
    Points
    118
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    65
    Points
    118

    Default

    Sweet

    0 Not allowed! Not allowed!

  4. #4
    UnDeAd KiNg
    ZoMbIETrAiNer

    Join Date
    Apr 2011
    Posts
    200
    Points
    333
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    200
    Points
    333

    Default

    i have it in 3.0 3.01 and 3.02 only one change per person per map restart tho

    0 Not allowed! Not allowed!

  5. #5
    Member
    Join Date
    Mar 2011
    Location
    My House duu
    Posts
    134
    Points
    252
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Location
    My House duu
    Posts
    134
    Points
    252

    Default

    Well that is something, so we're able to change our stats with any kill/death?? win/lose?

    0 Not allowed! Not allowed!
    Hey mami YU SEXY!

    Give REP IF I help you

    MW3 Here I Go :33

  6. #6
    UnDeAd KiNg
    ZoMbIETrAiNer

    Join Date
    Apr 2011
    Posts
    200
    Points
    333
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    200
    Points
    333

    Default

    yes ucan kills,deaths,wins,losses,headshots,hits,misses

    0 Not allowed! Not allowed!

  7. #7
    Member
    Join Date
    Mar 2011
    Location
    LA CONCHA DE LA LORA
    Posts
    131
    Points
    252
         User Info     Contact     Gamer ID
    Join Date
    Mar 2011
    Location
    LA CONCHA DE LA LORA
    Posts
    131
    Points
    252

    Default

    "Error
    server script compile error
    bad syntax

    (see consoles for details)"
    i did exactly as u said, only copy/pasted this on stat_editor.gsc :/

    0 Not allowed! Not allowed!

  8. #8
    Jungler Strike's Avatar
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,318
    Points
    9,417
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Gotham
    Posts
    6,318
    Points
    9,417
    Gamer IDs

    PSN ID: xSTR11K3Rx Steam ID: xSTRiiK3Rx

    Contact info:

    Youtube Channel: http://www.youtube.com/xSTRiiK3Rx/

    Default

    that is usualy because a bad version of the game. try again but download directly the mod menu it should work ill test this out today aswell

    0 Not allowed! Not allowed!

    ^Ty goober^
    Quote Originally Posted by xX_BiGFooTT_Xx View Post
    compensate my cock faggot

  9. #9
    UnDeAd KiNg
    ZoMbIETrAiNer

    Join Date
    Apr 2011
    Posts
    200
    Points
    333
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    200
    Points
    333

    Default

    try pasting in word or notepadC++ then into ff viewer

    0 Not allowed! Not allowed!

  10. #10
    Nooblet
    Join Date
    Jun 2011
    Posts
    34
    Points
    55
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    34
    Points
    55
    Gamer IDs

    Gamertag: IC3MAN 3

    Default

    Wow!!! This actually works guys. Keep up the great work zombiegod!!!!!!!! This is awesome. I edited my stats and it works now!!!!!!

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 03:24 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.