Results 1 to 4 of 4

Thread: Please a decent action of anti-ks :)

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

    Please a decent action of anti-ks :)

    this is a horrible action, who understand quite please, help to a very good action anti-ks

    PHP Code:
    local r -- Range
    local safelist = {'Bubble''Eternal Oblivion'} -- The bot WILL KS this playersAdd more to this if you want
    table.insert(safelistname) -- Do not edit it
    local ppos = {} 
    local pinfo _getcreatures("psf"
    local cinfo _getcreatures("msf"

    for 
    1pinfo.count do 
        
    local ab=a-
        
    if not table.find(safelistpinfo[ab].namethen 
            table
    .insert(ppos, {pinfo[ab].xpinfo[ab].y}) 
        
    end 
    end 

    for 1cinfo.count do 
        
    local ignore false 
        local bb
    =b-
        
    if cinfo[bb].id ~= target.id then 
            
    for 1#ppos do 
                
    local difxdify ppos[i].cinfo[bb].xppos[i].cinfo[bb].
                
    if math.abs(difx) <= and math.abs(dify) <= r then 
                    ignore 
    true 
                    
    if cinfo[bb].ignored == false then 
                        ignorecreature
    (cinfo[bb].id,true
                        
    stopattack() 
                    
    end 
                    
    break 
                
    end 
            end 
        end 
        
    if ignore == false and cinfo[bb].ignored == true then 
            ignorecreature
    (cinfo[bb].idtrue
            
    stopattack() 
        
    end 
    end 
    if target.id ~= 0 then 
        
    if target.ignored then 
            stopattack
    () 
        
    end 
    end 

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    PHP Code:
    CREATURES = {"Crocodile","Tortoise","Demon","Dragon"}


    for 
    1#CREATURES do
        
    if (paround(7,false) > 0then
            
    if (getsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe") == "no"then
                setsettings
    ("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe","yes")
            
    end
        
    elseif (paround(7,false) == 0then
            
    if (getsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe") == "yes"then
                setsettings
    ("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe","no")
            
    end
        end
    end 

  3. #3
    Normal User hiraansm's Avatar
    Join Date
    Oct 2012
    Posts
    700
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    32
    Rep Power
    6
    Apenas coloque no targeting,
    Must Attack Me => Yes.
    Assim você só atacara se o bixo for "pra cima"
    Se o bixo não for pra cima, (estara atacando outra pessoa) o bot não atacara.

  4. #4
    Normal User d3nnis's Avatar
    Join Date
    Jun 2012
    Location
    Germany
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    Quote Originally Posted by soder View Post
    PHP Code:
    CREATURES = {"Crocodile","Tortoise","Demon","Dragon"}


    for 
    1#CREATURES do
        
    if (paround(7,false) > 0then
            
    if (getsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe") == "no"then
                setsettings
    ("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe","yes")
            
    end
        
    elseif (paround(7,false) == 0then
            
    if (getsettings("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe") == "yes"then
                setsettings
    ("Settings\\Targeting\\Monsters\\"..CREATURES[i].."\\MustAttackMe","no")
            
    end
        end
    end 
    If I turn on this script I get errors in debug console....

    Code:
    21:31 : CaveBot:LuaControl:getsettings - System.Xml.XPath.XPathException: 'Settings/Targeting/Monsters/Energy Elemental/MustAttackMe' ist ein ungültiger Token.
       bei MS.Internal.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion)
       bei System.Xml.XPath.XPathExpression.Compile(String xpath, IXmlNamespaceResolver nsResolver)
       bei System.Xml.XPath.XPathNavigator.Select(String xpath)
       bei System.Xml.XmlNode.SelectNodes(String xpath)
       bei ARQ=.Yxw=.HR0=(String Hh0=)

Posting Permissions

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