![]() |
Staff Boots
OK I'm wanting the boots to activate when I say boots on, then it asks what speed, but it's not working here this is what I have so far...
NPC Code:OR this// Boots by Secret Agent Smiley :-) NPC Code://Boots |
Shouldn't it be #c,(index)?
|
if (playerchats && strequals(#c,Boots on)) {
timeout=.05; } if (playerchats && strequals(#c,boots off)) { timeout=0; } if (playerchats && startswith(#c,bootspeed)) { tokenize #c; client.bootspeed=#t(1); } if (timeout) { if (keydown(0)) {playerdir=0; playery-=(client.bootspeed/4); } if (keydown(1)) {playerdir=1; playerx-=(client.bootspeed/4); } if (keydown(2)) {playerdir=2; playery+=(client.bootspeed/4); } if (keydown(3)) {playerdir=3; playerx+=(client.bootspeed/4); } timeout=.05; } Now. Say Boots On for the boots to be on. Boots Off to turn them off. To set speed, say bootspeed <speed>. For example: bootspeed 2 How about that? |
Hmm.
NPC Code:if (created) this.speed=1; Which is basically one of the shortest possible scripts for admin boots with settable speed. |
All times are GMT +2. The time now is 12:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.