Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Gani Construction (https://forums.graalonline.com/forums/forumdisplay.php?f=50)
-   -   changing gani attribute in an npc (https://forums.graalonline.com/forums/showthread.php?t=62945)

prozac424242 12-23-2005 09:06 PM

changing gani attribute in an npc
 
with what should be a very simple command to set the gani attribute
of a horse to the desired horse image (in a showcharachter clientside class npc):

PHP Code:

setcharani horse,ride2.png

all that shows up is the oval shadow. It moves correctly and I hear the gani sound, but no horse image.
The ride2.png is on the server, I checked.

How do i get the horse image into the gani on the level?

Chicken_l33t 12-23-2005 09:54 PM

setcharani ride,ride2.png;
What you had was right, but wrong gani :X

prozac424242 12-23-2005 10:07 PM

um no...
i just want a horse with nobody on it.
the ride gani does not take the ride2.png
and now looks like theres a floating charachter on an invisible horse x-x
... how do i do this? should not be as tricky as it is ..

Yen 12-24-2005 03:41 AM

#5 is the image of the horse the player is riding.

prozac424242 12-24-2005 05:21 PM

Not being sure what #5 means, I tried the following ...
and none of these worked:

PHP Code:

setcharani ride,,,,,ride2.png

it's does not mean the fifth variable there ...

PHP Code:

setcharani ride,;  //tried with and without ride2.png after the coma here
setcharprop #P5,ride2.png; 

setting it as a player attribute which is a close to an answer as I could find on the wiki, does not work ...

what other method is there that I can find no documentation of to change this attribute number 5 that will actually work???

Yen 12-25-2005 03:49 AM

PHP Code:

setcharprop #5,ride2.png;
setcharani horse,; 

It works for me. #5 is an attribute, like your head image or sword image.

prozac424242 12-25-2005 07:23 AM

so the charprop is set before the gani, that makes sense.

I tried it, and it works, thank you! A working line of code is a great Christmas present!

Why then does every piece of documentation I can find on gani attributes say to put the letter P in front of it
such as if you search for gani on the wiki it will liskt about
#P1 - #P30 gani attributes

How did you know that its just #5???????????

How do people FIND this seemingly hidden knowledge about gscript
that is not documented in an easily accesible place,
and how do I get on the inner circle of the club of the explination of the code? So that I wont have to keep asking how to make extermely simple things like this to make work?

I am NOT refering to the wiki or the newfeatures files.
I am referring to gscript functions that are not officially documented for general release. Why the "secret club" feeling about the code? I am a paying customer here too...

Yen 12-25-2005 04:03 PM

...
Open the gani.
Try to edit one of the horse sprites.
Notice that the image says: HORSE
It's not a set image, so it must be using your horse attribute.

And we're just gifted. <3


All times are GMT +2. The time now is 08:21 PM.

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