XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 9 of 9

Thread: Alarm if default message

  1. #1

    Join Date
    Jun 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Alarm if default message

    it would be very useful to have alarm when someone writes in the local chat

  2. #2
    Senior Member Bushu's Avatar
    Join Date
    Sep 2011
    Location
    Mexico of the Europe
    Posts
    879
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    you'd have to look at your pc every time the bot refill ;p
    It will be better if you set alarm 'player on screen'


    Dziś zrobię coś,
    czego innym sie nie chce.
    Jutro zrobie coś,
    czego inni nie będą w stanie.

  3. #3

    Join Date
    Jun 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont use refiller and because there are always people botting here the alarm would go off all the time, but sometimes someone comes and ask stuff like "botter?" etc and this must be a pretty simple thing to add anyway

  4. #4

    Join Date
    Jun 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    bump...!

  5. #5
    l4z's Avatar
    Join Date
    Oct 2015
    Posts
    133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    indeed bump!
    You wont set alarm player on screen when for example is 10 botters on same cave.
    Thats why would be nice to get script to alarm when msg on default.
    Thanks!

  6. #6

    Join Date
    Jan 2014
    Location
    Poland kkkkk
    Posts
    106
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    lua code:
    LocalSpeechProxy.OnReceive('proxy', function(proxy, mtype, speaker, level, text)
    if text then
    if speaker ~= Self.Name() then
    alert()
    end
    end

    end)
    probably this is what you guys are looking for

  7. #7
    l4z's Avatar
    Join Date
    Oct 2015
    Posts
    133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    xto94 dzieki
    Is there any option to ignore casting spells from players to this script?
    Last edited by l4z; 12-02-2015 at 06:05 PM.

  8. #8
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,989
    Mentioned
    223 Post(s)
    Tagged
    3 Thread(s)
    I'd disable the alarms if there's more than one other player on the screen or if there's an npc on screen as that likely means that we're inside a town:
    lua code:

    local function npcsOnScreen()
    local count = 0
    for _, _ in Creature.iNpcs(7) do
    count = count + 1
    end
    return count
    end

    local function playersOnScreen()
    local count = 0
    for name, _ in Creature.iPlayers(7) do
    if name ~= Self.Name() then
    count = count + 1
    end
    end
    return count
    end

    LocalSpeechProxy.OnReceive("Chat Alarm", function(_, msgType, speaker, level, text)
    if msgType == "say" and speaker ~= Self.Name() and npcsOnScreen() == 0 and playersOnScreen() < 2 then
    alert()
    end
    end)


    Spellcasts are disabled by checking mtype.

  9. #9

    Join Date
    Jan 2017
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its possible to get an alarm when a friend send a private message?

Posting Permissions

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