Use @mistgun's version above. Also, please don't quote the main post.
Use @mistgun's version above. Also, please don't quote the main post.
Hello, i need to attack exori while Draken Spellweaver goes invisible. Can anyone help me?
This does not work to me:
init start
-- local SCRIPT_VERSION = '1.1.2'
local invisCreatures = {'Draken Spellweaver'}
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
bumppp
This works for me, look:
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 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
not working
Last edited by Popee; 04-05-2016 at 05:17 PM.
I copied of mistgun and it works.... well not really. You see, the character can't really shoot gfb while running into a stalker at the same time. So... Is it possible to make the character stand still for a second, then cast the rune, and then continue walking?
How can do it for if guy on screen dont throw it?
Cuz it make me rs on 3 chars xD
error in Persistent script NewPersistentScript:
[" if dmg >= minDmgTak..."]:NewPersistentScript:25 attempt to compare number with nil
Please help.
edit: I can't copy more.. there is no more text in error msg.
edit : Zaru script solved the problem.
Last edited by nargan; 05-21-2016 at 04:05 PM.
Im hunting on Souleater and I cant get it to work..
Ive tried Raphaels and Mistgun, none is working properly. I have all ENABLED in options -> console, still not working.
It attacks Souleater then it goes invis and it tries to "move on" but it just runs into it. Like 10 times, looks like he is stuttering, but doesnt attack. I have set to "0" always attack, still nothing.
I just want it "when stuck = do GFB on self" and problem solved..
Anyone that could help me, would really appreciate it?