View Single Post
  #1  
Old 06-29-2001, 01:44 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
Ok. I can't stand this...

Help me. Ever since Graal 2.04, I have been having trouble with npcserver. I can't even get a frickin keydown event to work!

NPC Code:

if (playertouchsme) {
setstring this.owner,#a;
message Touched;
timeout=0.1;
}
if (timeout) {
with (getplayer(#s(this.owner))) {
if (keydown(6)) {
this.continue=true;
message Works;
}
}
sleep 2;
if (this.continue==true) {
message Yay!;
} else { timeout=0.1; }
}



I can touch it, because Touched works, but it won't work when the key A is pressed! ARG! Anyone care to help?
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd