Jump to content

Recommended Posts

Hello,

is this for vanilla? I use the following function to check if I can wand:

public static bool IsAutoRepeating(string name)
    {
        string luaString = @"
        local i = 1
        while true do
            local spellName, spellRank = GetSpellName(i, BOOKTYPE_SPELL);
            if not spellName then
                break;
            end
   
            -- use spellName and spellRank here
            if(spellName == ""{0}"") then
                PickupSpell(i, BOOKTYPE_SPELL);
                PlaceAction(1);
                ClearCursor();
                return IsAutoRepeatAction(1)
            end

            i = i + 1;
        end
        return false;";
        return Lua.LuaDoString<bool>(string.Format(luaString, name));
    }

 

Edited by Matenia
Link to comment
https://wrobot.eu/forums/topic/7796-wand-spam-click-help/#findComment-35670
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...