March 26, 20197 yr 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.
March 26, 20197 yr You can't. You HAVE TO target. Vanilla client doesn't allow casting on other units. There are PLENTY of topics all over the forums on how to do this.
March 26, 20197 yr 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 March 26, 20197 yr by Matenia
March 26, 20197 yr Author 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!
March 29, 20197 yr Author 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
March 29, 20197 yr 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