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 10-25-2001, 07:58 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
Move!!!

i need some help with this script iw as qt it where if i dont maove for 30 sec it hurtsd me and puts a message about my head this is all i can get could some 1 help

NPC Code:
// NPC made by Adam
if (playerentrs) {
toweapons move;
}
if (playertouchsme) {
}
if (hasweapon(move)) {
if (keydown(0)) {
timeout=3;
if (keydown(1)) {
timeout=3;
if (keydown(2)) {
timeout=3;
if (keydown(3)) {
timeout=3;
}
}
}
}
}
if (timeout=3) {
setplayerprop #c,Why arent you moving!;
}

__________________
Reply With Quote
  #2  
Old 10-25-2001, 08:01 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Wow... That is bad code that makes me sick @.o

use a counter please and simplify your keydown method by using a for loop.
__________________

subliminal message: 1+1=3
Reply With Quote
  #3  
Old 10-25-2001, 08:03 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
O.o what?
__________________
Reply With Quote
  #4  
Old 10-25-2001, 08:27 AM
Thak2 Thak2 is offline
:]
Join Date: Mar 2001
Location: BC
Posts: 1,344
Thak2 is on a distinguished road
Send a message via AIM to Thak2
you spelt playerenters wrong.
Reply With Quote
  #5  
Old 10-25-2001, 08:39 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
ya i know i jus did that so that when i entered the lv it woulnt give it to me cuz it was piossing me off cuz i count get it ta werk
__________________
Reply With Quote
  #6  
Old 10-25-2001, 09:22 AM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by aesquivel
ya i know i jus did that so that when i entered the lv it woulnt give it to me cuz it was piossing me off cuz i count get it ta werk
t'won't work you realize...Not very well anyway..only moving upwards will reset the timeout
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote
  #7  
Old 10-25-2001, 09:33 AM
aesquivel aesquivel is offline
Registered User
Join Date: Sep 2001
Location: Whitewright
Posts: 346
aesquivel is on a distinguished road
Send a message via AIM to aesquivel
well i am have problems cuz i neede help some wanna help plz
__________________
Reply With Quote
  #8  
Old 10-25-2001, 10:52 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Quote:
Originally posted by aesquivel
well i am have problems cuz i neede help some wanna help plz
Too tired...sugar...wearing...off.......
*nods off*
__________________

-=Shard IceFire=-
Reply With Quote
  #9  
Old 10-25-2001, 11:13 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Falcor
Wow... That is bad code that makes me sick @.o

use a counter please and simplify your keydown method by using a for loop.
I would have to agree with Falados...
__________________
Reply With Quote
  #10  
Old 10-25-2001, 02:52 PM
DoragonKoden_RC6 DoragonKoden_RC6 is offline
Registered User
Join Date: Oct 2001
Posts: 221
DoragonKoden_RC6 is on a distinguished road
Quote:
Originally posted by G_yoshi


I would have to agree with Falados...
i think it deserves to be called pseudo-code
Reply With Quote
  #11  
Old 10-25-2001, 03:05 PM
toad1413 toad1413 is offline
toad@graal:~$ ./Oldbie
Join Date: May 2001
Location: Aust.
Posts: 3,819
toad1413 is on a distinguished road
Send a message via ICQ to toad1413
Quote:
Originally posted by DoragonKoden_RC6

i think it deserves to be called pseudo-code
Someimes my code is a bit pseudoie.
__________________
Creator of the original 'spam' icon. Worst mistake I ever made on these forums.
Reply With Quote
  #12  
Old 10-25-2001, 09:08 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Me too...If I do a big script and come back and look at it later, I forget how the hell I did it, and it looks like mumbo jumbo.
__________________

-=Shard IceFire=-
Reply With Quote
  #13  
Old 10-25-2001, 10:13 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by Shard_IceFire
Me too...If I do a big script and come back and look at it later, I forget how the hell I did it, and it looks like mumbo jumbo.
Sweet!! I'm not the only one!!
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
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 08:11 PM.


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