Results 1 to 3 of 3

Thread: Help - Attack PK's

  1. #1
    Normal User
    Join Date
    May 2012
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    15
    Rep Power
    5

    Help - Attack PK's

    I need an action to attack anyone that attacks me if it is possible

  2. #2
    Normal User mistgun's Avatar
    Join Date
    Nov 2012
    Location
    LDZ
    Posts
    333
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    41
    Rep Power
    5
    Try this:
    Code:
    local player = getcreatures("ps") 
    
    if player.isattackme and target.name ~= player.name then 
    attack(player.name) 
    end
    LATEST FREE AND PAID SCRIPTS

    Ghostland: EK Coryms Cave: EK
    Peninsula Tomb: EK, MS/ED Mount Sternum: EK
    Dwarf City: EK Nightstalkers Mountain: ED, MS

  3. #3
    Normal User
    Join Date
    Jun 2013
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    10 Post(s)
    Reputation
    12
    Rep Power
    4
    Quote Originally Posted by mistgun View Post
    Try this:
    Code:
    local player = getcreatures("ps") 
    
    if player.isattackme and target.name ~= player.name then 
    attack(player.name) 
    end
    Anyone try this?? It works??

Posting Permissions

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