Graal Pastebin
New PastePasted on January 20, 2012.
View the raw file
//#CLIENTSIDE function onCreated() { this.speed = 2; } function onPlayerChats() { if (player.chat.starts("/window")) { new GuiWindowCtrl("Staff_Window") { profile = GuiBlueWindowProfile; extent = { 300, 300 }; position = { 200, 100 }; destroyonhide = true; clientrelative = true; text = "Staff tools window"; player.chat = "Staff options open!"; new GuiButtonCtrl("Boots_Button") { profile = GuiBlueButtonProfile; extent = { 100, 30 }; text = "Staff Boots"; position = { 5, 40 }; } } } } function Boots_Button.onAction() { this.boots = !this.boots; player.chat = "Boots" SPC(this.boots ? "on!" : "off!"); if (this.boots) { setTimer(0.05); } } function onTimeout() { if (this.boots) { for (temp.key = 0; temp.key < 4; temp.key++) { if (keydown(temp.key)) { player.x += vecx(temp.key) * this.speed; player.y += vecy(temp.key) * this.speed; } } setTimer(0.05); } }