Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: [Anti-KS] Action

  1. #1
    Normal User wicholost's Avatar
    Join Date
    Jun 2012
    Location
    Jamaica, Chile
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5

    [Anti-KS] Action

    Hello there!

    Well this time ill release an action to Anti-KS. All credits to Raphael since he create this code and i just adapted it to ibot. Enjoy!

    v 0.3
    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 = {}
    do
        
    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
    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 
    Last edited by wicholost; 04-10-2013 at 12:05 PM.

  2. #2
    Normal User niszdani's Avatar
    Join Date
    Apr 2012
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    16
    Rep Power
    5
    I'll try , ty!

  3. #3
    Normal User Kaozlols's Avatar
    Join Date
    Jul 2012
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    hi there sorry again! ahaha is just to make sure i just insert it to the actions tab right? also if you have a safe exori hk or action it would help a lot

  4. #4
    Normal User wicholost's Avatar
    Join Date
    Jun 2012
    Location
    Jamaica, Chile
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    yeah it goes on action. about safe exori, check this http://www.tibiaibot.com/forum/showt...ght=safe+exori

  5. #5
    Normal User Kaozlols's Avatar
    Join Date
    Jul 2012
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thank you sir! for the one thousand time xD

  6. #6
    Normal User jesusz0r's Avatar
    Join Date
    Jun 2012
    Posts
    221
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    17
    Rep Power
    5
    Awesome, gonna test it now!

  7. #7
    Normal User Kaozlols's Avatar
    Join Date
    Jul 2012
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    hello D: well the page you gave me is currently not working :S i think he deleted all his actions. if you have it (the safe exori) could you post it here please?

  8. #8
    Normal User wicholost's Avatar
    Join Date
    Jun 2012
    Location
    Jamaica, Chile
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    Credits to Ropiderz

    PHP Code:
    local CAST_UTITO true
    local CAST_GRAN 
    true
    local CONSIDER_PLAYERS 
    true
    local SAFE_LIST 
    = {'Ropiderz''Jonatas'}
    local CONSIDER_CREATURES = {"Nightmare""Nightmare Scion"}
    local COUNT_CONSIDER = {235} --1 exori2 exori gran3 utito tempo exori gran depending on setup

    --[[ ENGINE ]]
    local SCRIPT_INFO "Name: Safe Exori/Gran & Utito/nVersion: 1.4.0/nAuthor: Ropiderz"
    local MONSTERS maround(1unpack(CONSIDER_CREATURES))
    local PLAYERS
    if (CONSIDER_PLAYERS == truethen
        PLAYERS 
    = (paround(1true)-paround(1unpack(SAFE_LIST)))
    else
        
    PLAYERS 0
    end
     
    -- checked players and monsters
    if (MONSTERS >= COUNT_CONSIDER[1] and PLAYERS == 0then
        cast
    ("exori")
        
    wait(10001200)
    elseif (
    MONSTERS >= COUNT_CONSIDER[2] and PLAYERS == 0then
        
    if (CAST_GRAN == truethen
            cast
    ("exori gran")
            
    wait(10001200)
        else
            
    cast("exori")
            
    wait(10001200)
        
    end
    elseif (MONSTERS >= COUNT_CONSIDER[3] and PLAYERS == 0then
        
    if (CAST_UTITO == truethen
            cast
    ("utito tempo")
            
    wait(10001200)
        
    end
        
    if (CAST_GRAN == truethen
                cast
    ("exori gran")
                
    wait(10001200)
        else
            
    cast("exori")
            
    wait(10001200)
        
    end
    end 

  9. #9
    Normal User wicholost's Avatar
    Join Date
    Jun 2012
    Location
    Jamaica, Chile
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    updated, fixed some error.

  10. #10
    Normal User Raphael's Avatar
    Join Date
    Apr 2012
    Location
    São Paulo, Brazil
    Posts
    297
    Mentioned
    1 Post(s)
    Tagged
    3 Thread(s)
    Quoted
    5 Post(s)
    Reputation
    78
    Rep Power
    5
    Great job, mate, great job!

Posting Permissions

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