Results 1 to 3 of 3

Thread: action para não dar ks

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

    Question action para não dar ks

    action para não dar ks tentei esa mas não funcionou

    PHP Code:

    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

  2. #2
    iBot User Nosekim's Avatar
    Join Date
    Feb 2012
    Posts
    1,089
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    6 Post(s)
    Reputation
    70
    Rep Power
    7
    a funçao original feita pelo raphael no neo bot necessita de uma variavel
    q o ibot ainda nao possui, assim q possivel estaremos fazendo um anti ks funcional

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    vlw vo espera

Posting Permissions

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