Results 1 to 6 of 6

Thread: Time based variable and opening backpacks

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

    Time based variable and opening backpacks

    Has Ibot some function which checks actual time? (hour, minutes)
    I want to make function which will check time before server save and if it is less than 5minutes it will go to specific label and wait there.

    Second task is it possible yet to open the same backpacks with specific number like it was in neobot?
    I mean sth like
    Code:
    openitem("Brown Backpack", main bp, true,2)
    openitem("Brown Backpack", main bp, true,3)
    It have to open second Brown Backpack inside main bp in separate window and then open third Brown Backpack inside main bp in separate window.

  2. #2
    Normal User
    Join Date
    Apr 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Yes, i have this problem too, but jonathan working
    Last edited by refugin; 05-20-2012 at 03:50 PM.

  3. #3
    Normal User Heardy's Avatar
    Join Date
    May 2012
    Posts
    136
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    26
    Rep Power
    5
    PHP Code:
    auto(100)
    foreach 
    newmessage m do
        if (
    m.type == MSG_RED or MSG_STATUSLOG) and (m.content == "Server is saving game in 3 minutes. Please log out.") and maround() == 0 then
           gotolabel
    ('LABEL_NAME')
       
    end
    end 
    That's what it used to be on Neobot, I'm not sure if it'll work with iBot at the moment, I don't think it will but there's the code anyway

    I'm not sure about the backpacks, I haven't heard anything about numbered backpacks yet.

  4. #4
    iBot User
    Join Date
    Apr 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    It's good idead Heardy but u have to put in persistent actions.
    I have to put this action inside cavebot cos it can take longer than 5 minutes to go back to pz.
    In neo I was using sth like this
    Code:
    auto(100) dontlist() if os.date('%H:%M') >= '09:50' and os.date('%H:%M') <= '10:00' and depo == false and $posz == 7 then gotolabel('save') end

  5. #5
    iBot User
    Join Date
    Apr 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Is it now possible?

  6. #6
    iBot User
    Join Date
    Apr 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    bump bump bump

Tags for this Thread

Posting Permissions

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