auto scroll script

Post Reply
bionuttt
Posts: 43
Joined: Sun Feb 05, 2017 8:25 pm
Has thanked: 5 times
Been thanked: 2 times

auto scroll script

Post by bionuttt » 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 ?

User avatar
nucular
Site Admin
Posts: 260
Joined: Sat Jan 07, 2017 9:08 pm
Has thanked: 27 times
Been thanked: 388 times

Re: auto scroll script

Post by nucular » Tue Aug 15, 2017 7:54 pm

viewtopic.php?f=4&t=219 didn't you read this?^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

bionuttt
Posts: 43
Joined: Sun Feb 05, 2017 8:25 pm
Has thanked: 5 times
Been thanked: 2 times

Re: auto scroll script

Post by bionuttt » Tue Aug 15, 2017 8:43 pm

yeah but i want like an lua , like OfficialGathering.lua i want to make lua and hit enable

bionuttt
Posts: 43
Joined: Sun Feb 05, 2017 8:25 pm
Has thanked: 5 times
Been thanked: 2 times

Re: auto scroll script

Post by bionuttt » Tue Aug 22, 2017 3:25 pm

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
Attachments
Scroll.rar
auto scroll script
(409 Bytes) Downloaded 2 times

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest