Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Fetching gani parameters (https://forums.graalonline.com/forums/showthread.php?t=66657)

DrakilorP2P 06-13-2006 10:21 AM

Fetching gani parameters
 
I am trying to read the parameters sent through setani from withing the gani's script.
PHP Code:

setani("ganiname"param1param2);

// Within the gani:
SCRIPT
function onCreated() {

  
// These give no results
  
echo( "[" params[0] @ "][" params[1] @ "][" attr[0] @ "][" attr[1] @ "]");
}
SCRIPTEND 

Or is there possibly another another way to send variables to the gani?

contiga 06-13-2006 03:15 PM

Drakilor/Magic System right? I'll see what I can do for you :P I'm having the same problem tho..

Edit: Fixed it, no params were needed to be sent.. you could just load the flag "ganiparams" from the script into the gani without setting parameters in the setani part. ^^

Rick 06-13-2006 06:28 PM

I thought it was aniparams or aniparms ?

xXziroXx 06-13-2006 08:02 PM

Quote:

Originally Posted by contiga
Drakilor/Magic System right? I'll see what I can do for you :P I'm having the same problem tho..

Edit: Fixed it, no params were needed to be sent.. you could just load the flag "ganiparams" from the script into the gani without setting parameters in the setani part. ^^


Problem with that is, that the "ganiparams" only work for the client that the gani get set on. So, for all other players, the gani will show wrong.

contiga 06-15-2006 02:51 PM

Hmm.. on Esteria it seems to work proper tho.. but since no one like AphotiX, nor Yen or Stefan is responding.. I think they also don't know.. Which means he can't go on making his 'uber' system. >_<

Skyld 06-15-2006 04:43 PM

On Era I am using the params variable in order to use gani parameters, which works fine:
PHP Code:

showtext(temp.ix 11.6, (2) + temp.0.05"""bc"params[0]); 

PHP Code:

setplayerprop #P(11 + i),era_floattext.gani,#p(1); 

I am also using it in a testing script of mine:
PHP Code:

setani("era_skyldmpcharge"0101); 

PHP Code:

changeimgcolors(200params[0], params[1], params[2], (temp.10) - 0.1); 



All times are GMT +2. The time now is 09:31 PM.

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