Results 1 to 6 of 6

Thread: Need Action~ Depois de X horas logado, go log out

  1. #1
    Normal User
    Join Date
    Mar 2013
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Need Action~ Depois de X horas logado, go log out

    Preciso de uma action pra logar out depois de 4 horas online.

  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Code:
    if System.TimeMilliseconds() > 14400000 then
    	if not battlesigned then
    		logout()
    		wait(200, 400)
    	else
    		closetibia()
    		wait(200, 400)
    	end
    end
    Last edited by Raph_; 04-16-2013 at 01:36 AM.

  3. #3
    Normal User
    Join Date
    Mar 2013
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    safe log out? or just close tibia?

  4. #4
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Code:
    --[[ INIT START ]]--
    	local _TIME = 2 -- Change to value that you want, like 1 = 1h, 2 = 2h.
    --[[ INIT END ]]--
    
    local CHECK_TIME = (_TIME * 60 * 60 * 1000)
    if System.TimeMilliseconds() > CHECK_TIME then
    	if maround() == 0 then
    		if not battlesigned then
    			logout()
    			wait(200, 400)
    		else
    			closetibia()
    			wait(200, 400)
    		end
    	end
    end

  5. #5
    Normal User
    Join Date
    Mar 2013
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    a segunda action ta fechando o tibia com batle e tudo na mesma hora q ativo ela, só espera mata os bixo e da close tibia. A primeira eu n testei ainda

  6. #6
    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
    Tópico movido de Scripts para Suporte.

    Equipe iBot.

Posting Permissions

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