Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Water Splash (https://forums.graalonline.com/forums/showthread.php?t=134262167)

AlexanderK 02-20-2011 01:07 PM

Water Splash
 
I've been working on my custom movement system and the swimming/drowning part is almost finished.
One thing that makes it just not feel right is that it misses the classic Graal water splashes. How can I access them?
I've found something here, but I'm not sure how that could help me.
http://wiki.graal.net/index.php/Crea...ent/PlayerData

Crow 02-20-2011 01:51 PM

What you found looks like some Graal 3D leftovers. For the default water splash stuff you can use putleaps(type, x, y), the "leap type" for water is 5.

AlexanderK 02-20-2011 01:55 PM

Quote:

Originally Posted by Crow (Post 1632083)
What you found looks like some Graal 3D leftovers. For the default water splash stuff you can use putleaps(type, x, y), the "leap type" for water is 5.

This will only show Clientside, right?

Crow 02-20-2011 02:00 PM

Quote:

Originally Posted by AlexanderK (Post 1632084)
This will only show Clientside, right?

Probably, yea. If you want all players to see it, I suggest creating a gani with the water splash in it, then doing some magic so all players see it. There are several ways, pick one.

AlexanderK 02-20-2011 04:56 PM

Thank you Crow!
I guess displaying it clientside is enough. I don't want more timeout-loops going over players... My server is already kind of laggy in v6. It runs smoothly in v5 though. :/

fowlplay4 02-20-2011 05:56 PM

Quote:

Originally Posted by AlexanderK (Post 1632098)
Thank you Crow!
I guess displaying it clientside is enough. I don't want more timeout-loops going over players... My server is already kind of laggy in v6. It runs smoothly in v5 though. :/

You're doing something very wrong then.

To display "water splashing" globally, you just make a gani (as Crow suggested) and use a global (1-199) index with showani when they enter the water and hide it like a second later.


All times are GMT +2. The time now is 01:15 AM.

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