Results 1 to 4 of 4

Thread: Fishing script!

  1. #1
    iBot User
    Join Date
    Jul 2012
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Fishing script!

    Hello. I need a fishing script based on item count, not cap which all the rest scripts in this forum is based on. U can't use cap based script when u train a paladin!!

    atm I got this one:

    Code:
    local minCap = 200 
    local fishrange = 7 
    local i = math.random(-fishrange ,fishrange )  
    local j = math.random(-fishrange ,fishrange )  
    
    if cap >= minCap and (toptileitem(posx+i,posy+j,posz) >= 4598 and toptileitem(posx+i,posy+j,posz) <= 4602) then 
        useitemon("fishing rod",posx+i,posy+j,posz) 
    end

  2. #2
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    344 Post(s)
    Reputation
    462
    Rep Power
    10
    Try:

    PHP Code:
    local minCap 200 
    local fishrange 


    if cap >= minCap 
    then 
        fish
    (fishrangefalse)
        
    wait(300600)
    end 


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  3. #3
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by blakw View Post
    Try:

    PHP Code:
    local minCap 200 
    local fishrange 


    if cap >= minCap 
    then 
        fish
    (fishrangefalse)
        
    wait(300600)
    end 
    That's still cap based...



    PHP Code:
    local minFish 15
    local minCap 

    local fishrange 

    local i 
    math.random(-fishrange ,fishrange )  
    local j math.random(-fishrange ,fishrange )  

    if 
    cap minCap and (toptileitem(posx+i,posy+j,posz) >= 4598 and toptileitem(posx+i,posy+j,posz) <= 4602)  and itemcount("fish") < minFish then 
        useitemon
    ("fishing rod",posx+i,posy+j,posz
    end 
    This is cap and fish count based.

    To make the script shorter you could use the fish() action, so it would look like

    PHP Code:
    local minCap 
    local minFish 
    15
    local fishrange 

      

    if cap minCap and itemcount("fish") < minFish then 
         fish
    (fishrangefalse)
    end 
    Last edited by pink_panther; 10-21-2012 at 04:32 PM.

  4. #4
    Normal User
    Join Date
    Apr 2012
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    just this works:

    'local minFish = 150
    local minCap = 0
    local fishrange = 7
    local i = math.random(-fishrange ,fishrange )
    local j = math.random(-fishrange ,fishrange )

    if cap > minCap and (toptileitem(posx+i,posy+j,posz) >= 4598 and toptileitem(posx+i,posy+j,posz) <= 4602) and itemcount("fish") < minFish then
    useitemon("fishing rod",posx+i,posy+j,posz)
    end '


    thanks !!!

Posting Permissions

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