Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-28-2004, 07:54 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Unhappy NPC Troubles :(

Hello all

I am trying to make a pair of staff boots where i can set the speed but when i try to test them it turns them on but my speed does not increase nor can i walk on and through obstacles. Check it out and help pls
Quote:
NPC Scriptundefined

// NPC made by Jerret
//#CLIENTSIDE

if (weaponfired) {
if (this.inuse=0) {
this.inuse=1;
timeout = 0.05;
setplayerprop #c,Boots On
} else {
this.inuse=0;
timeout = 0;
setplayerprop #c,Boots Off
}
}
if (this.inuse==1 && timeout) {
if (keydown(0)) playery -= strtofloat(this.bootspeed);
if (keydown(1)) playerx -= strtofloat(this.bootspeed);
if (keydown(2)) playery += strtofloat(this.bootspeed);
if (keydown(3)) playerx += strtofloat(this.bootspeed);
timeout = 0.05
}
if (timeout) {timeout = 0.05}
if (playerchats) {
tokenize #c;
if (tokenscount==3){
if (strequals(#t(0),/boots)&&strequals(#t(1),speed)) {
this.bootspeed = strtofloat(#t(2))
}
}
}
if (playerchats) {
if (strequals(#c,/boots on)) {
this.inuse==1;
timeout=.05;
}
if (strequals(#c,/boots off)) {
this.inuse==0;
}}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.