Results 1 to 4 of 4

Thread: Attack pk if he attack me

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5

    Attack pk if he attack me

    Anyone have this? i need so much (:

  2. #2
    Premium User Eldar's Avatar
    Join Date
    Apr 2013
    Location
    Poland
    Posts
    1,335
    Mentioned
    37 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    62 Post(s)
    Reputation
    159
    Rep Power
    7
    Lua Code:
    local players = getcreatures("ps")
    local count = players.count - 1
     
    for i = 0, count do
        if players[i].isplayerattack and target.name ~= players[i].name then
            attack(players[i].name)
        end
    end

  3. #3
    iBot User
    Join Date
    May 2012
    Posts
    49
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Eldar View Post
    Lua Code:
    local players = getcreatures("ps")
    local count = players.count - 1
     
    for i = 0, count do
        if players[i].isplayerattack and target.name ~= players[i].name then
            attack(players[i].name)
        end
    end
    Thanks so much. i'll test!

  4. #4
    iBot User
    Join Date
    May 2013
    Posts
    35
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    9 Post(s)
    Reputation
    10
    Rep Power
    4
    Okay that worked fine. but is it possible to get it to pause the cavebot so it doesnt keep hunting?

Posting Permissions

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