Results 1 to 3 of 3

Thread: About Soft Boots

  1. #1
    iBot User
    Join Date
    Jan 2013
    Posts
    303
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    19
    Rep Power
    4

    About Soft Boots

    Hello guys, ive been scripting for a long time, but never botted with soft boots due to be afraid to bot throw them away or into a body. however, this changed!

    id like to know a few things and ask for some actions.

    here it goes:

    to refil softboots in my script, it is better to refil it then refil potions or refil potions then check for soft boots??
    second thing

    my checkers are mostly like:

    if itemcount(MpType) <= MpMin or
    itemcount(RuneType) <= RuneMin or
    cap <= CapMin then gotolabel("LeaveCave")
    else
    gotolabel("HuntTypeChooser")
    end


    btw i walk with 2 sb

    my new checker to leave cave should be like

    if itemcount(MpType) <= MpMin or
    itemcount(RuneType) <= RuneMin or
    cap <= CapMin or
    itemcount("worn soft boots") >= 2
    then gotolabel("LeaveCave")
    else
    gotolabel("HuntTypeChooser")
    end



    now im about ask for actions
    i need one soft boots/soft boots/boh changer action
    other action: if any reachable ("pair of soft boots"/"worn soft boots") on the ground walk to it and pick it up (just like those gp grabber actions)[ive seen this action once in the forum]

    thats it, thanks!!

  2. #2
    iBot User
    Join Date
    Jan 2013
    Posts
    303
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    19
    Rep Power
    4
    Lua Code:
     
    function DistanceFromSelf(POS_X, POS_Y)
        updateworld()
        return math.max(math.abs(POS_X - posx), math.abs(POS_Y - posy))
    end
     
    function GroundItemPos(ITEMS, RANGE)
        updateworld()
        local X_RANGE = RANGE or 7
        local Y_RANGE = RANGE or 5
     
        for i = -X_RANGE, X_RANGE do
            for j = -Y_RANGE, Y_RANGE do
                if table.find(ITEMS, toptileitem(posx+i, posy+j, posz)) then
                    return {X = posx + i, Y = posy + j, ID = toptileitem(posx+i, posy+j, posz)}
                end
            end
        end
    end
     
    local SOFT_IDS = {itemid("soft boots"), itemid("worn soft boots")}
     
    while GroundItemPos(SOFT_IDS, 7) do
    	pausewalking(20000)
    	local ITEM = GroundItemPos(SOFT_IDS, 7)
    	while DistanceFromSelf(ITEM.X, ITEM.Y) > 1 do
    		reachlocation(ITEM.X, ITEM.Y, posz) wait(100, 150)
    	end
    	moveitems(ITEM.ID, ground(ITEM.X, ITEM.Y, posz), "all", 100) wait(200, 250)
    	pausewalking(0)
    end


    action to grab soft boots from the floor i found it
    Last edited by Eli; 05-10-2014 at 04:34 AM.

  3. #3
    Normal User shinare's Avatar
    Join Date
    Jun 2012
    Location
    Poland
    Posts
    446
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    17 Post(s)
    Reputation
    25
    Rep Power
    5
    but it wont work when you bot near river/fire etc coz bot can throw soft boots into this place and bye bye

Posting Permissions

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