Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Action for close client in X time

  1. #1
    iBot User
    Join Date
    Jun 2012
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    24
    Rep Power
    5

    Action for close client in X time

    Hello guys,
    today I was thinking for a action thats logout or close my tibia client if its in pz and time of my cumputer is between 3:30 to 4:30.
    Is that possible? It gonna help me so much. to avoid deleted

  2. #2
    iScripter Eli's Avatar
    Join Date
    Mar 2012
    Posts
    3,764
    Mentioned
    492 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    956 Post(s)
    Reputation
    586
    Rep Power
    10
    Lua Code:
     if time() > "3:30" and time() < "4:30" and pzone then
               closetibia()
            end


    Try it should work

  3. #3
    iBot User
    Join Date
    Jun 2012
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    24
    Rep Power
    5
    Thank you Eli, I'll test it today, and see if It works!

  4. #4
    iBot User
    Join Date
    Oct 2013
    Location
    Sweden
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4
    Is there anyway to get your char to hunt for 6 hours, then logout for 6 hours, then login to go to the offline trainers? (Axe for example)

  5. #5
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    Quote Originally Posted by Difenbaker View Post
    Is there anyway to get your char to hunt for 6 hours, then logout for 6 hours, then login to go to the offline trainers? (Axe for example)
    why not just have it go straight to the training statues after 6 hours? why log out for 6 hours first

  6. #6
    iBot User
    Join Date
    Oct 2013
    Location
    Sweden
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by pink_panther View Post
    why not just have it go straight to the training statues after 6 hours? why log out for 6 hours first
    because then I would only train for 6 hours instead of 12 in the end, since I only want to hunt for 6 hours a day tops (even when I'm not there haha)

    Of course, if there's a way to have my char offline for 18 hours then hunt for 6 and then straight to the training groud that be better!
    Last edited by Difenbaker; 04-04-2014 at 03:06 AM.

  7. #7
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    Lua Code:
    timehunt > "06:00:00"


    should help you

  8. #8
    iBot User
    Join Date
    Oct 2013
    Location
    Sweden
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by shanp View Post
    Lua Code:
    timehunt > "06:00:00"


    should help you

    Thanks, do I just add it in actions? (I'm really new with bots haha)

  9. #9
    iBot User
    Join Date
    Oct 2013
    Location
    Sweden
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    4
    I'll try to explain what I want in detail so you might understand what I'm searching for~

    I'm heading out for a vacation, I want the bot to still be active with while I'm gone, continue to hunt for 6 hours everyday, then logout at the training center (Axe), then stay offline for another 18 hours and then come back to hunt for 6 hours and then repeat the whole thing until I'm back, however if the character dies, I want the bot to paus and not login until I'm back.

    Sorry if I was unclear before, but if this is possible and someone is able to help me out, I'd really appreciate it!

    Gave you +rep for the help atleast Shanp!

  10. #10
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,482
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    236 Post(s)
    Reputation
    342
    Rep Power
    10
    Quote Originally Posted by Difenbaker View Post
    I'll try to explain what I want in detail so you might understand what I'm searching for~

    I'm heading out for a vacation, I want the bot to still be active with while I'm gone, continue to hunt for 6 hours everyday, then logout at the training center (Axe), then stay offline for another 18 hours and then come back to hunt for 6 hours and then repeat the whole thing until I'm back, however if the character dies, I want the bot to paus and not login until I'm back.

    Sorry if I was unclear before, but if this is possible and someone is able to help me out, I'd really appreciate it!

    Gave you +rep for the help atleast Shanp!
    First thing, you need to add a checker in your hunting spot:

    Lua Code:
     
    local time1 = "09:30"
    local time2 = "10:30"
     
    if (time() > time1 and time() < time2) then gotolabel("leave") end



    Then near trainers:

    Lua Code:
     
    local time1 = "09:30"
    local time2 = "10:30"
     
    if (time() > time1 and time() < time2) then gotolabel("train") end
     
    setsettings("Settings\\Actions\\List\\offreconnect\\Enabled", "yes")



    Action "offreconnect":

    Lua Code:
     
    local time1 = "09:30"
    local time2 = "03:30"
     
    if (time() > time1 and time() < time2) then
     
     
    setsettings("Settings\\Actions\\List\\Reconnect\\Enabled", "no") 
    end


    Action "Reconnect":

    Lua Code:
     
    reconnect()


    Action to close tibia if dead:

    Lua Code:
     
    local TempleNpcs = {"Maealil", "Alia", "Isimov", "Quentin", "Yberius", "Rahkem", "Kasmir", "Amanda", "Prezil", "Tyrias", "Brewster", "Kjesse", "Lorietta"} -- Names of Temple Npcs
     
     for i=1, #TempleNpcs do
     if maround(10, false, TempleNpcs[i]) >= 1 then
     closetibia()
     end
     end



    Add this action once you login back:

    Lua Code:
     
    setsettings("Settings\\Actions\\List\\offreconnect\\Enabled", "no")
    Last edited by Gryllz; 04-04-2014 at 07:19 AM.

Posting Permissions

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