Results 1 to 3 of 3

Thread: If x players online in vip list kill monsters around and logout!

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    Question If x players online in vip list kill monsters around and logout!

    Hello!
    I need a hotkey which will check how many players from vip list are logged in. If x players online in vip list, kill monsters around, lose pz and logout.

    I wait for decent answers,
    Moourt

  2. #2
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    PHP Code:
    local enemies = {"Name1""Name2""Name3""Name4"}
    local enemy_count_to_logout 6

    local 
    function vipsonline(...)
        
    local VIPs = {...}
        
    local amount 0

        
    for _v in ipairs(VIPs) do
            if 
    isviponline(vthen
                amount 
    amount 1
            end
        end
        
        
    return amount
    end

    if maround(8) == and vipsonline(unpack(enemies)) >= enemy_count_to_logout then
        setcavebot
    ("no")
        
    pausewalking(60000)
        
        while 
    battlesigned do
            
    wait(1000)
        
    end

        logout
    ()
    end 

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Quote Originally Posted by walukasz View Post
    PHP Code:
    local enemies = {"Name1""Name2""Name3""Name4"}
    local enemy_count_to_logout 6

    local 
    function vipsonline(...)
        
    local VIPs = {...}
        
    local amount 0

        
    for _v in ipairs(VIPs) do
            if 
    isviponline(vthen
                amount 
    amount 1
            end
        end
        
        
    return amount
    end

    if maround(8) == and vipsonline(unpack(enemies)) >= enemy_count_to_logout then
        setcavebot
    ("no")
        
    pausewalking(60000)
        
        while 
    battlesigned do
            
    wait(1000)
        
    end

        logout
    ()
    end 
    I have msged you via gg already. I will test it and feedback after here.
    Thanks for fast answer - I am really appreciative!

Posting Permissions

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