Signup Now
Page 8 of 10 FirstFirst ... 678910 LastLast
Results 71 to 80 of 95

Thread: Anti Stalker

  1. #71
    Free User Raiven's Avatar
    Join Date
    Mar 2015
    Posts
    281
    Reputation
    51
    Rep Power
    19
    Quote Originally Posted by ozzix View Post
    do you have server log msgs on?
    nope, maybe thats why XD thanks, i changed it now so ill check on it when stalker comes around again :P

  2. #72
    Free User
    Join Date
    Sep 2015
    Posts
    28
    Reputation
    10
    Rep Power
    0
    it does not work.. :/

  3. #73
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    Quote Originally Posted by Wasrea View Post
    it does not work.. :/
    check all options in tibia->options->conole.
    also, when something isn't work try to be more descriptive

  4. #74
    Free User
    Join Date
    Sep 2015
    Posts
    28
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by mistgun View Post
    check all options in tibia->options->conole.
    also, when something isn't work try to be more descriptive
    error here:
    [" if dmg >= minDmgTaken and nam..."]:NewHotkey:25 attempt to compare number with nil

    and my console is all activated

  5. #75
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    how did you set up minDmgTaken variable?

  6. #76
    Free User
    Join Date
    Sep 2015
    Posts
    28
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by mistgun View Post
    how did you set up minDmgTaken variable?
    init start
    -- local SCRIPT_VERSION = '1.1.2'

    local invisCreatures = {'Souleater'}
    local stuckTime = 500 -- Set to 0 to always attack
    local minDmgTaken = 120 -- Set to 0 to always attack
    local spellToUse = 'great fireball rune'

    -- DO NOT EDIT BELOW THIS LINE --
    table.lower(invisCreatures)
    local spellToUseInfo, spellType = spellinfo(spellToUse), 'spell'
    if spellToUseInfo.castarea == 'None' then
    spellToUseInfo, spellType = runeinfo(spellToUse), 'rune'
    end
    init end

    auto(100)

    if $standtime >= stuckTime then
    foreach newmessage m do
    if m.type == MSG_STATUSLOG then
    local dmg, _, name = m.content:match(REGEX_DMG_TAKEN)
    dmg = tonumber(dmg)

    if dmg >= minDmgTaken and name and table.find(invisCreatures, name:lower()) and maround(7, name:lower()) == 0 then
    if spellType == 'spell' and cancastspell(spellToUseInfo) then
    cast(spellToUseInfo.words)
    waitping()
    elseif spellType == 'rune' then
    useoncreature(spellToUseInfo.itemid, $self)
    waitping()
    end
    end
    end
    end
    end
    Last edited by Wasrea; 11-18-2015 at 11:31 PM.

  7. #77
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    try this

    init start
    -- local SCRIPT_VERSION = '1.1.2'


    local invisCreatures = {'Souleater'}
    local stuckTime = 0 -- Set to 0 to always attack
    local minDmgTaken = 0 -- Set to 0 to always attack
    local spellToUse = 'exori'


    -- DO NOT EDIT BELOW THIS LINE --
    table.lower(invisCreatures)
    local spellToUseInfo, spellType = spellinfo(spellToUse), 'spell'
    if spellToUseInfo.castarea == 'None' then
    spellToUseInfo, spellType = runeinfo(spellToUse), 'rune'
    end
    init end


    auto(100)


    if $standtime >= stuckTime then
    foreach newmessage m do
    if m.type == MSG_STATUSLOG then
    local dmg, _, name = m.content:match(REGEX_DMG_TAKEN)
    dmg = tonumber(dmg)

    if dmg and dmg >= minDmgTaken and name and table.find(invisCreatures, name:lower()) and maround(7, name:lower()) == 0 then
    if spellType == 'spell' and cancastspell(spellToUseInfo) then
    cast(spellToUseInfo.words)
    waitping()
    elseif spellType == 'rune' then
    useoncreature(spellToUseInfo.itemid, $self)
    waitping()
    end
    end
    end
    end
    end

  8. #78
    Free User
    Join Date
    Sep 2015
    Posts
    28
    Reputation
    10
    Rep Power
    0
    Thanks is working!

  9. #79
    Free User
    Join Date
    Jul 2014
    Posts
    5
    Reputation
    10
    Rep Power
    0
    it's not work for me

  10. #80
    Free User
    Join Date
    Dec 2015
    Posts
    16
    Reputation
    10
    Rep Power
    0

    Post Error

    Quote Originally Posted by Raphael View Post
    Anti Stalker


    Description

    Attacks invisible creatures that attack you.


    Configuration

    Edit the invisCreatures variable on the init block to specify which creatures go invisible. Also, edit stuckTime to specify how many miliseconds it should be stuck before attacking the creatures and spellToUse so the bot knows which spell to use.


    Code

    init start
    -- local SCRIPT_VERSION = '1.1.2'

    local invisCreatures = {'Stalker'}
    local stuckTime = 0 -- Set to 0 to always attack
    local minDmgTaken = 0 -- Set to 0 to always attack
    local spellToUse = 'exori'

    -- DO NOT EDIT BELOW THIS LINE --
    table.lower(invisCreatures)
    local spellToUseInfo, spellType = spellinfo(spellToUse), 'spell'
    if spellToUseInfo.castarea == 'None' then
    spellToUseInfo, spellType = runeinfo(spellToUse), 'rune'
    end
    init end

    auto(100)

    if $standtime >= stuckTime then
    foreach newmessage m do
    if m.type == MSG_STATUSLOG then
    local dmg, _, name = m.content:match(REGEX_DMG_TAKEN)
    dmg = tonumber(dmg)

    if dmg >= minDmgTaken and name and table.find(invisCreatures, name:lower()) and maround(7, name:lower()) == 0 then
    if spellType == 'spell' and cancastspell(spellToUseInfo) then
    cast(spellToUseInfo.words)
    waitping()
    elseif spellType == 'rune' then
    useoncreature(spellToUseInfo.itemid, $self)
    waitping()
    end
    end
    end
    end
    end

    Git
    Can you help me where is the error?
    Phono in link below.

    Thx

    error.png

 

 

Posting Permissions

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