Graal Forums

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

JinZero 10-18-2001 08:13 AM

Ganis
 
How do i make a npc do a gani?

AlexH 10-18-2001 08:14 AM

setcharani ganiname,pngs it uses;

JinZero 10-18-2001 08:28 AM

How do i make it loop?

AlexH 10-18-2001 08:29 AM

well you could either just edit the gani in graalshop to loop or use a timeout

JinZero 10-18-2001 08:34 AM

Quote:

Originally posted by AlexH
well you could either just edit the gani in graalshop to loop or use a timeout
I cant figure it out :(

AlexH 10-18-2001 08:36 AM

well to do it timeout just do

if (timeout) {
setcharani ganiname,pngs it uses;
}
timeout=0.5

and do change the gani in graalshop open it and make loop true

JinZero 10-18-2001 08:43 AM

thanks :D

AlexH 10-18-2001 08:44 AM

no prob

Sep3kP2P 10-18-2001 10:45 PM

=/
 
actually its setani (or setcharani) and it goes setani ganiname,attribute1,attribute2,atttrib3,etc.; if you have no attributs setani ganiname,; if there is one attribute its setani ganiname,attrib1,; etc.

Sep3kP2P 10-18-2001 10:47 PM

=/
 
and thats not how timeouts work at all. they go like this...
NPC Code:

if(created){
timeout=.05;
}
if(timeout){
timeout=.05;
COMMANDS;
}


KJS 10-18-2001 10:58 PM

Re: =/
 
Quote:

Originally posted by Sep3kP2P
and thats not how timeouts work at all. they go like this...
NPC Code:

if(created){
timeout=.05;
}
if(timeout){
timeout=.05;
COMMANDS;
}


well accually if your doing it for a npc server you can only have timeout = .1;

and I always go like this

if(timeout){
commands;
timeout=0.1;
}

but either way it works

btedji 10-19-2001 03:29 AM

just remember you always have to have a way for the timeout to get started in the first place!!


All times are GMT +2. The time now is 05:49 PM.

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