Signup Now
Page 1 of 10 123 ... LastLast
Results 1 to 10 of 95

Thread: Anti Stalker

  1. #1
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,440
    Reputation
    283
    Rep Power
    27

    Anti Stalker

    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.3'

    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 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

    Git
    Last edited by Raphael; 08-03-2016 at 08:20 PM.
    RaphSeller
    PayPal Instantaneous Reseller


    raphseller.com

  2. #2
    Free User downloadkct's Avatar
    Join Date
    Dec 2013
    Location
    Rio de Janeiro
    Posts
    1,166
    Reputation
    25
    Rep Power
    23
    Does it work with exori flam or just area spells ?

  3. #3
    Moderator sirmate's Avatar
    Join Date
    Dec 2013
    Location
    Poland
    Posts
    42
    Reputation
    37
    Rep Power
    0
    It will cast spell, but you will need abit of luck to get stalker be in front of you, for those action is best to use rune or some area spell.
    (๏̯͡๏ )

  4. #4
    Free User
    Join Date
    Jan 2014
    Posts
    9
    Reputation
    10
    Rep Power
    0
    and with avalanche rune?

  5. #5
    Administrator Lucas Terra's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    2,202
    Reputation
    141
    Rep Power
    10
    To detect if the Stalker is in front of you you can always use foreach neweffect.

  6. #6
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,440
    Reputation
    283
    Rep Power
    27
    Quote Originally Posted by Lucas Terra View Post
    To detect if the Stalker is in front of you you can always use foreach neweffect.
    Tried that, it's troublesome.
    RaphSeller
    PayPal Instantaneous Reseller


    raphseller.com

  7. #7
    Free User
    Join Date
    Jan 2014
    Posts
    15
    Reputation
    10
    Rep Power
    0
    How should I configure it for gfb?

  8. #8
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,440
    Reputation
    283
    Rep Power
    27
    @Thread

    Fixed the script for runes!

    Quote Originally Posted by kolouiy View Post
    How should I configure it for gfb?
    Just write 'great fireball rune'.
    RaphSeller
    PayPal Instantaneous Reseller


    raphseller.com

  9. #9
    Free User
    Join Date
    Jan 2014
    Posts
    15
    Reputation
    10
    Rep Power
    0
    don't work for me, my setting:
    local invisCreatures = {'Stalker'}
    local stuckTime = 100 -- Set to 0 to always attack
    local spellToUse = 'great fireball rune' -- Spells only, until Lucas fixes runeinfo

    I have windows 8, gfb hotkey on shift + f1, f2, f3, crosshair, target, yourself

  10. #10
    Free User TibiaDealer's Avatar
    Join Date
    Dec 2013
    Location
    Tibia-Dealer.com
    Posts
    391
    Reputation
    9
    Rep Power
    0
    This line explain clearly what's wrong.

    Code:
    local spellToUse = 'great fireball rune' -- Spells only, until Lucas fixes runeinfo

 

 

Posting Permissions

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