tenta essa (achei no forum):
tag:
<instant name="tp attack" words="tp attack" lvl="10" mana="200" aggressive="1" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="tpattack.lua">
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
function getDamage(cid, level, magic)
return -(level * 5 + magic * 12), -(level * 5 + magic * 12 + 55)
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getDamage")
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
if target <= 1 then
doPlayerSendCancel(cid, "You need a target.")
return false
end
if not isSightClear(getThingPos(cid), getThingPos(target), false) then
doPlayerSendCancel(cid, "You can't reach that place.")
return false
end
local targetPos = getThingPos(target)
local directions = {0, 1, 2, 3, 4, 5, 6, 7}
local teleportPos = {}
for _ = 1, #directions do
local random = math.random(#directions)
local dir = directions[random]
table.remove(directions, random)
local newPos = getPosByDir(targetPos, dir)
if doTileQueryAdd(cid, newPos, 0, false) == 1 then
teleportPos = newPos
break
end
end
if teleportPos.x and doTileQueryAdd(cid, teleportPos, 0, false) == 1 then
doCombat(cid, combat, var)
doTeleportThing(cid, teleportPos, false)
return true
end
doPlayerSendCancel(cid, "You cannot teleport there.")
return false
end
uma dica já que você é novo, o xtibia tem muito conteúdo, é só procurar um pouco que acha, utiliza a ferramenta search /\ ajuda demais ^.^ fica a dica. se este script não funcionar você me fala.
edit: se essa não funcionar eu faço pra você uma.








info
Grupo: Cavaleiro
Registrado: 18/12/12
Posts: 158
Reputação: +14
Gênero: Masculino
Char no Tibia: Lestat
Bom a script funciona da seguinte forma:
O player usa a spell e é teleportado a nos 4 sqm ao redor do alvo,vai dar 4 hits cada hit em um sqm e depois voltar para o lugar de origem em que usou a spell.
OBS: SE POSSÍVEL fazer a outfit do player virar um effect durante a spell, ou pelo menos mudar a outfit
e se possível deixar configurável, Meu nível de experiencia é baixo.
Protocolo: 8.60