Results 1 to 4 of 4

Thread: Need to convert actions from ....... to Ibot

  1. #1
    iBot User Pacoo's Avatar
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Need to convert actions from ....... to Ibot

    Hello someone is able to convert these actions from ....... to ibot++ ? I will thankful.

    ------------------------------------------------------------------------------------------------
    ================================================================================================

    auto(200)
    if not $connected then
    connect('login', 'pw', 'char')
    wait(1000,2000)
    end


    ------------------------------------------------------------------------------------------------

    -- Withdraw potions from depo

    local mainbp = getlootingdestination('golden backpack') -- main backpack
    local ringbp = getuseroption('grey backpack') --stealthring backpack inside depot chest

    while windowcount() < 1 do
    closewindows()
    wait(1500,2500)
    openitem(mainbp, "back", true)
    wait(1500,2500)
    resizewindows()
    end
    wait(1000,2000)
    opendepot()wait(1500,2500)
    openitem('Backpack', 'Depot Chest')
    wait(1000,2000)
    openitem('Grey Backpack', 'Backpack')
    wait(1500,2500)
    moveitemsupto("health potion", 10, "golden backpack", "grey backpack")
    wait(7500,9500)
    ------------------------------------------------------------------------------------------------

    -- local SCRIPT_VERSION = '1.1.0'

    local minStamina = 32 * 60 -- In minutes
    local accountList = {
    {
    account = 'login',
    password = 'pw',
    character = 'char'
    },
    {
    account = 'login',
    password = 'pw',
    character = 'char'
    },
    {
    account = 'login',
    password = 'pw',
    character = 'char'
    },
    {
    account = 'login',
    password = 'pw',
    character = 'char'
    }
    }

    -- DO NOT EDIT BELOW THIS LINE --
    for _, v in ipairs(accountList) do
    v.character = v.character:lower()
    end

    if $stamina < minStamina then
    local curAccount = table.find(accountList, $name:lower(), 'character')
    local nextAccount = accountList[(curAccount % [URL=http://www.tibiaibot.com/forum/usertag.php?do=list&action=hash&hash=accountList]#accountList[/URL] ) + 1]

    setsetting("Persistent/Scripts/reconnect/Enabled","no")
    waitandlogout()
    waitping()
    keyevent(VK_ESCAPE)
    waitping()
    connect(nextAccount.account, nextAccount.password, nextAccount.character)
    end

    ------------------------------------------------------------------------------------------------

    if os.date("%X") >= "9:45" and os.date("%X") <= "10:10" and $pzone then
    wait(600000)
    waitandlogout()
    printerror('Tibia Acc1 closed at 10:00')
    end

    ------------------------------------------------------------------------------------------------

    local amountToSave = 3000
    local transferTo = "char"

    say("Hi")
    wait(300,600)
    npcsay("Deposit all")
    wait(300,600)
    npcsay("Yes")
    wait(300,600)
    npcsay("Balance")
    wait(1300,1600)
    npcsay("Transfer "..$balance-amountToSave.." to "..transferTo)
    wait(300,600)
    npcsay("Yes")
    wait(1300,1600)
    ------------------------------------------------------------------------------------------------
    ------------------------------------------------------------------------------------------------
    Last edited by Eli; 02-10-2015 at 01:50 PM.

  2. #2
    Premium User Norkk's Avatar
    Join Date
    Jan 2013
    Location
    BH - MG - Brazil
    Posts
    1,167
    Mentioned
    78 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    207 Post(s)
    Reputation
    135
    Rep Power
    7
    @Pacoo , I can help with some of them.
    P.s: i didn't test, but i believe should work o/

    The connect is simple
    Lua Code:
     
    if not connected then
        connect('login', 'pw', 'char')
        wait(800,1000)
    end


    I like to use this one as a depositer
    Lua Code:
     
    setsettings("Settings\\Cavebot\\Settings\\OpenNext  Bp","no")
     
    -- Make a while loop to guarantee that depot will open
    while windowcount("locker") == 0 do
    	reachgrounditem("depot")
    	wait(800)
    	openitem("depot")
    	wait(800)
    	updateworld()
    end
    while windowcount("depot chest") == 0 do
    	openitem("depot chest", "locker")
    	wait(800)
    	updateworld()
    end
    while windowcount(MainDP) == 0 do
    	openitem(MainDP, "depot chest")
    	wait(800)
    	updateworld()
    end
     
    -- variable to use
    local CHECK_DEPOSITER = true
     
    while CHECK_DEPOSITER == true do
    	-- deposit your stuff loot
    	depotdeposit(LootDP, unpack(lootValioso))
    	wait(1500,2500)
    	depotdeposit(StackDP, unpack(lootMonstros))
    	wait(1500,2500)
     
    	if itemcount(LootBP, LootBP) > 0 then
    		openitem(LootBP, LootBP)
    		wait(1000)
    	else
    		CHECK_DEPOSITER = false
    	end
    end
     
    -- set open next bp again to hunt 
    setsettings("Settings\\Cavebot\\Settings\\OpenNext  Bp","yes")


    And the last one
    Lua Code:
     
    local amountToSave = 3000
    local transferTo = "char"
     
    say("Hi")
    depositall()
    wait(300,600)
    npcsay("Balance")
    wait(1300,1600)
    npcsay("Transfer ".. balance - amountToSave.. " to " .. transferTo)
    wait(300,600)
    npcsay("Yes")
    wait(1300,1600)
    Last edited by Norkk; 02-10-2015 at 03:11 PM.
    My Scripts - Norkk Free Scripts
    New Project - Norkk Project

    EK 208 sold to @yhuel

  3. #3
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    And you can find working actions here:

    http://www.tibiaibot.com/forum/showt...ys-amp-Actions

  4. #4
    iBot User Pacoo's Avatar
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Ok thank you i will test it soon

Posting Permissions

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