Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Why dont this work? (https://forums.graalonline.com/forums/showthread.php?t=22840)

mhermher 02-02-2002 05:50 PM

Why dont this work?
 
if (timeout) {
if (keydown(6)) {
if (strtofloat(#s(client.class))==2) {
setlevel2 onlinestartlocal2.nw,x,y;
}
timeout=0.1;
}
}

its for an arrow im making... so when client.class is 2 and you press D it warps you... u know why it dont work?

mhermher 02-02-2002 05:52 PM

Re: Why dont this work?
 
i also tryed
if (timeout) {
if (keydown(6)) {
if (strtofloat(#v(client.class))==2) {
setlevel2 onlinestartlocal2.nw,x,y;
}
timeout=0.1;
}
}

nyghtGT 02-02-2002 05:53 PM

Re: Why dont this work?
 
Quote:

Originally posted by mhermher

if (timeout) {
if (keydown(6)) {
if (strtofloat(#s(client.class))==2) {
setlevel2 onlinestartlocal2.nw,x,y;
}
timeout=0.1;
}
}

its for an arrow im making... so when client.class is 2 and you press D it warps you... u know why it dont work?

For one thing its only doing the timeout when the 6th key
is down ...

Loriel 02-02-2002 09:04 PM

For another thing, "D" is keydown(4), and keydowns cannot be serverside, just incase.

TDK_RC6 02-02-2002 09:08 PM

Re: Why dont this work?
 
//#CLIENTSIDE
if (timeout) {
if (keydown(4)&&strtofloat(#s(client.class))==2) {
setlevel2 onlinestartlocal2.nw,x,y; }
timeout=0.1;
}

Loriel 02-02-2002 09:22 PM

Because the timeout is never started?


All times are GMT +2. The time now is 06:09 AM.

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