I got bored so I compacted Gambet's script
PHP Code:
//Custom staff boots system
//By: Gambet
//Compacted By: Hell Raven (bordem?)
//Controls:
// + and = key (left of backspace on American keyboard) - plus speed
// - and _ key (left of + and = key on American keyboard) - minus speed
// z key = toggle on/off
// Max Speed: 10
//#CLIENTSIDE
function onCreated() {
this.speed = 1; // reserve speed setting = better feature?
}
function onKeyPressed(code,key) {
if (key == "z") {
temp.statword = {"Off","On"};
this.status = abs(temp.status - 1);
player.chat = "Staff Boots -"@temp.statword[this.status]@"-";
setTimer(.05 * this.status);
}
if (code in {187,189}) {
temp.speed = this.speed + 188 - code;
if(temp.speed in |1,10|)
this.speed = temp.speed;
}
}
function onTimeOut() {
for (a=0; a<4; a++)
if (keydown(a))
player.(char(120 + (a+1) % 2)) += (-1 + int(a/2)*2) * this.speed;
setTimer(.05);
}