XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 6 of 6

Thread: How to make in script "CLICK/USE" on juicy root?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    l4z's Avatar
    Join Date
    Oct 2015
    Posts
    133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How to make in script "CLICK/USE" on juicy root?

    Was wondering and gona share with you code in lua. Working fine.

    Here is a lua:
    Code:
    local itemID = {21104}    -- ItemID to be picked up
    Module.New('lootFromGround', function(module)
        if (Self.TargetID() <= 0) then
            for y = -5, 5 do
                for x = -7, 7 do
                    if table.contains(itemID, Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
                        Cavebot.Stop()
                        Self.UseItemFromGround(Self.Position().x + x, Self.Position().y + y, Self.Position().z)
                        wait(1000)
                        Cavebot.Start()
                        module:Delay(math.random(1000))
                    end
                end
            end
        end
    end)
    Last edited by l4z; 03-03-2016 at 10:20 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •