Results 1 to 6 of 6

Thread: What's wrong with this action ?

  1. #1
    Normal User mattos123's Avatar
    Join Date
    Sep 2012
    Location
    Brasil
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    What's wrong with this action ?

    local reco1 = getsettings("Settings\\Actions\\List\\Reco1\\Enabled")
    local reco2 = getsettings("Settings\\Actions\\List\\Reco2\\Enabled")
    local changer = 2520 -- Time to change account (stamina math = 15*60)

    if ((stamina <= changer) and (reco1 == "yes") and (pzone == true) and (connected == true))
    then setsettings("Settings\\Actions\\List\\Reco1\\Enabled", "no")
    wait(300)
    setcavebot("no")
    wait(300)
    disconnect()
    wait(300)
    setsettings("Settings\\Actions\\List\\Reco2\\Enabled", "yes")
    wait(300)
    setcavebot("yes")
    end

    if ((stamina <= changer) and (reco2 == "yes") and (pzone == true) and (connected == true)
    then setsettings("Settings\\Actions\\List\\Reco2\\Enabled", "no")
    wait(300)
    setcavebot("no")
    wait(300)
    disconnect()
    wait(300)
    setsettings("Settings\\Actions\\List\\Reco1\\Enabled", "yes")
    wait(300)
    setcavebot("yes")
    end
    Se ontem fosse anti-ontem, e hoje fosse ontem, hoje seria oque ?





    ~O amanhã


  2. #2
    Normal User mattos123's Avatar
    Join Date
    Sep 2012
    Location
    Brasil
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    bump

    i need help D:
    Se ontem fosse anti-ontem, e hoje fosse ontem, hoje seria oque ?





    ~O amanhã


  3. #3
    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
    bro, 15 x 60 = 900.

  4. #4
    Normal User mattos123's Avatar
    Join Date
    Sep 2012
    Location
    Brasil
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    i know, i was just testing, that has nothing to do with the bug in the action =[
    Se ontem fosse anti-ontem, e hoje fosse ontem, hoje seria oque ?





    ~O amanhã


  5. #5
    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
    anyway it's logout() not disconnect()

  6. #6
    Normal User mattos123's Avatar
    Join Date
    Sep 2012
    Location
    Brasil
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    never mind, got it fixed, thx for the help Raph_
    Last edited by mattos123; 05-01-2013 at 11:55 AM.
    Se ontem fosse anti-ontem, e hoje fosse ontem, hoje seria oque ?





    ~O amanhã


Posting Permissions

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