Results 1 to 6 of 6

Thread: alert if vip online

  1. #1
    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

    alert if vip online

    Is it possible on iBot? I know it was not on NeoBot tho.

    Regards,
    Soder.

  2. #2
    Normal User ScriptWork's Avatar
    Join Date
    Jul 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    I wanna it too .
    If someone has it , tell us .

  3. #3
    iBot User
    Join Date
    Feb 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Yeah, that's a good thing

  4. #4
    Normal User Moe's Avatar
    Join Date
    Mar 2012
    Location
    Halifax, Canada
    Posts
    491
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    90
    Rep Power
    5
    Yes, it is possible.

    -Moe

  5. #5
    Normal User sirmate's Avatar
    Join Date
    Mar 2012
    Location
    Poland
    Posts
    176
    Mentioned
    2 Post(s)
    Tagged
    3 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    105
    Rep Power
    6
    Should be working. Although there is small bug in getnewmessages function, but Jonatas is already aware of it and it will be fixed in upcoming update.

    Code:
    local PLAYER_NAMES = {"PLAYER NAME", "PLAYER NAME"}
    
    local CHANNEL_MESSAGES = getnewmessages("Server Log")
    local CHANNEL_MESSAGES_COUNT = CHANNEL_MESSAGES.count - 1
    
    for INDEX = 0, CHANNEL_MESSAGES_COUNT do
        if (CHANNEL_MESSAGES[CHANNEL_MESSAGES_COUNT - INDEX].type == 18) then
            if (table.find(PLAYER_NAMES, string.match(string.sub(CHANNEL_MESSAGES[CHANNEL_MESSAGES_COUNT - INDEX].text, 7), "(.+) has logged in."))) then
                for _ = 1, 4 do
                    playsound("alert.wav") wait(1000, 1500)
                end
            end
        end 
    end
    (๏̯͡๏ )

  6. #6
    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
    Quote Originally Posted by sirmate View Post
    Should be working. Although there is small bug in getnewmessages function, but Jonatas is already aware of it and it will be fixed in upcoming update.

    Code:
    local PLAYER_NAMES = {"PLAYER NAME", "PLAYER NAME"}
    
    local CHANNEL_MESSAGES = getnewmessages("Server Log")
    local CHANNEL_MESSAGES_COUNT = CHANNEL_MESSAGES.count - 1
    
    for INDEX = 0, CHANNEL_MESSAGES_COUNT do
        if (CHANNEL_MESSAGES[CHANNEL_MESSAGES_COUNT - INDEX].type == 18) then
            if (table.find(PLAYER_NAMES, string.match(string.sub(CHANNEL_MESSAGES[CHANNEL_MESSAGES_COUNT - INDEX].text, 7), "(.+) has logged in."))) then
                for _ = 1, 4 do
                    playsound("alert.wav") wait(1000, 1500)
                end
            end
        end 
    end
    You sir, are a god! It's working like a charm! Thanks alot!

Posting Permissions

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