Jump to content

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
https://wrobot.eu/forums/topic/11001-how-to-heal-on-vanilla-wow/
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
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!

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

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.

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