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
Does it work with exori flam or just area spells ?
12-28-2013, 01:59 PM
sirmate
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.
01-18-2014, 11:54 PM
Eliteek
and with avalanche rune?
01-19-2014, 10:17 PM
Lucas Terra
To detect if the Stalker is in front of you you can always use foreach neweffect.
01-19-2014, 11:34 PM
Raphael
Quote:
Originally Posted by Lucas Terra
To detect if the Stalker is in front of you you can always use foreach neweffect.
Tried that, it's troublesome.
01-22-2014, 12:06 PM
kolouiy
How should I configure it for gfb?
01-22-2014, 11:07 PM
Raphael
@Thread
Fixed the script for runes!
Quote:
Originally Posted by kolouiy
How should I configure it for gfb?
Just write 'great fireball rune'.
02-14-2014, 05:05 PM
kolouiy
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
02-14-2014, 05:35 PM
TibiaDealer
This line explain clearly what's wrong.
Code:
local spellToUse = 'great fireball rune' -- Spells only, until Lucas fixes runeinfo
02-14-2014, 05:44 PM
kolouiy
Raphael said
"Fixed the script for runes!"
so, it should working
02-14-2014, 07:28 PM
Raphael
Script Updated!
I forgot to implement rune shooting once Lucas fixed runeinfo().
@kolouiy, my bad, I actually forgot to implement all of it. Mind trying again?
02-15-2014, 07:08 PM
kolouiy
Thanks, working perfectly :)
02-16-2014, 03:09 AM
neusilvera
this dont work in gfb or other runes.. i change "exori" for "great fireball rune" but do nothing
02-16-2014, 05:49 PM
Raphael
Quote:
Originally Posted by neusilvera
this dont work in gfb or other runes.. i change "exori" for "great fireball rune" but do nothing
The guy just above you said it works, so I'm guessing it's something wrong on your side.
Do you have GFB on hotkeys with 'use on yourself' option?
I will try it soon and let you know if that fixes it. I think I have "Show Status Messages in Console" turned off.
Cheers.
04-20-2014, 07:07 PM
Kaoos
I saw someone post that I could create an action for scareb coin? tumb
08-26-2014, 08:38 AM
Rickiey
Thanks for this, it solved my problem.
09-04-2014, 10:28 PM
matiwindbot
hey i got some problem with that action. im using it while botting on ank tombs and i set stuckTime to 0 to shoot gfb instantly when im trying to step on invisible stalker but the bot doesnt react, it just keeps going on the stalker until it moves away from the way. it works sometimes and the bot is shooting instantly, but its like 25% of times, most of it the script isnt even reacting.
maybe something changed in last tibia updates?
@Raphael
09-05-2014, 01:01 PM
Raphael
Quote:
Originally Posted by matiwindbot
hey i got some problem with that action. im using it while botting on ank tombs and i set stuckTime to 0 to shoot gfb instantly when im trying to step on invisible stalker but the bot doesnt react, it just keeps going on the stalker until it moves away from the way. it works sometimes and the bot is shooting instantly, but its like 25% of times, most of it the script isnt even reacting.
maybe something changed in last tibia updates?
@Raphael
Is there, by any chance, other visible stalkers?
09-06-2014, 09:27 PM
matiwindbot
Quote:
Originally Posted by Raphael
Is there, by any chance, other visible stalkers?
hmm as i noticed it doesnt matter. sometimes the script just dont shoot gfb and he just trying to run forward, no matter if theres any other monster besides invisible stalker. i trough that adding some pausewalking will help so i added it but it gave no effect.
the script look like this:
init start
-- local SCRIPT_VERSION = '1.0.1'
local invisCreatures = {'Stalker'}
local stuckTime = 0 -- 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 and ($wptsection == "Hunt" or $wptsection == "Leave" or $wptsection == "ToHunt") then
foreach newmessage m do
if m.type == MSG_STATUSLOG then
local _, _, name = m.content:match(REGEX_DMG_TAKEN)
if (name and table.find(invisCreatures, name:lower())) then
if spellType == 'spell' and cancastspell(spellToUseInfo) then
cast(spellToUseInfo.words)
waitping()
elseif spellType == 'rune' then
if $standtime < 5000 then
pausewalking(5000)
end
wait(200)
if maround(10, "Demon Skeleton", "Green Djinn") > 0 then
useoncreature("avalanche rune", $self)
else
useoncreature("great fireball rune", $self)
end
Is everyone having problems with it?
If so, I'll have to borrow a char from someone to check it.
09-17-2014, 04:20 PM
Neyamire
@Raphael finally i fount out wht was wrong...i had console to sshow hitpoints etc disabled. Im so sorry for bother you Raphael and probably make u waste ur time on this shit when actually is all ok xD
09-17-2014, 11:04 PM
Raphael
Quote:
Originally Posted by Neyamire
@Raphael finally i fount out wht was wrong...i had console to sshow hitpoints etc disabled. Im so sorry for bother you Raphael and probably make u waste ur time on this shit when actually is all ok xD
That's fine, no problems at all. =D
09-18-2014, 01:49 PM
cowboy
well i have everything enabled in console and still sometimes script just doesnt work. character is trying to run trough stalker as long as it moves instead of killing it.
09-18-2014, 03:19 PM
Raphael
Quote:
Originally Posted by cowboy
well i have everything enabled in console and still sometimes script just doesnt work. character is trying to run trough stalker as long as it moves instead of killing it.
Get me a picture of it.
09-28-2014, 09:34 PM
charmex
I'm hunting at tarpit - 3 and it keeps crashing, my script uses avalnache to hunt if 3+ monsters and this script. It seems that when the script tries to avalanche self and at the same time it tries to avalanche the 3+ monsters the bot crashes.
09-28-2014, 10:43 PM
Davi
Yo, got the same problem, doesnt matter in which script i put it in, this perst just doesnt work for me. It's about rune shoot.
Used to set exori on knight and worked well.
Thanks for sharing this tool, I currently use it with Eternal Winter, works like a dream :cool:
11-18-2014, 09:59 PM
Fernandofdp
opa nao to conseguindo arrumar amigo , pra botar GFB ou Avalanche .. alguem poderia postar pra mim como ficou pronmto eu tentei alterar mais nao foi :(
11-23-2014, 12:45 AM
achilleos
@Raphael how can u add to this persistent safe area spell ? so for example if there's player on screen it will not shoot gfb. ?
12-07-2014, 08:03 AM
warfare
Quote:
Originally Posted by achilleos
@Raphael how can u add to this persistent safe area spell ? so for example if there's player on screen it will not shoot gfb. ?