Results 1 to 9 of 9

Thread: Action If time XX:XX Stop cavebot and logout

  1. #1
    Normal User
    Join Date
    May 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Action If time XX:XX Stop cavebot and logout

    I need a script to logout if time xx:xx or mana less than XX then
    stop cavebot and logout.

    tnhx

  2. #2
    Normal User
    Join Date
    Feb 2012
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    12
    Rep Power
    5
    PHP Code:
    local urtime "00:00:00"
    local urmana "mana potion"
    local lessmp 10

    if time() > urtime or itemcount(urmana) < lessmp then
     setcavebot
    ("off")
     if 
    maround() == 0 then
      closetibia
    ()
     
    end
    end 
    i can't test.

    if work rep+

    @edit: corrected by ropiderz
    Last edited by lelao22; 06-30-2012 at 08:57 PM.
    REP+ If I helped you

  3. #3
    iBot User shaggydoo's Avatar
    Join Date
    Jun 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Is it possible to make an action that goes to a certain waypoint, goes back to DP and logs out ther at a certain time? So i don't get logged out in the middle of a huge spawn.

  4. #4
    Normal User
    Join Date
    Feb 2012
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    12
    Rep Power
    5
    i did a action:

    local tempo = time()
    say(tempo)

    return 00:00:00

    confuse me in signs .

    @shaggydoo

    sure, no problems
    Last edited by lelao22; 06-30-2012 at 08:56 PM.
    REP+ If I helped you

  5. #5
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    if time() returns string then i dont think its possible to compare strings...

  6. #6
    Normal User
    Join Date
    Feb 2012
    Posts
    129
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    12
    Rep Power
    5
    PHP Code:
    local time2 time()
    local time3 "00:00:00"
    if time2 time3 then
    closetibia
    ()
    end 
    REP+ If I helped you

  7. #7
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Code:
    local time = {from = '06:00', to = '06:20'} -- Logout between these times, make sure it doesnt take longer to walk a lap in the cave than the time is.
    local current = tosec(time())
    
    if current > time.from or current < time.to+10 then
      setcavebot("off") 
        if maround() == 0 then 
            closetibia() 
        end
    end

  8. #8
    iBot User lele's Avatar
    Join Date
    Feb 2012
    Location
    Erechim - RS
    Posts
    426
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    20
    Rep Power
    5
    none of them works here.. :/

  9. #9
    Normal User Ragnight's Avatar
    Join Date
    Jul 2012
    Location
    Londrina -PR- Brazil
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    i Will test it aswell, if i have good answers from the actions i post it here ;0

    thanks!

Posting Permissions

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