Results 1 to 5 of 5

Thread: Reconnect for Ibot+

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

    Reconnect for Ibot+

    Code:
    --Use reconnecter
    local reconnecter = true
    
    --Account Details
    ACCNAME = "Account name"
    PASS = "Password"
    CHAR = "Name of character"
     
    --What backpacks to open
    local usemainbps = true
    local usesuppliebps = true
    local uselootbps = true
    local usegoldbps = true
     
    --Which backpacks to use
    local mainbp = (MainBPname)
    local suppliebp = (SupplyBPname)
    local lootbp = (LootBPname)
    local goldbp = (GoldBPname)
     
    while not connected do
    	connect(ACCNAME, PASS, CHAR)
    	wait(1500)
       reconnect()
       wait(1000,1500)
       updateworld()
    end
     
    local templenpcs = {"Azalea", "Alia", "Tyrias", "Brewster", "Rahkem", "Kasmir", "Amanda", "Isimov", "Yberius", "Maealil", "Quentin", "Lynda", "Lorietta", "Prezil", "Kjesse", "Asralius"}
    for i=1,#templenpcs do
       if maround(15, templenpcs[i]) > 0 then
          closetibia()
       end
    end
     
    if usemainbps then
       while windowcount(mainbp) == 0 do
          openitem(mainbp, 'back', true)
          wait(1000)
          resizewindows()
          wait(500, 800)
          updateworld()
       end
    end
     
    if usesuppliebps then
       while windowcount(suppliebp) == 0 do
          openitem(suppliebp, mainbp, true)
          wait(1000)
          resizewindows()
          wait(500, 800)
          updateworld()
       end
    end
     
    if uselootbps then
       while windowcount(lootbp) == 0 do
          openitem(lootbp, mainbp, true)
          wait(1000)
          resizewindows()
          wait(500, 800)
          updateworld()
       end
    end
     
    if usegoldbps then
       while windowcount(goldbp) == 0 do
          openitem(goldbp, mainbp, true)
          wait(1000)
          resizewindows()
          wait(500, 800)
          updateworld()
       end
    end
    
    selectclosestwpt()
    setcavebot('on')
    setlooting('on')
    settargeting('on')
     
    end

    TESTED!
    Last edited by rafek1241; 12-28-2014 at 07:41 AM.

  2. #2
    Normal User
    Join Date
    Nov 2014
    Location
    Poland - podlaskie
    Posts
    132
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    28 Post(s)
    Reputation
    47
    Rep Power
    3
    PHP Code:
    if not connected and (time() < '9:59:00' or time() > '10:25:00') and reconnecter then 
    function time() - that is string and dont working with >; <, ==, >= ; <=. You can remove this

    Code:
    (string) time()
    
    Return the current time.
    Jonatan must change it to int

  3. #3
    Moderator Drakke's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,898
    Mentioned
    216 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    390 Post(s)
    Reputation
    366
    Rep Power
    10
    selectclosestwpt() shouldnt be used here tbh, its kinda... Sketchy, if you just arrived to spawn for example, full supplies and everything it can pick the waypoint to leave spawn and blabla, then its just better to turn it off and then turn it on and it will continue from where you left off anyway

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Drakke View Post
    selectclosestwpt() shouldnt be used here tbh, its kinda... Sketchy, if you just arrived to spawn for example, full supplies and everything it can pick the waypoint to leave spawn and blabla, then its just better to turn it off and then turn it on and it will continue from where you left off anyway
    Yea that's why:

    Code:
    local templenpcs = {"Azalea", "Alia", "Tyrias", "Brewster", "Rahkem", "Kasmir", "Amanda", "Isimov", "Yberius", "Maealil", "Quentin", "Lynda", "Lorietta", "Prezil", "Kjesse", "Asralius"}
    for i=1,#templenpcs do
       if maround(15, templenpcs[i]) > 0 then
          closetibia()
       end
    end

  5. #5
    iBot User
    Join Date
    Oct 2012
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    how i sould use it
    coppy in action or where?

Posting Permissions

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