Results 1 to 2 of 2

Thread: If under Atk then Atk back

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

    If under Atk then Atk back

    Hello Hello :P

    Well I took this script from the br forum
    Work semi good , but still do the job
    I only need one more thing in this script ,
    like when I click on the bot , options , and Pause Bot
    this script put everything "on"
    so I want if the bot it on "pause bot"
    then the try dont do anything
    here the script...
    PHP Code:
    --Script Made by Nosekim
    --Attack PK

    local SafeList 
    = {"Uncle Barry""Brabo""Lord'Paulistinha"}
    local UseRune false --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-do
       for 
    k=3,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(ptablepgot[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
    (WhatRuneptable[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 

  2. #2
    Normal User
    Join Date
    Sep 2012
    Posts
    169
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    13
    Rep Power
    5
    ha yeah and notice . did I should alsos change thi part
    PHP Code:
    local msgs getmessages("Server Log"
    for something like
    PHP Code:
    local msgs getnewmessages("Server Log"
    for cpu usage or anything like this , saw it in forum long time ago xD

Posting Permissions

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