nope, maybe thats why XD thanks, i changed it now so ill check on it when stalker comes around again :P
Printable View
it does not work.. :/
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
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
Thanks is working!
it's not work for me :(
Can you help me where is the error?
Phono in link below.
Thx
Attachment 9861