XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 3 of 3

Thread: if X monster on screen play alarm

  1. #1
    secret121's Avatar
    Join Date
    Apr 2013
    Posts
    130
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    if X monster on screen play alarm

    need a script for EX: if orc warlord on screen play alarm

    i tried searching with no luck anyone have such a thing?

  2. #2
    Senior Member
    Join Date
    Sep 2012
    Posts
    1,070
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    @secret121
    This was made to check for players, but it works on any "creature" name.

    Code:
    local PlayerList = {"Orc Warlord","Demon","Kharsek"}
    Module.New('player alert', function(module)
    local player = Self.GetSpectators(true)
        for i =1, #player do
            if table.contains(PlayerList, player[i]:Name()) then
                alert()
                module:Delay(2000)
            end
        end
    end)

  3. #3
    secret121's Avatar
    Join Date
    Apr 2013
    Posts
    130
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    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
  •