Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-02-2002, 05:50 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
Unhappy 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?
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #2  
Old 02-02-2002, 05:52 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
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;
}
}
__________________
Donate money for my trip to Germany

Adiarde Manager
Reply With Quote
  #3  
Old 02-02-2002, 05:53 PM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ...
Reply With Quote
  #4  
Old 02-02-2002, 09:04 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
For another thing, "D" is keydown(4), and keydowns cannot be serverside, just incase.
Reply With Quote
  #5  
Old 02-02-2002, 09:08 PM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
Re: Why dont this work?

//#CLIENTSIDE
if (timeout) {
if (keydown(4)&&strtofloat(#s(client.class))==2) {
setlevel2 onlinestartlocal2.nw,x,y; }
timeout=0.1;
}
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #6  
Old 02-02-2002, 09:22 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Because the timeout is never started?
Reply With Quote
Reply


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 03:29 AM.


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