Jump to content

How to heal on vanilla wow


79135

Recommended Posts

Hello!

How to heal on vanilla wow without target?

var healTarget = Party.GetParty().Where(o => o.HealthPercent < 50).FirstOrDefault();

SpellManager.CastSpellByNameOn("Rejuvenation", healTarget.Name);

CastSpellByNameOn on vanilla is missing, write please another method.

Link to comment
Share on other sites

public static void SetMouseoverUnit(WoWUnit unit)
{
  Memory.WowMemory.Memory.WriteUInt64((uint)Memory.WowMemory.Memory.MainModuleAddress + 0x74E2C8, unit.Guid);
}

public static void CastOn(WoWUnit unit, string spellName)
{
  SetMouseoverUnit(unit);
  Lua.LuaDoString($@"
                  TargetUnit(""mouseover"");
                  CastSpellByName(""{spellName}"");
				TargetLastTarget();
  ");
}

 

Edited by Matenia
Link to comment
Share on other sites

1 hour ago, Matenia said:

public static void SetMouseoverUnit(WoWUnit unit)
{
  Memory.WowMemory.Memory.WriteUInt64((uint)Memory.WowMemory.Memory.MainModuleAddress + 0x74E2C8, unit.Guid);
}

public static void CastOn(WoWUnit unit, string spellName)
{
  SetMouseoverUnit(unit);
  Lua.LuaDoString($@"
                  TargetUnit(""mouseover"");
                  CastSpellByName(""{spellName}"");
				TargetLastTarget();
  ");
}

 

will try the method, thx a lot!

Link to comment
Share on other sites

On 3/26/2019 at 1:57 PM, Matenia said:

public static void SetMouseoverUnit(WoWUnit unit)
{
  Memory.WowMemory.Memory.WriteUInt64((uint)Memory.WowMemory.Memory.MainModuleAddress + 0x74E2C8, unit.Guid);
}

public static void CastOn(WoWUnit unit, string spellName)
{
  SetMouseoverUnit(unit);
  Lua.LuaDoString($@"
                  TargetUnit(""mouseover"");
                  CastSpellByName(""{spellName}"");
				TargetLastTarget();
  ");
}

 

write please the code for FC editor

q.png

Link to comment
Share on other sites

No. You've been spoonfed for months now, you never contribute anything back. If you can't create a C# fightclass when I already give you everything you need, you actually need to start teaching yourself some stuff instead of relying on others to do all the work for you.

Link to comment
Share on other sites

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...