Jump to content

Matenia

Elite user
  • Posts

    2227
  • Joined

  • Last visited

Everything posted by Matenia

  1. Change it to CastSpellByName("Teleport: Moonglade") instead of using Hearthstone item.
  2. 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.
  3. One profile, wRobot can't pick quest rewards in a smart way.
  4. 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.
  5. Second the "avoid all combat with player pets". Would be a great, simple feature, @Droidz. iirc player pets have a certain flag
  6. https://wrobot.eu/clients/purchases/ Ist leer?
  7. 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
  8. 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"
  9. 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.
  10. 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.
  11. 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.
  12. <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="" />
  13. 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.
  14. 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.
  15. 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"); });
  16. 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.
  17. 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.
  18. 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?
  19. 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.
  20. No clue, recommend just doing: MailItem1Button:Click(); as Lua code
  21. 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.
  22. Suspicion: This happens if the DoNotSellList contains the same item twice. For example, I call this method multiple times: wManagerSetting.CurrentSetting.DoNotSellList.Add(waterName); Full list of items: Refreshing Spring Water (ID= 159 ) Hearthstone (ID= 6948 ) Hallowed Letter (ID= 9548 ) Broken Fang (ID= 7073 ) Ruined Pelt (ID= 4865 ) Ice Cold Milk (ID= 1179 ) Broken Boar Tusk (ID= 3171 ) Chunk of Boar Meat (ID= 769 ) William's Shipment (ID= 957 ) Flimsy Chain Bracers (ID= 2651 ) Stringy Wolf Meat (ID= 2672 ) Linen Cloth (ID= 2589 ) Chipped Boar Tusk (ID= 771 ) Chipped Bear Tooth (ID= 3169 ) Ruined Leather Scraps (ID= 2934 ) Rabbit's Foot (ID= 3300 ) Copper Ore (ID= 2770 ) Shiny Seashell (ID= 779 ) Loose Chain Gloves (ID= 2645 ) Withered Staff (ID= 1411 ) Haunch of Meat (ID= 2287 ) Crystal Kelp Frond (ID= 1256 ) Magic Candle (ID= 1399 ) Full list of memory info:
  23. Hello, is this for vanilla? I use the following function to check if I can wand: public static bool IsAutoRepeating(string name) { string luaString = @" local i = 1 while true do local spellName, spellRank = GetSpellName(i, BOOKTYPE_SPELL); if not spellName then break; end -- use spellName and spellRank here if(spellName == ""{0}"") then PickupSpell(i, BOOKTYPE_SPELL); PlaceAction(1); ClearCursor(); return IsAutoRepeatAction(1) end i = i + 1; end return false;"; return Lua.LuaDoString<bool>(string.Format(luaString, name)); }
  24. Can confirm this code example works, btw. I'm combining it with @reapler's WowDb335 and can handpick NPCs for every state like ToTown, Trainers, etc
×
×
  • Create New...