Signup Now
Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28

    Fish Water Elementals

    Fish Water Elementals


    Description

    Uses a fishing rod on the body of dead water elementals. Automatically adds fished items to looting HUD if you have them on your looting list.
    Notes: It's recommended to have fishing rod on hotkeys.


    Configuration

    Edit the waitFresh variable on the init block to specify whether the bot should stand and wait for fresh bodies to become 'fishable'.


    Code

    init start
    -- local SCRIPT_VERSION = '1.1.1'

    -- If set to true, will pause walking and wait for fresh bodies to become
    -- 'fisable'.
    local waitFresh = false


    -- DO NOT EDIT BELOW THIS LINE --

    local fishLoot = {281, 282, 3026, 3029, 3032, 9303}

    -- I wish I could have made this a more generic function, but it would most
    -- likely make it less efficient for the current use case; I know... I will
    -- pay for that in the future. Meh... whatever, bring it on!
    local function findwaterfishspots(exceptClose)
    local hasFresh = false

    for x = -7, 7 do
    for y = -5, 5 do
    -- This lets us ignore bodies that are too close and might fuck
    -- up because of character's first movements, but still account
    -- for them after it's already standing.
    if not exceptClose or (math.abs(x) > 1 or math.abs(y) > 1) then
    local curX, curY = $posx + x, $posy + y
    local item = topuseonitem(curX, curY, $posz).id

    if item == 9582 then
    return {x = curX, y = curY}
    elseif item == 4037 then
    hasFresh = true
    end
    end
    end
    end

    return nil, hasFresh
    end
    init end

    auto(100)

    if $lootsaround == 0 and $targetingtarget.hppc == 0 then
    local old, fresh = findwaterfishspots(true)

    while old ~= nil or (waitFresh and fresh) do
    pausewalking(6^9) -- Yeah babe!

    if old ~= nil then
    local itemCount = {}

    for _, v in ipairs(fishLoot) do
    itemCount[v] = itemcount(v)
    end

    useitemon(3483, 0, ground(old.x, old.y, $posz))
    waitping()

    for _, v in ipairs(fishLoot) do
    local curCount = itemcount(v)

    if curCount > itemCount[v] then
    increaseamountlooted(v, curCount - itemCount[v])
    end
    end
    end

    -- If starting conditions are no longer met, abort mission!
    if $lootsaround ~= 0 or $targetingtarget.hppc ~= 0 then
    break
    end

    old, fresh = findwaterfishspots(false)
    end

    pausewalking(0) -- Orgasm.
    end

    Git
    Last edited by Raphael; 04-26-2014 at 08:45 PM.

  2. #2
    Moderator BUgWT's Avatar
    Join Date
    Dec 2013
    Location
    www.bugwt.com
    Posts
    546
    Reputation
    72
    Rep Power
    22
    great job son


    LATEST SCRIPTS SKYPE
    Got a Question? Add me on Skype!
    bugwt.support

    This image is hosted on a possibly dangerous website (http://mystatus.skype.com/smallclassic/bugwt.support). Please consider reuploading it on Imgur.com.


  3. #3
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Script updated!

    No longer requires items to have 'f' category.

  4. #4
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Script updated!

    Wouldn't fish some bodies.

  5. #5
    Free User
    Join Date
    Dec 2013
    Posts
    39
    Reputation
    10
    Rep Power
    0
    Thanks for releasing this. Is it possible to make it so it dosn't try to "loot" the body when fishing. It only happends sometimes

  6. #6
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by jkaberg View Post
    Thanks for releasing this. Is it possible to make it so it dosn't try to "loot" the body when fishing. It only happends sometimes
    It doesn't already. It will only fish if there's no loot body on screen.

  7. #7
    Free User
    Join Date
    Jul 2014
    Posts
    5
    Reputation
    10
    Rep Power
    0
    Great action, great job, thank you.

  8. #8
    Free User
    Join Date
    Oct 2014
    Posts
    12
    Reputation
    10
    Rep Power
    0
    Hello Raphael, on your fishing water elemental script, if i set the waitFresh to true my windbot stops responding and it eventually shuts down, do you know any solution to that?

  9. #9
    Free User
    Join Date
    Oct 2014
    Posts
    12
    Reputation
    10
    Rep Power
    0
    ???? i have problem with the local waitFresh = true could you pls help me?

  10. #10
    Banned
    Join Date
    Nov 2014
    Posts
    377
    Reputation
    25
    Rep Power
    0
    it just closing my windbot... ;S

 

 

Posting Permissions

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