December 18, 20205 yr 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, 20205 yr by TheSmokie
Create an account or sign in to comment