XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: Fishing Script (Help)

  1. #1

    Join Date
    Oct 2015
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fishing Script (Help)

    Why the script stop fishing?

    Code:
    Randomize = false
     
    Module.New("Auto Fisher", function(Module)
        if Self.ItemCount(3492) > 0 and Self.ItemCount(3483) > 0 and Self.Cap() > 5 then  
            p = Self.Position()
            if Randomize then
                x =  math.random(p.x -7, p.x + 7)
                y =  math.random(p.y -5, p.y + 5)
                while table.isStrIn({4597,4598,4599,4600,4601,4602}, Map.GetTopUseItem(x, y, p.z).id) and Map.IsTileOnScreen(x, y, p.z) do
                    Self.UseItemWithGround(3483, x, y, p.z)
                    wait(Self.Ping() + 1000)
                end
            else
                for i = -7, 7 do
                    for j = -5, 5 do
                        x =  p.x + i
                        y =  p.y + j
                        while table.isStrIn({4597,4598,4599,4600,4601,4602}, Map.GetTopUseItem(x, y, p.z).id) and Map.IsTileOnScreen(x, y, p.z) do
                            Self.UseItemWithGround(3483, x, y, p.z)
                            wait(Self.Ping() + 1000)
                        end
                    end
                end
            end
        end
        Module:Delay(1000)
    end)
    I fount the error, it's because CAP. How I can let the script continue fishing with full cap?
    Last edited by Roxton; 05-16-2016 at 02:18 PM.

  2. #2
    Senior Member
    Join Date
    Sep 2012
    Posts
    1,070
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Roxton View Post
    Why the script stop fishing?

    Code:
    Randomize = false
     
    Module.New("Auto Fisher", function(Module)
        if Self.ItemCount(3492) > 0 and Self.ItemCount(3483) > 0 and Self.Cap() > 5 then  
            p = Self.Position()
            if Randomize then
                x =  math.random(p.x -7, p.x + 7)
                y =  math.random(p.y -5, p.y + 5)
                while table.isStrIn({4597,4598,4599,4600,4601,4602}, Map.GetTopUseItem(x, y, p.z).id) and Map.IsTileOnScreen(x, y, p.z) do
                    Self.UseItemWithGround(3483, x, y, p.z)
                    wait(Self.Ping() + 1000)
                end
            else
                for i = -7, 7 do
                    for j = -5, 5 do
                        x =  p.x + i
                        y =  p.y + j
                        while table.isStrIn({4597,4598,4599,4600,4601,4602}, Map.GetTopUseItem(x, y, p.z).id) and Map.IsTileOnScreen(x, y, p.z) do
                            Self.UseItemWithGround(3483, x, y, p.z)
                            wait(Self.Ping() + 1000)
                        end
                    end
                end
            end
        end
        Module:Delay(1000)
    end)
    I fount the error, it's because CAP. How I can let the script continue fishing with full cap?
    Remove the "and self cap" part if u know a little bit of how scripting works, or change the "greater than" > to "less than" < sign.

Posting Permissions

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