08-25-2013, 16:00 PM
Hi guys, I'm trying to use this script, but when I start that, the following error appears : Attempt to index a number value. Anyone knows who I concert this error ? ( Sorry for my bad english)
Code:
CoverTarget = "Xyz"
repeat
tar = GetUserByName(CoverTarget)
if tar ~= nil then
cid = tar:GetId()
monsters = GetMonsterList()
for m in monsters.list do
if m:GetTarget():GetId() == cid then
Target(m)
break
end
end
end
until false;