Results 1 to 5 of 5

Thread: Alert PK

  1. #1
    Normal User
    Join Date
    Nov 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Alert PK

    I need an alert if the pk is on the screen, its possible?

  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
    If you mean to check if there is skulled player on your screen try this:

    Lua Code:
    local SKULLS = {1, 3, 4, 5}
     
    for PLAYER in Creature.GetAll("ps") do
    	if table.find(SKULLS, PLAYER:Skull()) then
    		playsound("alert.wav")
    		flashclient()
    	end
    end

  3. #3
    Normal User
    Join Date
    Nov 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    i go test it.

  4. #4
    Normal User
    Join Date
    Nov 2013
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    i puttinf is lua or in action?

  5. #5
    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
    what? You need to add it in new action and you need SIRMATE.lua in iBot/library folder

Posting Permissions

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