Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   keydown 0 (https://forums.graalonline.com/forums/showthread.php?t=14216)

btedji 10-09-2001 08:08 AM

keydown 0
 
why wont this work for me?

if(keydown(0)&&this.item>1){
this.item--;
}

KJS 10-09-2001 08:12 AM

Re: keydown 0
 
Quote:

Originally posted by btedji
why wont this work for me?

if(keydown(0)&&this.item>1){
this.item--;
}

is this.item>1?

and is it in a timer?

Shard_IceFire 10-09-2001 08:50 AM

Re: keydown 0
 
Quote:

Originally posted by btedji
why wont this work for me?

if(keydown(0)&&this.item>1){
this.item--;
}

Try this:
NPC Code:

if (playerenters) {
timeout=0.05;
}
if (timeout) {
if(keydown(0)&&this.item>1){
this.item--;
}
timeout=0.05;
}


btedji 10-09-2001 07:22 PM

i took it out of a timeout loop which i forgot to mention and i even put this.item as 10 but still no luck

mhermher 10-09-2001 07:23 PM

hi

BocoC 10-09-2001 09:01 PM

Show us the entire script! =]

Xaviar 10-09-2001 10:14 PM

Quote:

Originally posted by BocoC
Show us the entire script! =]
Betcha he spelt something wrong X_X

btedji 10-10-2001 12:51 AM

i have to change it before i show you because its for a server im with


All times are GMT +2. The time now is 02:52 PM.

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