79135 4 Posted March 26, 2019 Share Posted March 26, 2019 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 More sharing options...
Matenia 628 Posted March 26, 2019 Share Posted March 26, 2019 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. Marsbar 1 Link to comment https://wrobot.eu/forums/topic/11001-how-to-heal-on-vanilla-wow/#findComment-52361 Share on other sites More sharing options...
Matenia 628 Posted March 26, 2019 Share Posted March 26, 2019 (edited) 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, 2019 by Matenia 79135 1 Link to comment https://wrobot.eu/forums/topic/11001-how-to-heal-on-vanilla-wow/#findComment-52362 Share on other sites More sharing options...
79135 4 Posted March 26, 2019 Author Share Posted March 26, 2019 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 https://wrobot.eu/forums/topic/11001-how-to-heal-on-vanilla-wow/#findComment-52365 Share on other sites More sharing options...
79135 4 Posted March 29, 2019 Author Share Posted March 29, 2019 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 Link to comment https://wrobot.eu/forums/topic/11001-how-to-heal-on-vanilla-wow/#findComment-52396 Share on other sites More sharing options...
Matenia 628 Posted March 29, 2019 Share Posted March 29, 2019 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. Marsbar 1 Link to comment https://wrobot.eu/forums/topic/11001-how-to-heal-on-vanilla-wow/#findComment-52397 Share on other sites More sharing options...
79135 4 Posted March 30, 2019 Author Share Posted March 30, 2019 droidz, can you help with it?) Link to comment https://wrobot.eu/forums/topic/11001-how-to-heal-on-vanilla-wow/#findComment-52406 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now