Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   setani doesnt wrk (https://forums.graalonline.com/forums/showthread.php?t=63320)

hydralisk150 01-10-2006 01:43 AM

setani doesnt wrk
 
why is it that when i use the setani and setcharani commands they dont wrk

haunter 01-10-2006 02:33 AM

Maybe you're typing

stni

and

stchrni

hydralisk150 01-10-2006 02:36 AM

no i do it correctly it dont work like ill put

if (playertouchsme)
{setani sit.ani,;
}
and it dont wrk

haunter 01-10-2006 02:51 AM

First of all: The extention is .gani, not .ani... Second of all, don't use the extention in the script.

Tht shld wrk nw.

Kronan 01-10-2006 03:01 AM

Quote:

Originally Posted by haunter
First of all: The extention is .gani, not .ani... Second of all, don't use the extention in the script.

Tht shld wrk nw.

Owned. :)

Quote:

Originally Posted by hydralisk150
no i do it correctly it dont work like ill put

if (playertouchsme)
{setani sit.ani,;
}
and it dont wrk

If you want, you can do it in GS2 like so:

function onPlayerTouchsme() {
setani("sit",NULL);
}

hydralisk150 01-10-2006 03:13 AM

if (playertouchsme)
{setani sit.gani,;
}

or

if (playertouchsme)
{setani sit,;
}

?

Riot 01-10-2006 03:28 AM

Quote:

Originally Posted by hydralisk150
if (playertouchsme)
{setani sit.gani,;
}

or

if (playertouchsme)
{setani sit,;
}

?

Do not include the extension (.gani), so the second one.

xAndrewx 01-10-2006 10:46 AM

You'll probably also need a setshape, but please post this in the correct part next time.

ApothiX 01-10-2006 03:37 PM

Quote:

Originally Posted by xAndrewx
You'll probably also need a setshape, but please post this in the correct part next time.

o_o why would you need a setshape to set the gani?

xAndrewx 01-10-2006 05:41 PM

Quote:

Originally Posted by ApothiX
o_o why would you need a setshape to set the gani?

if (playertouchsme)

ApothiX 01-10-2006 05:59 PM

Quote:

Originally Posted by xAndrewx
if (playertouchsme)

You don't normally need a setshape for that (especially if it's clientside, which setani() usually is.)

Lance 01-11-2006 02:29 AM

Quote:

Originally Posted by xAndrewx
You'll probably also need a setshape, but please post this in the correct part next time.

Don't give bad advice. Setshape is only needed if a shape other than that defined by the NPC's set image is desired.

xAndrewx 01-11-2006 10:31 AM

ok, let me re-phrase it.
If you want to set a shape around the image so you don't need to grab the image area, you'd use the setshape command.

Luigi203 01-11-2006 10:21 PM

Quote:

Originally Posted by xAndrewx
ok, let me re-phrase it.
If you want to set a shape around the image so you don't need to grab the image area, you'd use the setshape command.


Which doesnt seem to be the case, and has nothing to do with the original problem?

xAndrewx 01-12-2006 10:39 AM

That doesn't mean I can't give him additional information.

Prozac 01-12-2006 05:42 PM

I have noticed, while this thread is on gani, that in gs2

setani("aniname");

does not work. there is no second parameter becasue in my case I do not need one.

Silent 01-12-2006 06:23 PM

Quote:

Originally Posted by Prozac
I have noticed, while this thread is on gani, that in gs2

setani("aniname");

does not work. there is no second parameter becasue in my case I do not need one.

Then tell Graal that you don't need one:

setani("aniname", NULL);


All times are GMT +2. The time now is 12:44 AM.

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