Everything posted by duthibaut
-
Check IsAttack
wManager.Wow.ObjectManager.ObjectManager.GetUnitAttackPlayer().Count < = 0 working fine ? thanks !
- Check IsAttack
-
Check IsAttack
I try something like : public void SkipNodesIfFight() { robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += (engine, state, cancelable) => { if (state is wManager.Wow.Bot.States.IsAttacked) { _isFight = true; wManager.Wow.Helpers.Chat.SendChatMessageWhisper("IsFight","namespeudo"); Thread.Sleep(10000); Initialize(); } else { _isFight = false; wManager.Wow.Helpers.Chat.SendChatMessageWhisper("NotISFight","namespeudo"); Thread.Sleep(10000); } Thread.Sleep(10000); }; } But never say "IsFight" when a mob attack me ?
-
Check IsAttack
Hello guys, Some of u know how to check if the bot is attacked by a mob in C#? Thanks ?
-
C# Stopfollowing Path [Gathering]
Thx @Inaru and @Droidz I set some recusivity in my thread and it's working just fine as well ? public void Initialize() { _isLaunched = true; wManager.Wow.Helpers.Chat.SendChatMessage("Initialize", wManager.Wow.Enums.ChatTypeId.SAY); glaurierId = 181279; var glaurierObject = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)) ; GoToFarm(glaurierId); } public void GoToFarm(int glaurierId) { robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += (engine, state, cancelable) => { try { var distance = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).GetDistance; if (ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).GetDistance < 200) if (state is wManager.Wow.Bot.States.Farming && !state.NeedToRun) { glaurierId = 181279; wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).Position, ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).Entry); Thread.Sleep(5000); wManager.Wow.Helpers.Chat.SendChatMessage("In the new thread", wManager.Wow.Enums.ChatTypeId.SAY); GoToFarm(glaurierId); } } catch (Exception e) { Logging.WriteError("[GatheringHelp]: " + e); } };
-
C# Stopfollowing Path [Gathering]
I do like this : @Droidz public void Initialize() { _isLaunched = true; wManager.Wow.Helpers.Chat.SendChatMessage("Initialize", wManager.Wow.Enums.ChatTypeId.SAY); glaurierId = 181279; var glaurierObject = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)) ; GoToFarm(glaurierId); } public void GoToFarm(int glaurierId) { try { var distance = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).GetDistance; if (ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).GetDistance < 200) { robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += (engine, state, cancelable) => { if (state is wManager.Wow.Bot.States.Farming && !state.NeedToRun) { wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).Position, ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).Entry); Thread.Sleep(5000); wManager.Wow.Helpers.Chat.SendChatMessage("In the new thread", wManager.Wow.Enums.ChatTypeId.SAY); } }; } } catch (Exception e) { Logging.WriteError("[GatheringHelp]: " + e); } } He do as well but stay in "In the new thread" (say in chat). I try this now @Inaru !!
- C# Stopfollowing Path [Gathering]
-
C# Stopfollowing Path [Gathering]
Thanks for this reply, but ... Thread is an object ? this line don"t compile, i need to create a object thread and .abort after ? public void GoToFarm() { _isLaunched = true; wManager.Wow.Helpers.Chat.SendChatMessage("Initialize", wManager.Wow.Enums.ChatTypeId.SAY); glaurierId = 181279; var glaurierObject = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)) ; while (_isLaunched) { try { var distance = ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).GetDistance; if (ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).GetDistance < 200) { robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += (engine, state, cancelable) => { if (state is wManager.Wow.Bot.States.Farming && !state.NeedToRun) { wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).Position, ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).Entry); Thread.Sleep(5000); wManager.Wow.Helpers.Chat.SendChatMessage("In the new thread", wManager.Wow.Enums.ChatTypeId.SAY); } }; } //wManager.Wow.Helpers.Chat.SendChatMessage("Je suis sorti", wManager.Wow.Enums.ChatTypeId.SAY); } //wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithGameObject(ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).Position, ObjectManager.GetNearestWoWGameObject(ObjectManager.GetWoWGameObjectByEntry(glaurierId)).Entry); catch (Exception e) { Logging.WriteError("[GatheringHelp]: " + e); } } } public void Initialize() { Thread newThread = new Thread(new ThreadStart(GoToFarm)); }
- C# Stopfollowing Path [Gathering]
- C# Stopfollowing Path [Gathering]
- C# Stopfollowing Path [Gathering]
- C# Stopfollowing Path [Gathering]
- C# Stopfollowing Path [Gathering]
-
C# Stopfollowing Path [Gathering]
Hello @Droidz I have do some C# code in a pluggin for check distance farming and stop go to the node by his ground Vector3 but. But when i use my plugin i have a problem : The bot try to go the node AND to follow the path with gathering in the same time. You know how i can stop the following path, clean the node and restart the following path by the pluggin ? Thx ?
-
C# GetDistance (GameObject) && FarmAction
Ok i'm fucking idiot, I was trying to apply the Get: for the attribut on my method ... Better way to use it on the object ... Thanks for help !
-
C# GetDistance (GameObject) && FarmAction
Yes it's what I do for the other, but i don"t find the link for .entry ^^" Something like ? wManager.Wow.ObjectManager.WoWObject.Entry
-
C# GetDistance (GameObject) && FarmAction
Thank for this code, but when i want to put this code in pluggin, he don"t find : o.Entry or .Where, .position .GetDistance ... Do u know how to implement this method in pluggins ?
-
C# GetDistance (GameObject) && FarmAction
Someone know how to resolv this problem ? Line : ObjectManager.GetWoWGameObjectByEntry(neantineId).First().Entry) Error on compliation pluggin : My usings : using System; using System.ComponentModel; using System.IO; using robotManager; using robotManager.Helpful; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; using wManager.Events; using wManager.Plugin; using wManager.Wow; using wManager.Wow.Bot.States; using wManager.Wow.Bot.Tasks; using wManager.Wow.Enums; using wManager.Wow.Forms; using wManager.Wow.Forms.ProfileMaker;
-
C# GetDistance (GameObject) && FarmAction
Hello everyone. I want to make a GetDistance on my nearest object like in the tools : Nearest GameObject informations: Name: Vietérule (Entry: 2041 ) IsBlacklisted = False CreatedBy = 0 DisplayId = 677 FlagsInt = 0 Flags = 0 Position = 4333,47 ; 3002,03 ; 124,227 ; "None" Name = Vietérule GetDistance = 108,2044 --> I want this one ^^ For me I use : wManager.Wow.ObjectManager.ObjectManager.Me.IsGoodInteractDistance; But for an object, i don't know how it's working. Something like : var distance = wManager.Wow.ObjectManager.WoWObject.GetDistance(ObjectID); If someone know that ^^" (I'm beginner in C#) And the other question is : Which class can i use for use gathering ? I want By the distance active gathering the plant with this the nearest ID. If u have the answers, i will love u forever ! Salmo ^^
-
[PAID] – WImprove – improved functionality
Hi ! I just want to ask if u plugin repair the drood farm in 2.4.3 version of wow. The drood form go to the ground for gathring plants, with ur addons it's always the same ? Best regards
-
Plants don"t touch the ground
oh sry it's on 2.4.3 ^^
-
Plants don"t touch the ground
well ... u know a good client for the bot ? ?
-
Plants don"t touch the ground
what do u mean by models ? ^^ it's a client of 2017 if i remember. The version of wrobot is update all the time.
-
Gathering problem/suggestion
up one more time ...
-
Plants don"t touch the ground
i'm using the warmane client, or it's maybie with some specific parameters ? ...