Jump to content

TheSmokie

Banned
  • Posts

    1215
  • Joined

Posts posted by TheSmokie

  1. Hello, i cant seem to get this to work. i believe i am getting boolen back but idk if i am wrapping it properly.

    Lua.LuaDoString($"SetLFGRoles(false, {RDFSettings.CurrentSetting.Tank}, {RDFSettings.CurrentSetting.Heal}, {RDFSettings.CurrentSetting.DPS});");

     

  2. @Harvest Golem you can use something like this,

    local MountsNames = { }
    for i = 1, GetNumCompanions('MOUNT') do 
        local _, Name = GetCompanionInfo('MOUNT', i);
        table.insert(MountsNames, Name);
    end
    
    
    for B = 1 , 25 do
        local BuffName = UnitBuff("player", B);
            for Y = 1, #MountsNames do
            if string.match(BuffName, MountsNames[Y]) then
                return true;
            else
                return false;
            end
        end
    end

     

  3. @Zer0 i dont believe people can use Csharp functions in fighclass editor. but yes, you code will work for wotlk.

    This is lua code. (Tested) works good. Change the timer and Combo Points  amount with whatever you choose.

    local RS, _, _, _, _, _, timer = UnitBuff("player", "Savage Roar");
    
    if (not RS or RS and timer - GetTime() <= 3) and GetComboPoints("player", "target") >= 2 then
        CastSpellByName("Savage Roar");
    end

    Update file.

    Feral DPS.xml

  4. 22 minutes ago, Ordush said:

    I am still working on this issue @TheSmokie So far no luck getting the same error that you are getting. I will return here as soon as i manage to replicate it.
    Are you using any addons etc?

    Okay, no addons, fresh wrobot, wow client, download from the site you use

  5. Hello, i keep getting this error. 

    Message: [string "Yyuviw.lua"]:80: attempt to index global 'WRDungeonFrame' (a nil value)

    also bot isnt moving on to next step, i am using all single folder. 5 wows, level 17 using the test profile wotlk. i keep getting error or wow crashing / wrobot freezing,

     

    and i am getting this error also : 

    Message: [string "Hyedaun.lua"]:80: attempt to index global 'WRDungeonFrame' (a nil value)

     

  6. 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);
            }

     

×
×
  • Create New...