Results 1 to 5 of 5

Thread: I need a hotkey that do not attack the opponent's monsters

  1. #1
    iBot User
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    I need a hotkey that do not attack the opponent's monsters

    I need a hotkey that do not attack the opponent's monsters, cuz i have some problems in my world
    plx i need this hotkey or script or action i dont know...
    thnk z !

  2. #2
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    Targeting>Monsters>MonsterName>MustAttackMe > yes

  3. #3
    Normal User lilb4l's Avatar
    Join Date
    Apr 2012
    Location
    Sweden
    Posts
    278
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    11 Post(s)
    Reputation
    66
    Rep Power
    5
    use like this in action change ur Monsters by name, must be exatly same u cant have capital letters if its not capital in targeting...

    Code:
    if paround(8) > 0 then
        setsettings("Settings\\Targeting\\Monsters\\Category A\\MustAttackMe", "yes")
        setsettings("Settings\\Targeting\\Monsters\\Rotworm\\MustAttackMe", "yes")
        setsettings("Settings\\Targeting\\Monsters\\Carrion Worm\\MustAttackMe", "yes")
    
    
    else
        setsettings("Settings\\Targeting\\Monsters\\Category A\\MustAttackMe", "no")
        setsettings("Settings\\Targeting\\Monsters\\Rotworm\\MustAttackMe", "no")
        setsettings("Settings\\Targeting\\Monsters\\Carrion Worm\\MustAttackMe", "no")
    
    end


    2013-03-07Added Coryms - Venore v1.1.2
    2013-03-06 Added Mage - Vendura Nightstalkers/Earth Elementals FoodRefill+Secondfloor optional.


  4. #4
    zami84's Avatar
    Join Date
    May 2012
    Posts
    316
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    48
    Rep Power
    5
    local r = 5 -- Range.
    local safelist = {'Bubble', 'Eternal Oblivion'} -- The bot WILL KS this players. Add more to this if you want.
    table.insert(safelist, name) -- Do not edit it.
    local ppos = {}
    local pinfo = _getcreatures("psf")
    local cinfo = _getcreatures("msf")

    for a = 1, pinfo.count do
    local ab=a-1
    if not table.find(safelist, pinfo[ab].name) then
    table.insert(ppos, {x = pinfo[ab].x, y = pinfo[ab].y})
    end
    end

    for b = 1, cinfo.count do
    local ignore = false
    local bb=b-1
    if cinfo[bb].id ~= target.id then
    for i = 1, #ppos do
    local difx, dify = ppos[i].x - cinfo[bb].x, ppos[i].y - cinfo[bb].y
    if math.abs(difx) <= r 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].id, true)
    stopattack()
    end
    end
    if target.id ~= 0 then
    if target.ignored then
    stopattack()
    end
    end

  5. #5
    iBot User
    Join Date
    Mar 2013
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    thx to anyone

Posting Permissions

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