Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Changeinh head system (https://forums.graalonline.com/forums/showthread.php?t=22651)

Andor_RC14 01-31-2002 11:49 PM

Changeinh head system
 
How can i make it so theat when you press the left arrow key it eill show the head on the NPC and when u press right it will go back and when u press enter it will select that head
by
Mystical Dragon (Guild Admin on Andor)

Shard_IceFire 02-01-2002 08:31 PM

?
Well I'd guess this is what you want:
NPC Code:

if (playertouchsme) {
disabledefmovement;
timeout=0.05;
}
if (timeout) {
showimgpart head#v(this.head).gif,0,64,32,32;
if (keydown(5)) {
enabledefmovement;
}
if (keydown(1)) {
if (this.head<=0) {
this.head=1000;
}
if (this.head>=1) {
this.head=this.head-1;
}
}
if (keydown(3)) {
if (this.head>=1000) {
this.head=0;
}
if (this.head>=1) {
this.head=this.head+1;
}
}
timeout=0.05;
}


Dunno..maybe that'd work.

joseyisleet 02-01-2002 09:18 PM

Quote:

Originally posted by Kaimetsu
"variable++"
variable+=1;

Oh yeah baby!
Damn, I need sleep. ;\

TDO2000 02-02-2002 02:19 AM

Quote:

Originally posted by Kaimetsu


Well now that's just silly.

And to the creator of the thread: For the sake of sanity, take that ridiculous "Elite Scripter" stuff out of your sig.

He wrote Scriter, not scripter... could mean anything else :rolleyes:

TDK_RC6 02-02-2002 04:38 AM

Quote:

Originally posted by Kaimetsu


Well now that's just silly.

And to the creator of the thread: For the sake of sanity, take that ridiculous "Elite Scripter" stuff out of your sig.

i agree totally


All times are GMT +2. The time now is 07:33 PM.

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