Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Gani Event? Function? (https://forums.graalonline.com/forums/showthread.php?t=134263005)

scriptless 04-27-2011 10:46 PM

Gani Event? Function?
 
Hello, sorry for asking this question but searching the forum I have found nothing.

I am looking to see if there is any event called when a player's gani is changed. Preferably to check if a player is swimming. Or if I would need to rescript the movement and add custom events when changing ganis.

I am looking for an alternative to having to use a timeout loop to check if a player is swimming. :(

Thanks,
scriptless

Edit:
Not to familiar with script's in ganis. I could add a script to the gani itself maybe? On created() and trigger a function in a weapon script, right?

0PiX0 04-27-2011 11:33 PM

Quote:

Originally Posted by scriptless (Post 1645997)
I am looking to see if there is any event called when a player's gani is changed.

Perhaps try onPlayerChanges(player,id)?

scriptless 04-28-2011 01:39 AM

Very interesting event, however this only is affected when I change my nickname or appearance (outside of ganis) a.k.a. head, and colors.

Very nice to know tho and will definitely keep this in mind in future scripts.

Fulg0reSama 04-28-2011 01:43 AM

I know you can check for player.gani's in if statements, but I'm not sure if there's a specific event you can call for it.

scriptless 04-28-2011 02:19 AM

Quote:

Originally Posted by Fulg0reSama (Post 1646044)
I know you can check for player.gani's in if statements, but I'm not sure if there's a specific event you can call for it.

Yes I know, but to do what I need I would need a loop apparently.


All times are GMT +2. The time now is 07:39 AM.

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