UI.AddLabel("Doubletap one");
UI.AddHotkey( "Nasa" );
// for detecting keys
var isNasaActive = UI.IsHotkeyActive( "Misc", "Javascript", "Script items", "Nasa" );
// for detecting if doubletap is on
var isDTActive = UI.GetValue( "Rage", "GENERAL", "Exploits", "Doubletap" );
// Variables required to make the time detector work
var timedDT = false
var lastTimeDT = 0
var delayDT = .5
function main() {
isNasaActive = UI.IsHotkeyActive( "Misc", "Javascript", "Script items", "Nasa" );
isDTActive = UI.GetValue( "Rage", "GENERAL", "Exploits", "Doubletap" );
if (isNasaActive == 1) {
if (timedDT = false) {
lastTimeDT = Globals.Curtime();
timedDT = true;
}
if (Globals.Curtime() > lastTimeDT + delayDT) {
if (isDTActive == 1) {
UI.SetValue( "Rage", "GENERAL", "Exploits", "Doubletap", 0 );
timedDT = false;
} else if (isDTActive == 0) {
UI.SetValue( "Rage", "GENERAL", "Exploits", "Doubletap", 1 );
timedDT = false;
}
}
}
}
Cheat.RegisterCallback("CreateMove", "main");