Results 1 to 5 of 5

Thread: Count Standtime?

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5

    Count Standtime?

    Hello,

    Well, today one of my char get traped with Fire Bombs, and cant move cuz when target one monster, he dont pass on fields..

    I made one script, but its just one idea, cuz dont work..:

    PHP Code:
    local time 60000
    local timex 
    tosec('15')
    if 
    standtime time then
    local correnttime 
    tosec(time()) 
    settargeting('no')
    wait(1000)
    if 
    correnttime timex then
    settargeting
    ('yes')
    wait(1000)
    end
    end 
    Anyone have one script to make it?

    -if standtome > x
    -set target off
    -get time
    -count 15 seconds
    -set target on
    -end

  2. #2
    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
    PHP Code:
    if (standtime >= 60000then
        settargeting
    ("no")
        
    stopattack()
        if 
    not (targetingthen
            wait
    (10000,15000)
            
    settargeting("yes")
        
    end
    end 

  3. #3
    iBot User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by soder View Post
    PHP Code:
    if (standtime >= 60000then
        settargeting
    ("no")
        
    stopattack()
        if 
    not (targetingthen
            wait
    (10000,15000)
            
    settargeting("yes")
        
    end
    end 
    soder, thanks for you answer but i need one check time, cuz when my char get traped by bombs, for he leaves, i need set target off and keep cavebot on, for at least 15 seconds...

  4. #4
    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
    That's what the wait() function does, it wait's 10-15 seconds before enabling targeting again.

  5. #5
    iBot User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    Aw, i'm sorry ^^

    I'll test. 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
  •