Results 1 to 4 of 4

Thread: action x horas x waypoint

  1. #1
    Normal User thuco's Avatar
    Join Date
    Feb 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    action x horas x waypoint

    preciso de ajuda para essa action ,
    alguem poderia converter para ibot



    if(tosec($os.time) >= tosec("20:30:00") && tosec($os.time) <= tosec("20:35:00")){ gotolabel("x"); }

  2. #2
    Banned
    Join Date
    Jun 2012
    Location
    Ceará
    Posts
    2,114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    81
    Rep Power
    0
    Aquela que te passei funciona cara, você que não soube usar, eu testei antes de falar cara.
    Code:
    if (tosec("os.time") >= tosec("20:30:00") and tosec("os.time") <= tosec("20:35:00")) then
    	gotolabel("x") else
    	gotolabel("y")
    end

  3. #3
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    Quote Originally Posted by thuco View Post
    preciso de ajuda para essa action ,
    alguem poderia converter para ibot



    if(tosec($os.time) >= tosec("20:30:00") && tosec($os.time) <= tosec("20:35:00")){ gotolabel("x"); }
    PHP Code:
    -- [ by Sayild ] --

    local hourToGo '20:30'
    local sec tosec(hourToGo)
    local actTime tosec(time())

    if 
    actTime => sec then
        gotolabel
    ('x')
            
    updateworld()
    end 

  4. #4
    Normal User thuco's Avatar
    Join Date
    Feb 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Opa, Agradeço ambas as partes

Posting Permissions

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