Jump to content

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
https://wrobot.eu/forums/topic/12738-smelt-the-ore/#findComment-60855
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...