Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Message friend if player on screen / player attack

  1. #1
    Normal User
    Join Date
    Dec 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Talking Message friend if player on screen / player attack

    Hi,

    as the topic says, I need something that tells a friend with a private message when a player enter screen or attack me.

    EDIT: Would be great if it is possible to tell the level, name and vocation aswell!

    Example: "PLAYER", "LEVEL", "VOCATION" is on screen/ is attacking me.

    ~haxx0r
    Last edited by haxx0r; 01-16-2013 at 08:53 AM.

  2. #2
    Normal User
    Join Date
    Dec 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    BUMP! Help me please!

  3. #3
    iBot User debugerror's Avatar
    Join Date
    Mar 2012
    Location
    Australia
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    20
    Rep Power
    6
    I'd like this too bump

  4. #4
    Focus Group Gryllz's Avatar
    Join Date
    Jun 2012
    Location
    Dubai
    Posts
    3,505
    Mentioned
    89 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    241 Post(s)
    Reputation
    353
    Rep Power
    10
    Would be helpful for me as well.

  5. #5
    Normal User
    Join Date
    Dec 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    BUMP! Anyone???!!!

  6. #6
    Normal User
    Join Date
    Dec 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Buuuuuuuuuuuump!!!!!!!!

  7. #7
    iBot User pedrobr's Avatar
    Join Date
    Jun 2012
    Posts
    220
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    16 Post(s)
    Reputation
    30
    Rep Power
    6
    Look.

    Only remember of change of FulanoX to friend's name.
    No need open the friend's channel.
    This action open automatically his channel.


    PHP Code:
    if underattack('p'then
    say
    ('*FulanoX* PK ATTACK HELP ME')
    end 


    Sorry for my english. I'm making english class.
    Anyway, I have helped.
    Last edited by pedrobr; 01-18-2013 at 09:56 AM.

  8. #8
    Normal User
    Join Date
    May 2012
    Location
    England
    Posts
    160
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    6
    PHP Code:
    friendName "XtrmJosh"

    if paround() >= 1 then
        say
    ('*' .. friendName .. '* There is a player on my screen!')
    end 
    Should message a friend if theres a player on screen, you might wanna disable this for depositing.

  9. #9
    Normal User
    Join Date
    Dec 2012
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Thank you both very much, but is it possible to get the player who enter the screens name?

  10. #10
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,670
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    10
    Quote Originally Posted by haxx0r View Post
    Thank you both very much, but is it possible to get the player who enter the screens name?
    Here you got, but unfortunately I dont know how to make it write all names so it will only write one name.
    PHP Code:
    local RECEIVER "soder"

    local PLAYERS = {}
    if (
    paround() > 0then
        
    for CREATURE in Creature.GetAll("ps"false) do
            if (
    CREATURE:isValid() and CREATURE:isPlayer()) then
                table
    .insert(PLAYERS,CREATURE:Name())
            
    end
        end
        
        say
    ("*" .. RECEIVER .. "* " .. #PLAYERS .. " players on screen: " .. unpack(PLAYERS))
    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
  •