c8014752 0 Posted December 18, 2020 Share Posted December 18, 2020 I have full bag ore how to use the bot to smelt all ore in my bags Quote Link to post Share on other sites
TheSmokie 232 Posted December 18, 2020 Share Posted December 18, 2020 (edited) You can make a addon or quester profile with code looking like this (Untested.) while(Conditions.InGameAndConnectedAndAlive) { List<string> ProsSpectList() { return new List<string> { "Item 1", "item 2", //etc }; } if (!ObjectManager.Me.IsCast) { foreach (string prop in ProsSpectList()) { string spellName = ""; if(ItemsManager.GetItemCountByNameLUA(prop) > 0) { Lua.LuaDoString("CastSpellByName(\"" + spellName + "\")"); Thread.Sleep(50); List<int> bagAndSlot = Bag.GetItemContainerBagIdAndSlot(prop); Lua.LuaDoString("UseContainerItem(" + bagAndSlot[0] + "," + bagAndSlot[1] + ")"); Usefuls.WaitIsCastingAndLooting(); } } } Thread.Sleep(1000); } Edited December 18, 2020 by TheSmokie Quote Link to post Share on other sites
c8014752 0 Posted December 20, 2020 Author Share Posted December 20, 2020 can you make a Plugin for smelt Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.