Thread: Stoping script
View Single Post
  #4  
Old 11-30-2004, 01:05 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Please use [CODE] tags, this way you can organize your posts better.

Quote:
Originally Posted by Salaisuus
if (keypressed) {
if (strequals(#p(1),1)) setani plah,; sleep 3;}
If it isnt a continous gani it will restart it when you press during sleep time.
If it is a short gani (movements/animations will be done fast), I suppose a sleep is fine, otherwise, a variable setting work too.

Quote:
I suppose I could do somethign like:

if (keypressed && this.keydown=0) {
if (strequals(#p(1),1)) {this.keydown=1; setani plah,; sleep 3;
this.keydown=0;};}
I was just wondering if there was an internal command or something.
This shows how people don't read the rules & guidelines of this section.
According to KSI-GS, rule five:

Use '==' when comparing two values for equality.
Use '=' when assigning a value to a variable.

and you didn't do that, so fix it.

Quote:
Speaking of keys how do I use keydown command?

if (keydown(A)) {
setstring clientr.plahplah,0;}

Thats how I understood its used, but that script doesnt do anything.
keydown does not work like that, it is keydown(0...10), if you read some documents that are in your Graal Folder (newfeatures) it explains it quite well. Your problem is based on lack of reading, dude!
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote