Daheadi1990 0 Posted September 14 Share Posted September 14 they show the cast but didnt do it. The client is English but i think they rename some skills if i make ingame a Marcro with "Cast Fishing" the will start fishing thats the LOG 14 Sep 2024 21H29.log.html Link to comment https://wrobot.eu/forums/topic/15530-change-skillname-rename-fishing-bot/ Share on other sites More sharing options...
Daheadi1990 0 Posted September 14 Author Share Posted September 14 The same problem with the most fighter Profiles the log say Cast anything but he didnt use the spells 14 Sep 2024 21H40.log.html Link to comment https://wrobot.eu/forums/topic/15530-change-skillname-rename-fishing-bot/#findComment-69594 Share on other sites More sharing options...
Daheadi1990 0 Posted September 15 Author Share Posted September 15 i pay 20€ if any can solve this problem ^^ Link to comment https://wrobot.eu/forums/topic/15530-change-skillname-rename-fishing-bot/#findComment-69597 Share on other sites More sharing options...
Droidz 2738 Posted September 18 Share Posted September 18 Hello, can you try this plugin : Link to comment https://wrobot.eu/forums/topic/15530-change-skillname-rename-fishing-bot/#findComment-69606 Share on other sites More sharing options...
Droidz 2738 Posted September 18 Share Posted September 18 In vanilla the previous plugin will not work. You can try : using System.Threading; using robotManager.Helpful; using wManager.Wow.Class; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; public class Main : wManager.Plugin.IPlugin { public void Initialize() { Logging.Write("CastSpellByName to /cast plugin loaded."); robotManager.Events.Events.OnCustomEvent += OnEventsOnOnCustomEvent; } private void OnEventsOnOnCustomEvent(string name, object[] args, System.ComponentModel.CancelEventArgs cancelable) { if (name.StartsWith("Spell.Launch") && args.Length >= 1 && args[0] is Spell) { Spell spellName = args[0] as Spell; if (spellName != null){ string luaUnit = null; bool stopMove = false; bool waitIsCast = false; if (args.Length >= 5 && args[4] is string && args[2] is bool && args[1] is bool) { stopMove = (bool)args[1]; waitIsCast = (bool)args[2]; luaUnit = args[4] as string; } cancelable.Cancel = true; if (stopMove) { if (ObjectManager.Me.GetMove) MovementManager.StopMoveTo(true, 1000); if (ObjectManager.Me.GetMove) Thread.Sleep(10); } if (!string.IsNullOrWhiteSpace(luaUnit) && luaUnit != "player" && luaUnit != "none") { Logging.WriteDebug("Casting " + spellName + " on " + luaUnit + " with macro /cast"); wManager.Wow.Helpers.Lua.RunMacroText("/cast [@" + luaUnit + "] " + spellName); } else { Logging.WriteDebug("Casting " + spellName + " with macro /cast"); wManager.Wow.Helpers.Lua.RunMacroText("/cast " + spellName); } if (waitIsCast) Thread.Sleep((int)(Usefuls.Latency * 0.9)); else Thread.Sleep(10); while (waitIsCast && ObjectManager.Me.IsCast) { Thread.Sleep(1); } } } } public void Dispose() { robotManager.Events.Events.OnCustomEvent -= OnEventsOnOnCustomEvent; } public void Settings() { } } Main.cs Link to comment https://wrobot.eu/forums/topic/15530-change-skillname-rename-fishing-bot/#findComment-69607 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