yesimbestworld 0 Posted May 24, 2017 Share Posted May 24, 2017 Hello Guys, is it possible to create a script that simply put healing spheres under my current target instead of placing them by myself? I'll appreciate any help, thanks <3 Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted May 25, 2017 Author Share Posted May 25, 2017 up. no one got a clue how to make a script like this? Link to comment Share on other sites More sharing options...
Droidz 2733 Posted May 28, 2017 Share Posted May 28, 2017 Hello, use spell setting "AOE Spell" don't works? yesimbestworld 1 Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted May 28, 2017 Author Share Posted May 28, 2017 yea but is it possible to use it only when i press the "hotkey" or something, instead of spamming it. i would like to use it by myself instead of letting the bot spam it. is it possible? Link to comment Share on other sites More sharing options...
Droidz 2733 Posted May 29, 2017 Share Posted May 29, 2017 yesimbestworld 1 Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted May 29, 2017 Author Share Posted May 29, 2017 Thanks, ill try it out later Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted May 31, 2017 Author Share Posted May 31, 2017 Well i tried it out to create a Fightclass with this lua script but for some reason it wont work. probably im just to stupid for it :x Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted May 31, 2017 Author Share Posted May 31, 2017 mw.xml Link to comment Share on other sites More sharing options...
reapler 154 Posted June 1, 2017 Share Posted June 1, 2017 Hello you can try this one: mw.xml I tested it on 3.3.5a but it should also work for 5.4. I've written an own method to cast on position. The result: you see the green circle almost never. There can be more improvements to this code, like to read the input string & check the content. But for this purpose it's enough. How the code look like: if (wManager.Statistics.RunningTimeInSec() < 2) { robotManager.Helpful.Logging.Write("Register OnEventsLuaWithArgs"); wManager.Wow.Helpers.EventsLuaWithArgs.OnEventsLuaWithArgs += delegate (wManager.Wow.Enums.LuaEventsId id, System.Collections.Generic.List<string> args) { if (id == wManager.Wow.Enums.LuaEventsId.EXECUTE_CHAT_LINE) { string spellName = "Healing Sphere"; if (args[0].ToUpper().Equals(("/cast @player " + spellName).ToUpper())) { var t = System.Threading.Tasks.Task.Run(async delegate { System.Threading.Thread.Sleep(3); wManager.Wow.Helpers.ClickOnTerrain.Pulse(wManager.Wow.ObjectManager.ObjectManager.Me.Position); System.Threading.Thread.Sleep(2); wManager.Wow.Helpers.ClickOnTerrain.Pulse(wManager.Wow.ObjectManager.ObjectManager.Me.Position); }); wManager.Wow.Helpers.SpellManager.CastSpellByNameOn(spellName, ""); } if (args[0].ToUpper().Equals(("/cast @target " + spellName).ToUpper())) { if (wManager.Wow.ObjectManager.ObjectManager.Me.Target != 0) { var t = System.Threading.Tasks.Task.Run(async delegate { System.Threading.Thread.Sleep(3); wManager.Wow.Helpers.ClickOnTerrain.Pulse(wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.Position); System.Threading.Thread.Sleep(2); wManager.Wow.Helpers.ClickOnTerrain.Pulse(wManager.Wow.ObjectManager.ObjectManager.Me.TargetObject.Position); }); wManager.Wow.Helpers.SpellManager.CastSpellByNameOn(spellName, ""); } } if (args[0].ToUpper().Equals(("/cast @focus " + spellName).ToUpper())) { if (wManager.Wow.ObjectManager.ObjectManager.Me.FocusGuid != 0) { var t = System.Threading.Tasks.Task.Run(async delegate { System.Threading.Thread.Sleep(3); wManager.Wow.Helpers.ClickOnTerrain.Pulse(wManager.Wow.ObjectManager.ObjectManager.Me.FocusObj.Position); System.Threading.Thread.Sleep(2); wManager.Wow.Helpers.ClickOnTerrain.Pulse(wManager.Wow.ObjectManager.ObjectManager.Me.FocusObj.Position); }); wManager.Wow.Helpers.SpellManager.CastSpellByNameOn(spellName, ""); } } if (args[0].ToUpper().Equals(("/cast @party1 " + spellName).ToUpper())) { string toParse = wManager.Wow.Helpers.Lua.LuaDoString("guid = UnitGUID('party1')", "guid") .Replace("x", string.Empty); ulong guid = ulong.Parse(toParse, System.Globalization.NumberStyles.HexNumber, null); if (guid != 0) { Vector3 objPosition = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(guid).Position; var t = System.Threading.Tasks.Task.Run(async delegate { System.Threading.Thread.Sleep(3); wManager.Wow.Helpers.ClickOnTerrain.Pulse(objPosition); System.Threading.Thread.Sleep(2); wManager.Wow.Helpers.ClickOnTerrain.Pulse(objPosition); }); wManager.Wow.Helpers.SpellManager.CastSpellByNameOn(spellName, ""); } } if (args[0].ToUpper().Equals(("/cast @party2 " + spellName).ToUpper())) { string toParse = wManager.Wow.Helpers.Lua.LuaDoString("guid = UnitGUID('party2')", "guid") .Replace("x", string.Empty); ulong guid = ulong.Parse(toParse, System.Globalization.NumberStyles.HexNumber, null); if (guid != 0) { Vector3 objPosition = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(guid).Position; var t = System.Threading.Tasks.Task.Run(async delegate { System.Threading.Thread.Sleep(3); wManager.Wow.Helpers.ClickOnTerrain.Pulse(objPosition); System.Threading.Thread.Sleep(2); wManager.Wow.Helpers.ClickOnTerrain.Pulse(objPosition); }); wManager.Wow.Helpers.SpellManager.CastSpellByNameOn(spellName, ""); } } } }; System.Threading.Thread.Sleep(2000); } And in-game you just make a macro like this to use: You can also replace '@target' with '@player' '@focus' '@party1' '@party2' Edit: updated fightclass & @OP it did work after WRobot update if someone is interested yesimbestworld 1 Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted June 1, 2017 Author Share Posted June 1, 2017 Wow, thanks alot. Ill try it :) <3 Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted June 1, 2017 Author Share Posted June 1, 2017 So i tried it out and im getting this kind of error not sure if it helps you cause its in German Link to comment Share on other sites More sharing options...
reapler 154 Posted June 1, 2017 Share Posted June 1, 2017 @yesimbestworld So i trimmed the c# code everything worked fine on 3.3.5a dunno what's wrong on 5.4.8 but now it's more simpler to find the error if one will occure: mw.xml Try only '/cast Healing Sphere' in your macro(it will now only cast on target). If that method still fails, i'm not able to say what's not working exactly on your expansion. Otherwise you may disable addons, plugins or even backup & reset your settings in WRobot. yesimbestworld 1 Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted June 1, 2017 Author Share Posted June 1, 2017 Spoiler . trying it out, thanks Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted June 1, 2017 Author Share Posted June 1, 2017 well, no error now but it just dont work. i loaded the fight class but yea, nothing happens. i've also rewritten the macro. it just uses orbs like usual like nothing changed. sadly :/ but thanks for your help anyways ps: i reinstalled wrobot and resetted the settings Link to comment Share on other sites More sharing options...
reapler 154 Posted June 1, 2017 Share Posted June 1, 2017 If you see "01:14:47 - Cast Healing Sphere" in the log you can try this mw.xml and use '/aoecast Healing Sphere' as macro to cast on target. Otherwise i think the argument(s) of LuaEventsId.EXECUTE_CHAT_LINE may have a bug like on 3.3.5a the unfiltered combat log but that's just an assumption because this should work under normal circumstances. yesimbestworld 1 Link to comment Share on other sites More sharing options...
yesimbestworld 0 Posted June 2, 2017 Author Share Posted June 2, 2017 Nope there is nothing in the log...so you are probably right about it, i think there bug something :/ Still, im thankful that you tried to help me Link to comment Share on other sites More sharing options...
Xkirito 1 Posted August 2, 2020 Share Posted August 2, 2020 @reapler Hey, the code just work fine for me, i was wondered if there is a way to add more spell instead of just Healing Sphere, for example: Freezing Trap, Angelic Feather ? Link to comment Share on other sites More sharing options...
juls98 0 Posted April 25, 2021 Share Posted April 25, 2021 Does this currently still work? Link to comment 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