Results 1 to 4 of 4

Thread: Action for don't atk other monster

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

    Action for don't atk other monster

    hello, is there any posibility to create action that bot won't attack monsters if someone is on screen? i mean i want it becuase i do not want to attack not my monsters... option "must attack me" is useless.

  2. #2
    Normal User
    Join Date
    Apr 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    try this, i didnt test it but it should work


    PHP Code:

    if paround(5)~= 0 then

       setsettings
    ("Settings\\Targeting\\Enable","no")

    elseif 
    paround(5)==0 then 

       setsettings
    ("Settings\\Targeting\\Enable","yes")

    end 

  3. #3
    Normal User Straxor's Avatar
    Join Date
    Sep 2012
    Location
    Sweden
    Posts
    430
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    46
    Rep Power
    5
    @guigoshivera samte thing both you text.

    PHP Code:
    if paround(5) > 0 then 

       setsettings
    ("Settings\\Targeting\\Enable","no"

    elseif 
    paround(5) <= 0 then  

       setsettings
    ("Settings\\Targeting\\Enable","yes"

    end 

    Name Vocation Level
    Banuta -1 RP 190
    Tempel of Equilibrium Chosens RP 180
    Hive Surface/Towers EK 170


  4. #4
    Normal User
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    221
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    58
    Rep Power
    5
    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-1
        
    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-1
        
    if cinfo[bb].id ~= target.id then
            
    for 1#ppos do
                
    local difxdify ppos[i].cinfo[bb].xppos[i].cinfo[bb].y
                
    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 

Posting Permissions

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