Jump to content

TheSmokie

Banned
  • Posts

    1215
  • Joined

Everything posted by TheSmokie

  1. Lua.LuaDoString("SetDungeonDifficulty(1/2);"); Lua.LuaDoString("SetRaidDifficulty(1/4);");
  2. While i was working on my own copy of AIO, i made a simple way to check spec by string, its more Accurate then the method @iMod used, public static class ToolHelper_Rotation { public static void Spec() { string MainTalents = GetSpec(); if (ObjectManager.Me.WowClass == WoWClass.Priest) { switch (MainTalents) { case ("Shadow"): { MessageBox.Show("Your spec is Shadow"); break; } case ("Holy"): { MessageBox.Show("Your spec is Holy"); break; } case ("Disco"): { MessageBox.Show("Your spec is Disco"); break; } default: { MessageBox.Show("Your spec is Shadow"); break; } } } } public static string GetSpec() { string SpecName = @" local highest_tab, highest = 0, 0; for i=1, 3 do local name, _, points = GetTalentTabInfo(i); if points > highest then highest = points; highest_tab = i; highest_name = name end end return highest_name"; return Lua.LuaDoString<string>(SpecName); } }
  3. Hello, there is many ways to do what you are asking, C# and lua. Take your pick of one that works for you. 1st : string ItemName = ItemsManager.GetNameById(50259); Lua.LuaDoString("UseItemByName('" + ItemName+ "')"); 2nd : ItemsManager.UseItemByNameOrId("50259"); 3rd: ItemsManager.UseItem(555); 4th : ItemsManager.UseContainerItem("Name here"); 5th : Lua.LuaDoString("UseItemByName('ItemName Here')");
  4. TheSmokie

    buy item

    @Droidz can you a gold check before going to buy food?
  5. [D] 00:42:27 - [Blacklist] Added, 0 uniques Npcs, 0 Blackspots and 0 Npcs types (Training dummy ignored = True). 00:42:31 - [FightClass] No Fight Class selected 00:42:31 - [Quester] Started [D] 00:42:31 - [Quester] RunCode[0]: var npcVendor = new wManager.Wow.Class.Npc { ContinentId = wManager.Wow.Enums.ContinentId.Kalimdor, Entry = 6091, Faction = wManager.Wow.Class.Npc.FactionType.Alliance, Name = "Dellylah", Position = new Vector3(10450.2, 779.858, 1322.67), CanFlyTo = false, Type = wManager.Wow.Class.Npc.NpcType.Vendor, }; NpcDB.ListNpc.Clear(); if (!NpcDB.ListNpc.Contains(npcVendor)) NpcDB.AddNpc(npcVendor, true); NpcDB.Save(); 00:42:34 - You have forcing bot at go to town. 00:42:36 - [ToTown] Go to town: force go to town enabled [D] 00:42:36 - [ToTown] MailBox not found - Vendor/repair: Vendor (Food) - Dellylah 00:42:36 - [ToTown] Go to vendor Dellylah (Vendor) 00:42:40 - [ToTown] Vendor found Dellylah 00:42:40 - [ToTown] Buy drink and food 00:43:43 - [Quester] Stopped 00:43:43 - Session statistics: Elapsed time: 00h:01m:12s XP/HR: 0 - 0 min Kills: 0 (0/hr) Deaths: 0 (0/hr) Stucks: 0 (0/hr) Farms: 0 (0/hr) Loots: 0 (0/hr) Money/HR: 0 G 00 S 00 C (0 G 00 S 00 C) [D] 00:46:08 - [Blacklist] Added, 0 uniques Npcs, 0 Blackspots and 0 Npcs types (Training dummy ignored = True). 00:46:12 - [FightClass] No Fight Class selected 00:46:12 - [Quester] Started [D] 00:46:12 - [Quester] RunCode[0]: var npcVendor = new wManager.Wow.Class.Npc { ContinentId = wManager.Wow.Enums.ContinentId.Kalimdor, Entry = 6091, Faction = wManager.Wow.Class.Npc.FactionType.Alliance, Name = "Dellylah", Position = new Vector3(10450.2, 779.858, 1322.67), CanFlyTo = false, Type = wManager.Wow.Class.Npc.NpcType.Vendor, }; NpcDB.ListNpc.Clear(); if (!NpcDB.ListNpc.Contains(npcVendor)) NpcDB.AddNpc(npcVendor, true); NpcDB.Save(); 00:46:19 - You have forcing bot at go to town. 00:46:22 - [ToTown] Go to town: force go to town enabled [D] 00:46:22 - [ToTown] MailBox not found - Vendor/repair: Vendor (Food) - Dellylah 00:46:22 - [ToTown] Go to vendor Dellylah (Vendor) 00:46:29 - [ToTown] Vendor found Dellylah 00:46:29 - [ToTown] Buy drink and food 00:46:33 - [Quester] Stopped 00:46:33 - Session statistics: Elapsed time: 00h:00m:20s XP/HR: 0 - 0 min Kills: 0 (0/hr) Deaths: 0 (0/hr) Stucks: 0 (0/hr) Farms: 0 (0/hr) Loots: 0 (0/hr) Money/HR: 0 G 00 S 00 C (0 G 00 S 00 C) [D] 00:47:16 - [Blacklist] Added, 0 uniques Npcs, 0 Blackspots and 0 Npcs types (Training dummy ignored = True). [D] 00:47:27 - [Blacklist] Added, 0 uniques Npcs, 0 Blackspots and 0 Npcs types (Training dummy ignored = True). 00:47:30 - [FightClass] No Fight Class selected 00:47:30 - [Quester] Started [D] 00:47:30 - [Quester] RunCode[0]: var npcVendor = new wManager.Wow.Class.Npc { ContinentId = wManager.Wow.Enums.ContinentId.Kalimdor, Entry = 6091, Faction = wManager.Wow.Class.Npc.FactionType.Alliance, Name = "Dellylah", Position = new Vector3(10450.2, 779.858, 1322.67), CanFlyTo = false, Type = wManager.Wow.Class.Npc.NpcType.Vendor, }; NpcDB.ListNpc.Clear(); if (!NpcDB.ListNpc.Contains(npcVendor)) NpcDB.AddNpc(npcVendor, true); NpcDB.Save(); 00:47:33 - You have forcing bot at go to town. 00:47:35 - [ToTown] Go to town: force go to town enabled [D] 00:47:36 - [ToTown] MailBox not found - Vendor/repair: Vendor (Food) - Dellylah 00:47:36 - [ToTown] Go to vendor Dellylah (Vendor) 00:47:41 - [ToTown] Vendor found Dellylah 00:47:41 - [ToTown] Buy drink and food 00:47:46 - [Quester] Stopped 00:47:47 - Session statistics: Elapsed time: 00h:00m:16s XP/HR: 0 - 0 min Kills: 0 (0/hr) Deaths: 0 (0/hr) Stucks: 0 (0/hr) Farms: 0 (0/hr) Loots: 0 (0/hr) Money/HR: 0 G 00 S 00 C (0 G 00 S 00 C) [D] 00:51:57 - [Blacklist] Added, 0 uniques Npcs, 0 Blackspots and 0 Npcs types (Training dummy ignored = True). logs
  6. Hello @Droidz i keep getting this error, Note i do not have a single plugin / addon loaded, the profile is only clearing and adding a npc to the database Message: [string "Qipohyoby.lua"]:4: bad argument #1 to 'find' (string expected, got nil) Time: 09/28/20 00:47:42 Count: 29 Stack: Locals:
  7. This is what i use for my upcoming profile, i added its own Npc database and each file clears the database. var npcVendor = new wManager.Wow.Class.Npc { ContinentId = (wManager.Wow.Enums.ContinentId)Usefuls.ContinentId, Entry = 1234, Faction = wManager.Wow.Class.Npc.FactionType.Neutral, Name = "Npc name", Position = new Vector3(1, 2, 3), CanFlyTo = true, Type = wManager.Wow.Class.Npc.NpcType.Repair, // wManager.Wow.Class.Npc.NpcType.Vendor }; if(!NpcDB.ListNpc.Contains(npcVendor)) NpcDB.AddNpc(npcVendor, false);
  8. instead of using macros with turn off, turn on (your gonna get some errors no matter what,) use this template for make your own plugin : using robotManager.Helpful; using robotManager.Products; using System; using System.Threading; using System.Windows.Forms; using wManager.Plugin; using wManager.Wow.Helpers; using wManager.Wow.ObjectManager; public class Main : IPlugin { bool Launched; int timer = 1000; string PluginName = "[Plugin]: "; public void Initialize() { Launched = true; while (Launched && Products.IsStarted) { try { if (Conditions.InGameAndConnectedAndAliveAndProductStartedNotInPause) { if (!ObjectManager.Me.InCombat && !ObjectManager.Me.IsDead) { Lua.RunMacroText("Code here"); } } } catch (Exception e) { Logging.WriteError(PluginName + "there was an error: " + e); } Thread.Sleep(timer); } } public void Dispose() { Launched = false; } public void Settings() { MessageBox.Show(PluginName + "There are no settings."); } }
  9. if you want more control, you have to make a plugin with use macro at your conditions.
  10. TheSmokie

    buy item

    i use this function to buy stuff from venders if it helps. public static void BuyItem(string name, int amount) { Lua.LuaDoString(string.Format(@" local itemName = ""{0}"" local quantity = {1} for i=1, GetMerchantNumItems() do local name = GetMerchantItemInfo(i) if name and name == itemName then BuyMerchantItem(i, quantity) end end", name, amount)); }
  11. try something like this public static class block { public static readonly List<string> Logs = new List<string> { "[FSM] State wManager.Wow.Bot.States.Idle already launched, ignore it.", "[FSM] State   already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.Trainers already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.Talents already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.FlightMasterDiscoverState already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.ToTown already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.FlightMasterTakeTaxiState already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.ProspectingState already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.MillingState already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.Farming already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.Looting already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.Regeneration already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.FarmingRange already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.LootingRange already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.BattlePetState already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.IsAttacked already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.MyMacro already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.Resurrect already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.Pause already launched, ignore it.", "[FSM] State wManager.Wow.Bot.States.Relogger already launched, ignore it.", }; public static void CloseWrobot() { robotManager.Events.LoggingEvents.OnAddLog += delegate (Logging.Log log) { foreach (string errorlogs in Logs) { if (log.Text.Contains(errorlogs)) System.Diagnostics.Process.GetCurrentProcess().Kill(); } }; } }
  12. @happiness7 when ever i used MovementManager.Face(new Vector3()); it never worked for me.
  13. Your problem could be because you are downloading all of windows update
  14. @pudge i do not know if you fix this problem, but i got it working by using this as a return complete condition. return Usefuls.SubMapZoneName.Contains("The Vault of Lights"); if(GoToTask.ToPositionAndIntecractWithGameObject(new Vector3(5699.33, 735.217, 641.767), 191007)) { Thread.Sleep(5000); } return true; tested, works gread. Transport to Exodar from Dalaran.xml
  15. @maukor this should work, only load once at start of your profile or use a plugin that runs this code once. EventsLua.AttachEventLua(LuaEventsId.LOOT_BIND_CONFIRM, i => Lua.LuaDoString("StaticPopup1Button1:Click()"));
  16. Project Ascension is a custom server, i do not think @droidz will add support to custom servers.
  17. I thought id share a better, cleaner way to set HearthStone. var Stone = Lua.LuaDoString<string>("bindlocation = GetBindLocation(); return bindlocation;"); if (Stone != "LocationName" && wManager.Wow.Bot.Tasks.GoToTask.ToPositionAndIntecractWithNpc(new Vector3(x, y, z), NpcID)) { Usefuls.SelectGossipOption(GossipOptionsType.binder); Thread.Sleep(100); Lua.LuaDoString("StaticPopup1Button1"); Lua.LuaDoString("CloseMerchant()"); }
  18. Is the source code available?
  19. Are you alliance or horde? If horde you can not use that portal, the guards in Dala an will port you back out of there.
×
×
  • Create New...