GPC Library

ANTI AFK Script - [Universal]

Mod is [OFF] by default. [LED OFF]
Mod is [ON]. [LED STROBE]

Toggle Mod via [DPAD DOWN]

Never get kicked again out of a Online Session!
Version 1
Author x22DOT
Publish Date 2017-05-16 21:37:33
Update Date 2017-05-16 21:37:33
Downloads 499
RATE


4

2

Release Notes: Version 1.00
Code:Select all
	int toggle;	
	
	define LED_OFF = 0;
	define Blue    = 1;
	define Red     = 2;
	define Green   = 3;
	define Pink    = 4;
	define Skyblue = 5;
	define Yellow  = 6;
	define White   = 7;

	const byte DEVICE_LED_COLORS[][] = {	
	  {0,0,0,0},   
	  {2,0,0,0},
	  {0,2,0,0},
	  {0,0,2,0},
	  {0,0,0,2},
	  {2,0,2,0},
	  {0,2,2,0},
	  {2,2,2,2} 
	}

	main {
	
		if(event_press(XB1_DOWN)) {
			toggle = !toggle;
		}
		
		if(toggle) {
			combo_run(AFK_C);
			combo_run(LEDSTROBE);
		}
		
		if(!toggle) {
			colorLED(LED_OFF);
		}
	
	}
	
	combo LEDSTROBE {
		colorLED(Blue);
		wait(500);
		colorLED(Red);
		wait(500);
		colorLED(Green);
		wait(500);		
		colorLED(Pink);
		wait(500);		
		colorLED(Skyblue);
		wait(500);		
		colorLED(Yellow);
		wait(500);		
		colorLED(White);	
	}
	
	combo AFK_C {
		set_val(XB1_LY, -100);
		set_val(XB1_LX, +100);
		wait(1000);
		wait(25);
		wait(10);
		set_val(XB1_A, 100);
		set_val(XB1_RX, 100);
		wait(1000);
		wait(10);
		set_val(XB1_A, 100);
		set_val(XB1_RX, -100);
		wait(1000);
		wait(10);
		set_val(XB1_LY, +100);
		set_val(XB1_LX, -100);
		wait(1000);
		wait(25);
		wait(10);
		wait(2500);
	}
	
	function colorLED(Color_Name) {
		set_led(LED_1,DEVICE_LED_COLORS [Color_Name][0]);
		set_led(LED_2,DEVICE_LED_COLORS [Color_Name][1]);
		set_led(LED_3,DEVICE_LED_COLORS [Color_Name][2]);
		set_led(LED_4,DEVICE_LED_COLORS [Color_Name][3]);
	}
  • Rating

    10 / 10 here !

    If you own a ps3 and prefer an xbox controller, or even use a keyboard and mouse, this is a must to remap your keyboard to a controller. Go buy it now you won't be disappointed !

  • Rating

    Amazing device

    If you're like me and love your PS4 controller but want to use an Xbox One GET THIS you won't be sorry.

  • Rating

    Worth every penny

    The controller feels and performs as it does on the xbox right there on my ps3, awesome job guys, and worth every penny !!!

  • Rating

    Amazing Macro combos

    tested Super Street Fighter IV Arcade Edition. I was able to perform normal & FADC combos with some characters like Ryu and Ken with a single click. Amazing.

  • Rating

    As good as a XIM

    If you are a pc gamer, that needs a pc solution for console, get yourself a ControllerMAX you will not regret it.

  • Rating

    KB & Mouse RULES!

    All I can say playing 10 minutes with ControllerMAX properly configured it felt better then PC....YES I said it even better then PC, it's that smooth.

  • Rating

    Six-Axis 360!

    WOW! I can finally get that six-axis awesomeness on my Xbox 360. The best money I ever spent.

  • Rating

    Beats all rapidfire mods

    I've tried the Intensafire, Godfather even the new Wolf controller. The ControllerMAX beats them hands down and no wires or soldering too. 5 Stars!

  • Rating

    Just perfect!

    I can't believe how much this can do for the price tag - it blew me away. Best controller upgrade ever.

  • Rating

    Hugh Thanks!

    Without your help I couldn't be playing Xbox, thanks guys.

  • Rating

    Wow!

    I have to say after reading the forums for Destiny Mouse and Keyboard setup I was flying into getting it set up in 20 minutes. It works outstanding! I'm more then satisfied and its worth every penny!

  • Rating

    Achievement Unlocked!

    Idle boosting Complete 150 Multiplayer games, James Cameron's Avatar. My friend said it would be hard, I laughed then linked him.

  • Rating

    A++!

    Now this is a company you can count on and trust...keep up the great work guys!

  • Rating

    What Disability?

    I would like to thank you for making the CronusMax. I have this problem hitting L3 and R3, and today that problem was fixed. I love the remap feature on the Cronus max. You made my life easier.

  • Rating

    Awesome stuff guys!

    Playing Forza 5 with my original MS 360 wireless wheel makes the XB1 complete for me, thanks to the CronusMax. Thumbs up!