Jump to content

Matenia

Elite user
  • Posts

    2230
  • Joined

  • Last visited

Everything posted by Matenia

  1. Are you using my plugin? I had someone report this issue to me, so I updated the plugin to not sell (this was only ever active for vanilla - not TBC). Maybe in the profile you are using, it activates selling everything? It will overwrite your wRobot settings. Go check it out (either the XML file or the first step in your quester).
  2. Hi, welcome to wRobot. Here, you buy your food in the store and have to cook it yourself. Unlike HB, we believe in a healthy diet. tl;dr there aren't any, you can make your own with the fightclass editor - but this isn't PQR, it's a bot.
  3. Hey Droidz, I have a problem with polymorphed targets getting wrongfully blacklisted. When I fight my main target, then polymorph a second target and the first one dies: - it never attacks polymorph - when polymorph breaks, it recognizes "IsAttacked" state but never attacks back (my fightclass works if (Fight.InFight || Conditions.IsAttackedAndCannotIgnore) && ObjectManager.Target.IsAttackable)) I use custom code to attack the polied target and start a fight, but it seems to not work: if(!Fight.InFight && !Me.InCombat && !_IsMoving) { WoWUnit polyTarget = ObjectManager.GetObjectWoWUnit().Where(u => u.IsValid && u.HaveDebuff("Polymorph") && u.GetDistance < 15 && u.IsAttackable).FirstOrDefault(); if (polyTarget != null) { Logging.WriteDebug("Found polied target " + polyTarget.Name + " attacking!"); if (wManagerSetting.IsBlackListed(polyTarget.Guid)) { wManagerSetting.RemoveBlackList(polyTarget.Guid); } if (CombatUtil.CanWand()) { CombatUtil.CastSpell(Shoot, polyTarget); } else { CombatUtil.CastSpell(Frostbolt, polyTarget); } Fight.StartFight(polyTarget.Guid); } } Same problem on vanilla and TBC - any ideas?
  4. Change it to CastSpellByName("Teleport: Moonglade") instead of using Hearthstone item.
  5. Does it say what it's eating? You can upload your log (or turn on debug logging and see if that gives any hint). I don't have this problem on any char in vanilla. Maybe try incrementing your latency settings.
  6. One profile, wRobot can't pick quest rewards in a smart way.
  7. Are you using iEquip? It will overwrite shit sometimes. Best to delete the list of known food/drink inside it If you use HumanMasterPlugin, make sure to disable auto buying of food/drink.
  8. Second the "avoid all combat with player pets". Would be a great, simple feature, @Droidz. iirc player pets have a certain flag
  9. https://wrobot.eu/clients/purchases/ Ist leer?
  10. Hey guys, I recently ported some of my fightclass framework to vanilla. I'm happy with where it currently is but will probably push updates. You can find a working version (and any future update) in my repository on GitHub. This framework is intended for all the developers on the wRobot Discord channel who keep working on the same issues over and over again. Hopefully this will encourage people to make pull requests and contribute to an overall community effort. Also, hopefully it will help with some of the more regular Discord users not having to answer a lot of questions over and over. Enjoy: https://github.com/Schaka/VanillaFightclassFramework
  11. Restart your bot entirely, it's clearly bugged from you spamming start/stop too fast. "[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Idle already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.MovementLoop already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Grinding already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Trainers already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.Talents already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterDiscoverState already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.ToTown already launched, ignore it.[D] 15:59:29.555 - [FSM] State wManager.Wow.Bot.States.FlightMasterTakeTaxiState already launched, ignore it"
  12. I don't modify this list on an extra thread anymore - but maybe applying a lock to it or choosing a CopyOnWrite implementation of List might be a good idea anyway.
  13. Matenia

    AvoidIt

    Do you mind sharing the source for this? There are some problems on earlier expansions that it might be worth fixing - mostly in regards to your settings.
  14. Did you use the correct steps posted below? You need the extra RunCode. I made this work over a year ago on a MoP private server. You might have to play around with it a bit. I can't test this, don't have a current account. And nobody has 1-110 for sale, it doesn't exist.
  15. <EasyQuest> <Name>Saving Foreman Oslow</Name> <QuestId> <int>26520</int> </QuestId> <QuestType>UseItemOn</QuestType> <QuestClass xsi:type="UseItemOnEasyQuestClass"> <HotSpots> <Vector3 X="-9273.887" Y="-2288.36" Z="68.18211" /> </HotSpots> <EntryIdTarget> <int>43197</int> </EntryIdTarget> <ItemId>58895</ItemId> <Range>4.5</Range> </QuestClass> <ObjectiveCount1>1</ObjectiveCount1> <ObjectiveCount2>0</ObjectiveCount2> <ObjectiveCount3>0</ObjectiveCount3> <ObjectiveCount4>0</ObjectiveCount4> <ObjectiveCount5>0</ObjectiveCount5> <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1> <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2> <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3> <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4> <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5> <CanCondition /> <IsCompleteCondition /> <RepeatableQuest>false</RepeatableQuest> <NotRequiredInQuestLog>false</NotRequiredInQuestLog> <PickUpQuestOnItem>false</PickUpQuestOnItem> <PickUpQuestOnItemID>0</PickUpQuestOnItemID> <Comment /> <GossipOptionRewardItem>1</GossipOptionRewardItem> <RequiredQuest>0</RequiredQuest> <MaxLevel>25</MaxLevel> <MinLevel>0</MinLevel> <WoWClass>None</WoWClass> </EasyQuest> <EasyQuest> <Name>Saving Foreman Oslow Path</Name> <QuestId> <int>26520</int> </QuestId> <QuestType>FollowPath</QuestType> <QuestClass xsi:type="FollowPathEasyQuestClass"> <Path> <Vector3 X="-9107.633" Y="-2395.263" Z="121.2389" /> </Path> <IsCompleteWhenAtLastPath>false</IsCompleteWhenAtLastPath> <ForceToStartFirstPosition>false</ForceToStartFirstPosition> <IsHotSpots>false</IsHotSpots> <IsLoop>false</IsLoop> </QuestClass> <ObjectiveCount1>0</ObjectiveCount1> <ObjectiveCount2>0</ObjectiveCount2> <ObjectiveCount3>0</ObjectiveCount3> <ObjectiveCount4>0</ObjectiveCount4> <ObjectiveCount5>0</ObjectiveCount5> <AutoDetectObjectiveCount1>false</AutoDetectObjectiveCount1> <AutoDetectObjectiveCount2>false</AutoDetectObjectiveCount2> <AutoDetectObjectiveCount3>false</AutoDetectObjectiveCount3> <AutoDetectObjectiveCount4>false</AutoDetectObjectiveCount4> <AutoDetectObjectiveCount5>false</AutoDetectObjectiveCount5> <CanCondition /> <IsCompleteCondition>return ObjectManager.GetWoWUnitHostile().Where(u =&gt; u.Entry == 43094).Any() || ObjectManager.GetWoWUnitHostile().Where(u =&gt; u.Entry == 43197).Any();</IsCompleteCondition> <RepeatableQuest>false</RepeatableQuest> <NotRequiredInQuestLog>false</NotRequiredInQuestLog> <PickUpQuestOnItem>false</PickUpQuestOnItem> <PickUpQuestOnItemID>0</PickUpQuestOnItemID> <Comment /> <GossipOptionRewardItem>1</GossipOptionRewardItem> <RequiredQuest>0</RequiredQuest> <MaxLevel>25</MaxLevel> <MinLevel>0</MinLevel> <WoWClass>None</WoWClass> </EasyQuest> <QuestsSorted Action="PickUp" NameClass="SavingForemanOslow" /> <QuestsSorted Action="While" NameClass="Quest.HasQuest(26520) &amp;&amp; ObjectManager.GetWoWUnitByEntry(43197).Count == 0" /> <QuestsSorted Action="Pulse" NameClass="SavingForemanOslowPath" /> <QuestsSorted Action="RunCode" NameClass="Thread t = new Thread(() =&gt;&#xD;&#xA;{&#xD;&#xA; uint itemId = 58895;&#xD;&#xA; int questId = 26520;&#xD;&#xA; while (robotManager.Products.Products.IsStarted &amp;&amp; ObjectManager.GetWoWUnitByEntry(43197).Count == 0)&#xD;&#xA; {&#xD;&#xA; if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause)&#xD;&#xA; {&#xD;&#xA; Lua.RunMacroText(&quot;/tar canyon&quot;);&#xD;&#xA; if (ObjectManager.Target.IsValid &amp;&amp; ObjectManager.Target.Entry == 43094 &amp;&amp; ObjectManager.Me.TargetObject.GetDistance &lt;= 5)&#xD;&#xA; {&#xD;&#xA; wManager.Wow.Helpers.Fight.StopFight();&#xD;&#xA; ItemsManager.UseItem(itemId);&#xD;&#xA; }&#xD;&#xA; else&#xD;&#xA; {&#xD;&#xA; MovementManager.MoveTo(ObjectManager.Me.TargetObject.Position);&#xD;&#xA; }&#xD;&#xA; }&#xD;&#xA; Thread.Sleep(250);&#xD;&#xA; }&#xD;&#xA;});&#xD;&#xA;t.Start();" /> <QuestsSorted Action="EndWhile" NameClass="" />
  16. Join Discord through the link given in your purchase email and I can try to help you debug the problem. What are your current latency settings in wRobot? 500-800 is advisable at most times. Enabling debug logging (under wRobot log) can help understand where the issue might lie. I have pushed 4 different updates today. Best to make sure you are on the latest version. Edit: Settings applied as advised here, checked debug logging and behavior via Teamviewer and couldn't reproduce the issue.
  17. Please redownload from Rocketr through your purchase link. This was fixed a while ago. Check if you have autoloot enabled in your WoW's settings (it should be), as well. Edit: Try higher latency settings for wRobot as well.
  18. working solution
  19. Matenia

    Wrong Lua events

    For anyone wondering, this works: EventsLua.AttachEventLua((LuaEventsId)Enum.Parse(typeof(LuaEventsId), "PLAYER_DEAD"), m => { LastDeath = DateTime.Now; Logging.WriteDebug("Died, set new timestamp for last death"); });
  20. Maybe the problem is that I reference TBC libraries of wRobot? I compile 1 dll for vanilla + tbc. It shouldn't really change anything, but maybe it does? I thought events remained the same Maybe same problem as here: I use TBC LuaEventsId.PLAYER_DEAD and it's different in different expacs.
  21. For the following code: class AntiDrown { private static DateTime BreathExpires = DateTime.MaxValue; public static void Start() { EventsLuaWithArgs.OnEventsLuaWithArgs += AntiDrownEventHandler; } public static void Stop() { EventsLuaWithArgs.OnEventsLuaWithArgs -= AntiDrownEventHandler; } private static void AntiDrownEventHandler(LuaEventsId id, List<string> args) { if (id == LuaEventsId.MIRROR_TIMER_START) { Logging.WriteDebug(args[0] + " " + args[1]); } if (id == LuaEventsId.MIRROR_TIMER_START && args[0] == "BREATH") { //sets BreathExpires to be in the future by x milliseconds BreathExpires = DateTime.Now.AddMilliseconds(double.Parse(args[1])); Logging.WriteDebug("Breath has " + double.Parse(args[1]) + " milliseconds left"); } } public static void DontDrown() { //check if we drown in less than 5 seconds while (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause && DateTime.Now.AddSeconds(5) > BreathExpires) { Move.JumpOrAscend(); Thread.Sleep(500); } } } I call Start and Stop methos from plugin.
  22. Matenia

    Wrong Lua events

    public static void Start() { EventsLuaWithArgs.OnEventsLuaWithArgs += AntiDrownEventHandler; } public static void Stop() { EventsLuaWithArgs.OnEventsLuaWithArgs -= AntiDrownEventHandler; } private static void AntiDrownEventHandler(LuaEventsId id, List<string> args) { if (id == LuaEventsId.MIRROR_TIMER_START) { Logging.WriteDebug(args[0] + " " + args[1]); } if (id == LuaEventsId.MIRROR_TIMER_START && args[0] == "BREATH") { //sets BreathExpires to be in the future by x milliseconds BreathExpires = DateTime.Now.AddMilliseconds(double.Parse(args[1])); Logging.WriteDebug("Breath has " + double.Parse(args[1]) + " milliseconds left"); } } This code is also "bugged". Ingame Lua event handler: works perfectly, it shows event id, "BREATH" and even 4 arguments. But using this in the bot, it's never called. @Droidz maybe you need to add this event manually?
  23. I had this problem once on TBC. But ages ago and once I sold ONE item manually on TBC, it would instantly fix itself. On Vanilla, this does not fix it and this problem occurs more frequently. I think it's related to the exception being thrown.
  24. No clue, recommend just doing: MailItem1Button:Click(); as Lua code
  25. You should add dedicated trainers and vendors (that sell food/water, preferably) as well as repair NPCs in the quester profile. It makes it more reliable. Then you can add a line to NpcDB.AcceptOnlyProfileNpc = true; to only use profile NPCs. That'll help with it going to random NPCs the user may have in his database or not going to trainer at all.
×
×
  • Create New...