Jump to content

Recommended Posts

Good day. Got a couple questions about druid shapeshifting

1) Is there any inbuid function to cancel shapshift? Or should i use custom one like this?

Spoiler

internal void CancelShift()
	{
		if (ObjectManager.Me.HaveBuff("Cat Form"))
		{
			CatForm.Launch();
		}
		else if (ObjectManager.Me.HaveBuff("Bear Form"))
		{
			BearForm.Launch();
		}
		else if (ObjectManager.Me.HaveBuff("Dire Bear Form"))
		{
			DireBearForm.Launch();
		}
		else if (ObjectManager.Me.HaveBuff("Travel Form"))
		{
			TravelForm.Launch();
		}
		else if (ObjectManager.Me.HaveBuff("Aquatic Form"))
		{
			AquaticForm.Launch();
		}
	}

 

2) When bot needs to drink, and he is shifted, he does not cancel shapeshift by its own, he just standing and spamming water item. ANd recivind the message "Can't use items while shapeshifted" How do i fix that? Is there any state (like RegenerationInProgress) to check it and cancel my form in fightclass?

Thank you in advance.

Link to comment
https://wrobot.eu/forums/topic/6812-druid-shapeshift/
Share on other sites

3) Almost forgot, how do i cancel shapesift when i'm going to interact with vendor? There is the same problem, no auto cancel shift, maybe we need a condition like "SellingInProgress", when you are already at the nps, not when you are running to him.

Thank you for any advices.

Link to comment
https://wrobot.eu/forums/topic/6812-druid-shapeshift/#findComment-30866
Share on other sites

  • 1 month later...

Is this XML or C#?

C#:

public void Initialize() // When product started, initialize and launch Fightclass
{
    WatchForEvents();
}
public class Main: ICustomClass
{
    internal void WatchForEvents()
    {
        EventsLuaWithArgs.OnEventsLuaWithArgs += (LuaEventsId id, List<string> args) =>
        {
            if (id == LuaEventsId.PLAYER_REGEN_ENABLED && ObjectManager.Me.HealthPercent <= wManager.wManagerSetting.CurrentSetting.FoodPercent)
            {
                Lua.RunMacroText("/cancelaura [stance:1] Dire Bear Form; [stance:2] Aquatic Form; [stance:3] Cat Form; [stance:4] Travel Form; [stance:5] Moonkin Form");
            }
        };
    }
}

This has not been tested, and I am not sure if Vanilla WoW uses the same LuaEventID. This is just an idea.
 

Link to comment
https://wrobot.eu/forums/topic/6812-druid-shapeshift/#findComment-33174
Share on other sites

  • 6 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...