Signup Now
Results 1 to 6 of 6
  1. #1
    Free User
    Join Date
    Dec 2013
    Posts
    22
    Reputation
    10
    Rep Power
    0

    Ibot Actions to Windbot

    Hello,
    I am looking for few actions so that I will be able to make some scripts and move here

    1.
    PHP Code:
    local TIME = {FROM '9:58'TO '10:23'CURRENT time()}if (tosec(TIME.CURRENT) > tosec(TIME.FROM)) and (tosec(TIME.CURRENT) < tosec(TIME.TO)) then 
        setsettings
    ("Settings\\Actions\\List\\Auto Safe Reconnect\\Enabled","no")
    else
        
    setsettings("Settings\\Actions\\List\\Auto Safe Reconnect\\Enabled","yes"end 
    2.
    PHP Code:
    if (openmenuname == "Message of the Day"thenkeyevent(0xDwait(1000)  end 

  2. #2
    Free User
    Join Date
    Dec 2013
    Posts
    22
    Reputation
    10
    Rep Power
    0
    bumpzor

  3. #3
    Banned
    Join Date
    Dec 2013
    Location
    Porto Alegre - RS
    Posts
    524
    Reputation
    61
    Rep Power
    0
    For the second i think that is not necessary, until you choose this option in settings

    This image is hosted on a possibly dangerous website (http://puu.sh/5Z32y.png). Please consider reuploading it on Imgur.com.


  4. #4
    Banned
    Join Date
    Dec 2013
    Location
    Porto Alegre - RS
    Posts
    524
    Reputation
    61
    Rep Power
    0
    For the first, i don't know if its implemented yet but you can do conditions in SafeReconnect script

    Code:
    if SafeReconnect then
    CODETODO
    else
    CODETODOWITHNOSAFERECONNECT
    end
    Then the persistent will be

    local TIME = {FROM = '9:58', TO = '10:23', CURRENT = time()}
    if (
    tosec(TIME.CURRENT) > tosec(TIME.FROM)) and (tosec(TIME.CURRENT) < tosec(TIME.TO)) then
    SafeReconnect = false

    else
    SafeReconnect = true
    end

  5. #5
    Free User
    Join Date
    Dec 2013
    Posts
    22
    Reputation
    10
    Rep Power
    0
    thanks, So I will need to do 2 persistents?

  6. #6
    Banned
    Join Date
    Dec 2013
    Location
    Porto Alegre - RS
    Posts
    524
    Reputation
    61
    Rep Power
    0
    Not necessary you can put whole 2 in one.. but the LOCAL TIME... first instead if SafeReconnect

 

 

Posting Permissions

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