Jump to content

smelt the ore


c8014752

Recommended Posts

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 by TheSmokie
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...