As requested in this thread:
http://forums.graalonline.com/forums...ad.php?t=72559
PHP Code:
//Custom staff boots system
//By: Gambet
//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 onKeyPressed(code,key)
{
if (key == "z")
{
if (this.staff_boots == "on")
{
this.staff_boots = this.speed = "";
player.chat = "Staff Boots -Off-";
setTimer(0);
} else
{
this.staff_boots = "on";
player.chat = "Staff Boots -On-";
setTimer(0.05);
}
}
if (code == 187)
{
if (this.speed+1 <= 10)
{
this.speed+=1;
player.chat = "Speed: " @ this.speed;
}
} else if (code == 189)
{
if (this.speed-1 >= 0)
{
this.speed-=1;
player.chat = "Speed: " @ this.speed;
}
}
}
function onTimeOut()
{
if (this.staff_boots == "on")
{
for (a=0; a<4; a++)
{
if (keydown(a))
{
switch(a)
{
case "0":
player.y-=this.speed;
break;
case "1":
player.x-=this.speed;
break;
case "2":
player.y+=this.speed;
break;
case "3":
player.x+=this.speed;
break;
}
}
}
}
setTimer(0.05);
}
Made it in like 5 minutes so yeah, do with it as you please. Everyone is open to use it, though there are plenty of boot scripts out there for those of you that don't know how to script -- just add this one to the list!
Though you shouldn't get into the habit of just taking peoples scripts without at least bothering to learn the basics of GScript. It sort of defeats the purpose.
Regardless, enjoy!
