I downloaded script CS2DTibia - RPG in: [url]http://www.unrealsoftware.de/forum_posts.php?post=176932&start=0/url and don't know how to make the monster use teleport next to who it want to kill.
Example:

I have a script teleport for monster but for running not attacking people
{
name = 'Abra', health = 100, image = 'gfx/weiwen/pokemon/63.png', scalex = 2, scaley = 2,
atk = 0.6, def = 1.0, spd = 5, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 20, runat = 100, spawn1 = {0, 0}, spawn2 = {150, 150},
exp = 10, money = 100, loot = {{chance = 5000, id = 105}},
spc = {2500, function(self)
radiusmsg("Abra uses teleport!", self.x, self.y)
parse("effect \"colorsmoke\" " .. self.x .. " " .. self.y .. " 5 5 255 255 255")
local dir = math.random(math.pi*2)
if self:move(dir, 40) or self:move(dir, -40) then
parse("effect \"colorsmoke\" " .. self.x .. " " .. self.y .. " 5 5 255 255 255")
end
end},
},