Results 1 to 4 of 4

Thread: [Request] FIGHT BACK!!!

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

    [Request] FIGHT BACK!!!

    Hi,

    I need an action to make me fight back. For example if a 12 pally is attacking my 70 knight. My Knight will set targeting and cavebot off and fight back and kill that pally!
    Afterwards he will set cavebot and targeting on again..

    Thanks in advance,

    Yours Bruun!

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

  3. #3
    iBot User
    Join Date
    May 2012
    Location
    Spain
    Posts
    213
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    15 Post(s)
    Reputation
    32
    Rep Power
    5
    credits to nosekim

    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])
       if getsettings("Settings\\CaveBot\\Enabled") == "yes" or getsettings("Settings\\Targeting\\Enabled") == "yes" then
       settargeting("off")
       setcavebot("off")
         if UseRune == true and itemcount(WhatRune) > 0 then
            useitemontarget(WhatRune, ptable[1])
            wait(2000)
         end
        end
    elseif #ptable == 0 and getsettings("Settings\\CaveBot\\Enabled") == 'no'
    or #ptable == 0 and getsettings("Settings\\Targeting\\Enabled") == 'no' then
    settargeting("yes")
    setcavebot("yes")
    end
    Regards, NWA
    Regards, NWA

  4. #4
    Normal User d01d40n's Avatar
    Join Date
    Jun 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    action work?

Posting Permissions

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