What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Need ideas to get a toon out of the water!

iggi66

New Member
Joined
Jan 15, 2010
Messages
389
Reaction score
24
[DEV] Need ideas to get a toon out of the water!

Hi mates,

I'm looking for a way to get toons out of water which works for let's say 99%!

Currently I'm doing a raycast to find a location outside water (with help of HitTestGroundAndStructures) and use Navigator.MoveTo(result) without mounting.

The thing is, sometimes or prety often (depending on the area), it fails to generate a path and navigate there! For example if you are on coasts with steep cliffs.

Is there any better way to get a meshed location so Navigator.MoveTo(result) will move without failing to generate a path.

Thanks in advance, iggi.
 
Last edited:
Do u want to stop drowning or get fully put of the water? There is an anti drown plugin but it never works for me. You can put in the cC something like if (me.breathing){ jump }

As for getting fully out of the water which I think your trying to do I'm not sure how to find out where the water ends to make a point there and run there

Just trying to help
 
Well, I already tried different things but most of them failed to get the toon up to water surface properly (so it can mount up flying mounts!). Even if I play by hand it takes me more then one try jumping around to be able use flying mount.. And even if I would get it working, druids will still not be able to use flight forms while swimming.

So I decided to change my code and move out of the water first and ONLY mount / cast flight form when not swimming. But the way I'm doing it seems to fail sometimes, because navigation can't generate pathes to the location I get returned.
 
O well if that is what your doing you need to make it in the CC to continuously jump while breathing. So do something like this

public bool swim()
{
If (Me.Breathing)
{
wowmovement.jump;
Return true;
}
Return false;
}

and put swim() under like the buffs section or someplace like that but it needs to be at the top of it so it will keep jumping until it isn't breathing anymore and you can fly from there

Also check the code cuz the jump isn't right and it isn't perfect lol
 
Thanks but moving to water surface is not what I want. I look for a 99% working way to get the toon out of water so it is not swimming any more.
 
Thanks but moving to water suface is not what I want. I look for a 99% working way to get the toon out of water so it is not swimming any more.

Ok. Um where you are, are there any mobs that are near you that don't go into the water? That like stay right on the edge of the water like the crocs in uldum? Because if there are you can make a point at them and then move to them
 
It's not for a CC but for my botbase "poolfishingbuddy". So there are some situations where the toon slips or gets knocked into water and I need to move it out of the water again.

Most of the time the way I described in my first post works. But there are some areas (maybe not meshed at all) where the navigation fails to move to locations I get returned by my raycasts.

I need to find something like a way to get the closest meshed area where the toon will not swim when arrived and navigation of HB will not fail to move to.
 
Back
Top