Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Move!!! (https://forums.graalonline.com/forums/showthread.php?t=15426)

aesquivel 10-25-2001 07:58 AM

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!;
}


Falcor 10-25-2001 08:01 AM

Wow... That is bad code that makes me sick @.o

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

aesquivel 10-25-2001 08:03 AM

O.o what?

Thak2 10-25-2001 08:27 AM

you spelt playerenters wrong.

aesquivel 10-25-2001 08:39 AM

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

Xaviar 10-25-2001 09:22 AM

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

aesquivel 10-25-2001 09:33 AM

well i am have problems cuz i neede help some wanna help plz

Shard_IceFire 10-25-2001 10:52 AM

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*

G_yoshi 10-25-2001 11:13 AM

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...

DoragonKoden_RC6 10-25-2001 02:52 PM

Quote:

Originally posted by G_yoshi


I would have to agree with Falados...

i think it deserves to be called pseudo-code :D

toad1413 10-25-2001 03:05 PM

Quote:

Originally posted by DoragonKoden_RC6

i think it deserves to be called pseudo-code :D

Someimes my code is a bit pseudoie. ;)

Shard_IceFire 10-25-2001 09:08 PM

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.

Xaviar 10-25-2001 10:13 PM

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!!


All times are GMT +2. The time now is 11:12 PM.

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