Page 1 of 1

auto scroll script

Posted: Tue Aug 15, 2017 6:37 pm
by bionuttt
Hello anyone can help me with an auto scroll script ? or can explain me how i can make this ?

Re: auto scroll script

Posted: Tue Aug 15, 2017 7:54 pm
by nucular
viewtopic.php?f=4&t=219 didn't you read this?^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Re: auto scroll script

Posted: Tue Aug 15, 2017 8:43 pm
by bionuttt
yeah but i want like an lua , like OfficialGathering.lua i want to make lua and hit enable

Re: auto scroll script

Posted: Tue Aug 22, 2017 3:25 pm
by bionuttt
hey i made this script but is nothing happen when i hit enable... can anyone help me ?

Code: Select all

function CheckRunScroll()

if Player:GetState():GetState( Helper:CheckName("Increase Movement Speed") ) == nil and Helper:CheckAvailableInventory ( "Greater Running Scroll" ) then
 	PlayerInput:Inventory( "Greater Running Scroll" );
end

	end
	
function CheckRunScroll()

stateID = {9960};
foodName = {"Greater Running Scroll"};
flag = 0;

    for _,v in ipairs(stateID) do
        if Player:GetState():GetState( v ) ~= nil then
            flag = flag + 1;
        end
    end

    if flag == 0 then
        for a,b in ipairs(foodName) do
            if Helper:CheckAvailableInventory( b ) then
                PlayerInput:Inventory( b );
                break;
            end
        end
    end
return true;

	end