Results 1 to 7 of 7

Thread: Alert when skulled player on screen

  1. #1
    Normal User cowboy's Avatar
    Join Date
    May 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4

    Alert when skulled player on screen

    Hello.
    I need a script that will alert me if skulled player will appear on my screen. Not when a player attacks me, even when that player is just walking doing nothing, but he got a skull, i want to get alert.

    Thanks in advance!

  2. #2
    Normal User xavizus's Avatar
    Join Date
    Jun 2013
    Location
    Japan
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    18
    Rep Power
    4
    Not sure about this one, but I would think something like this:

    PHP Code:
    if(getcreatures('p').skull 0then
        playsound
    (string filename)
    end 
    0 = not skulled
    So every type of skull that exists will warn you. (Even yellow skull)

    Here's the ID's:

    1: Creature is yellow skulled.
    2: Creature is green skulled.
    3: Creature is white skulled.
    4: Creature is red skulled.
    5: Creature is black skulled.
    6: Creature is orange skulled.

  3. #3
    Normal User cowboy's Avatar
    Join Date
    May 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    thanks, but i tested it and for some reason it doesnt work : /
    any ideas why?
    of course i changed filename of playsound function

  4. #4
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    I'm gonna guess, and place money on, you didn't change "string filename" to a valid sound file.

  5. #5
    Normal User cowboy's Avatar
    Join Date
    May 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    Quote Originally Posted by cowboy View Post
    thanks, but i tested it and for some reason it doesnt work : /
    any ideas why?
    of course i changed filename of playsound function
    i will even quote myself for you. i did.

  6. #6
    Normal User cowboy's Avatar
    Join Date
    May 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    10
    Rep Power
    4
    bump! still havent found working one

  7. #7
    Normal User Nydaa's Avatar
    Join Date
    Jul 2012
    Location
    Europe
    Posts
    216
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    24
    Rep Power
    5
    PHP Code:
    if(getcreatures('p').skull 0then
        playsound
    (string filename)
    end 
    Try using:

    PHP Code:
    if(getcreatures('p').skull ~= 0then
        playsound
    (string filename)
    end 

Posting Permissions

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