NPC Code:
if (created) this.speed=1;
if (playertouchsme) toweapons Boots thingumajig;
if (weaponfired) this.active=(this.active+1)%2;
if (playerenters||timeout) {
if (this.active==1) {
for (this.k=0;this.k<4;this.k++) if (keydown(this.k)) {
playerx+=vecx(this.k)*this.speed;
playery+=vecy(this.k)*this.speed;
}
}
timeout=0.05;
}
if (playerchats&&startswith(setspeed,#c)) {
tokenize #c;
this.speed=strtofloat(#t(1));
}
Which is basically one of the shortest possible scripts for admin boots with settable speed.