Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal V4 Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=143)
-   -   Req: Gani parameters for attributes (https://forums.graalonline.com/forums/showthread.php?t=63119)

Yen 01-01-2006 08:25 AM

Req: Gani parameters for attributes
 
Wee! I'm on a roll with the requests! >_<

I was wondering if parameters could be given to ganis set to attr[1-30]?
I had a light effect that spins around the player. You could customize the color and number of lights. At first, I set it to #P2. However, when the player logged off of Graal and logged back on, they would experience incredibly high lag. It was so bad that they weren't able to move. I had to use a showani instead.

I've only done this with GS1, v2, so please correct me if it's been changed in v4.
The script I used to set the attribute was something to the effect of:
PHP Code:

setplayerprop #P2, lightdance.gani, 1, 0, 0, 6; 

To sum it all up.. It shows fine when it's first set. When the player relogs, it still shows, but the player experiences lag that basically freezes Graal.

Rick 01-01-2006 09:15 AM

?

setplayerprop #P2,lightdance.gani,1,0,0,6;

should work fine, only it'll set it to "lightdance.gani,1,0,0,6".

Then in your script tokenize it?

Yen 01-01-2006 10:47 AM

No, the problem is that when people logged off and back on, any gani with parameters would basically freeze Graal unless it's removed.
I'm not even sure what caused it, because it couldn't be debugged, due to the freeze.

And it did use the 1, 0, 0, 6 as parameters; not the gani name.


Nevermind, ignore everything I posted. x-x' It seems it only happens with this one gani.
I have one gani that can input the colors of the lights.
I have another that's just black and only uses one parameter, for the number of lights.
The one with customized colors freezes people when they relog.
The one that's just black doesn't.


All times are GMT +2. The time now is 04:38 AM.

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