Results 1 to 6 of 6

Thread: [ACTION] search for an ACTION that attack a PK that attacked my CHAR

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

    [ACTION] search for an ACTION that attack a PK that attacked my CHAR

    search for an ACTION that attack a PK that attacked my CHAR!!!

  2. #2
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7

  3. #3
    Normal User
    Join Date
    May 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by isaacbf View Post
    LOL...but I can not find. Do you know? I could spend the ACTION?
    PLEASE!!!

  4. #4
    Moderator Furieri's Avatar
    Join Date
    Jun 2012
    Location
    Vitoria - ES / Brasil
    Posts
    792
    Mentioned
    62 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    199 Post(s)
    Reputation
    158
    Rep Power
    7
    by Nosekim, please next time search harder.
    Lua Code:
     
    --Script Made by Nosekim
    --Attack PK
     
    local SafeList = {"Uncle Barry", "Brabo", "Lord'Paulistinha"}
    local UseRune = true --set true or false
    local WhatRune = "sudden death rune"
     
     
    --do not change below
     
    local pgot = getcreatures("ps")
    local ptable = {}
    local pqtd = pgot.count 
    local msgs = getmessages("Server Log")
    local qtd = msgs.count-1
     
     
    for i=0,pqtd-1 do
       for k=3,5 do
            if msgs[qtd].text:find("You lose (%d+) hitpoints due to an attack by "..pgot[i].name..".") and pgot[i].skull == k then
               table.insert(ptable, pgot[i].name)
            end
       end
    end
     
    if #ptable > 0 and not table.find(SafeList, ptable[1]) then
       attack(ptable[1])
       settargeting("off")
       setcavebot("off")
         if UseRune == true and itemcount(WhatRune) > 0 then
            useitemontarget(WhatRune, ptable[1])
            wait(2000)
         end
    else
    settargeting("on")
    setcavebot("on")
    end

  5. #5
    Normal User
    Join Date
    May 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by isaacbf View Post
    by Nosekim, please next time search harder.
    Lua Code:
     
    --Script Made by Nosekim
    --Attack PK
     
    local SafeList = {"Uncle Barry", "Brabo", "Lord'Paulistinha"}
    local UseRune = true --set true or false
    local WhatRune = "sudden death rune"
     
     
    --do not change below
     
    local pgot = getcreatures("ps")
    local ptable = {}
    local pqtd = pgot.count 
    local msgs = getmessages("Server Log")
    local qtd = msgs.count-1
     
     
    for i=0,pqtd-1 do
       for k=3,5 do
            if msgs[qtd].text:find("You lose (%d+) hitpoints due to an attack by "..pgot[i].name..".") and pgot[i].skull == k then
               table.insert(ptable, pgot[i].name)
            end
       end
    end
     
    if #ptable > 0 and not table.find(SafeList, ptable[1]) then
       attack(ptable[1])
       settargeting("off")
       setcavebot("off")
         if UseRune == true and itemcount(WhatRune) > 0 then
            useitemontarget(WhatRune, ptable[1])
            wait(2000)
         end
    else
    settargeting("on")
    setcavebot("on")
    end

    thank you so much!!!
    s2
    =*
    Now I will test and then give a REP + +

  6. #6
    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
    Here is another easy one

    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

Posting Permissions

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