auto scroll script
Posted: Tue Aug 15, 2017 6:37 pm
Hello anyone can help me with an auto scroll script ? or can explain me how i can make this ?
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