-
Posts
1215 -
Joined
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Posts posted by TheSmokie
-
-
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')");
-
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);
-
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."); } }
-
if you want more control, you have to make a plugin with use macro at your conditions.
-
Readded :
-
Achievement (more advanced lua)
-
-
@happiness7 when ever i used MovementManager.Face(new Vector3()); it never worked for me.
-
Your problem could be because you are downloading all of windows update
-
@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.
-
-
@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()"));
-
Project Ascension is a custom server, i do not think @droidz will add support to custom servers.
-
I’ll test when I get hime
-
Can you send me the file via pm? I can see if I can fix it
-
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()"); }
-
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.
-
The reason why your getting DC is because the bot is deleting more then 3 soul shards at time, @Mateniafightclass fix this problem but it’s paid.
-
Druids racial gives 5 + to herb. Maybe wrobot has a bug? Ask @Droidz
-
or just use dev tools ?
-
Hello, this is just thread where i post miscellaneous Code to help others get idea or fix to there problems. Note some code works, some doesnt. its mainly for educational perspectives.
Quest Checker
private static bool IsQuestCompleted(int questID) { Lua.LuaDoString("ExpandQuestHeader(0)"); int QuestCount = Lua.LuaDoString<int>(@"return select(1, GetNumQuestLogEntries())"); for (int i = 1; i <= QuestCount; i++) { var QuestInfo = Lua.LuaDoString<List<string>>(string.Format(@"return GetQuestLogTitle(" + i + ")")); if (QuestInfo[4] == "1" || QuestInfo[5] == "1") continue; string QuestStatus = null; if (QuestInfo[6] == "1") QuestStatus = "completed"; else if (QuestInfo[6] == "-1") QuestStatus = "failed"; else QuestStatus = "in progress"; if (QuestInfo[8] == Convert.ToString(questID) && QuestStatus == "completed") { return true; } } return false; }
-
or if you want to just auto deline invites, here is a frame to disable them.
local f = CreateFrame("Frame") f:RegisterEvent("PARTY_INVITE_REQUEST") f:SetScript("OnEvent", function(self, event, ...) print("Declining a Party Invite ! "); StaticPopup1Button2:Click(); end)
-
Awesome, I think someone made a new friend ?
-
if you run this once while ingame, it will only trigger once LOOT_BIND_CONFIRM is started.
local f = CreateFrame("Frame") f:RegisterEvent("LOOT_BIND_CONFIRM") f:SetScript("OnEvent", function(self, event, ...) StaticPopup1Button1:Click(); end)
-
Make your own or buy @Matenia Advanced Battleground product.
-
Pardon me, but what?
[Wotlk][Source] GetSpecialization
in Developers assistance
Posted
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,