Script interessante, se alguem souber fazer ajuda ae tem meu Rep+ tmb.
info
Grupo: Cavaleiro
Registrado: 13/11/11
Posts: 190
Reputação: +20
Char no Tibia: Sweesh

info
Grupo: Conde
Registrado: 30/10/11
Posts: 625
Reputação: +101
Gênero: Masculino

too easy
tenta assim
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT) setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 2.5, 4) local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 255) setAttackFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 2.5, 4) local area = createCombatArea(AREA_BEAM5, AREADIAGONAL_BEAM5) setCombatArea(combat, area) setCombatArea(combat1, area) function onCastSpell(cid, var) doCombat(cid, combat, var) addEvent(doCombat, 1,cid, combat, var) return true end
info
Grupo: Cavaleiro
Registrado: 13/11/11
Posts: 190
Reputação: +20
Char no Tibia: Sweesh

To falando do segundo script que ele disse que 1 player anda pro lado o outro tb.
info
Grupo: Campones
Registrado: 30/03/08
Posts: 20
Reputação: 0
Char no Tibia: clowd leo
não era bem isso que eu queria dahaka...
eu queria um tipo de habilidade "passiva" nao importa em quem se a classe X tirar dano melee seja com espada,club,fist arranque-se um numero de mana.
info
Grupo: Conde
Registrado: 30/06/11
Posts: 631
Reputação: +371
Char no Tibia: Warrior of Mort

Mimic Spell:
function onCastSpell(cid, var)
local tempo = 30 -- tempo em segundos que vai durar o controle.
local target = getCreatureTarget(cid)
local position = getPlayerPosition(cid)
doCreatureSetNoMove(target, true)
setPlayerStorageValue(cid, 5421, os.time()+tempo)
movePlayer(position, target, cid)
return true
end
function movePlayer(position, target, cid)
if isCreature(target) and isPlayer(cid) then
local pos = getCreaturePosition(target)
if getPlayerPosition(cid).x ~= position.x then
pos = {x = getCreaturePosition(target).x+(getPlayerPosition(cid).x +(- 1 * position.x)), y = getCreaturePosition(target).y, z = getCreaturePosition(target).z}
elseif getPlayerPosition(cid).y ~= position.y then
pos = {x = getCreaturePosition(target).x, y = getCreaturePosition(target).y+(getPlayerPosition(cid).y +(- 1 * position.y)), z = getCreaturePosition(target).z}
end
if isWalkable(pos) then
doTeleportThing(target, pos)
end
if (getPlayerStorageValue(cid, 5421) - os.time()) > 0 then
addEvent(movePlayer, 100, getPlayerPosition(cid), target, cid)
else
doPlayerSendTextMessage(cid, 22, "Você perdeu o controle.")
doCreatureSetNoMove(target, false)
end
end
end
function isWalkable(pos, creature, pz, proj) -- nord
if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end
local creature = getTopCreature(pos)
if creature.type > 0 then return false end
if getTilePzInfo(pos) and not pz then return false end
local n = not proj and 3 or 2
for i = 0, 255 do
pos.stackpos = i
local tile = getTileThingByPos(pos)
if tile.itemid ~= 0 and not isCreature(tile.uid) then
if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then
return false
end
end
end
return true
end
info
Grupo: Visconde
Registrado: 11/04/12
Posts: 328
Reputação: +7
Char no Tibia: ADM MiHawk

eeee jhon sempre na frente rep + eu perguntei de um script de spell legal no msn e vc disse que nao sabia ¬¬
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

o primeiro pedido é o mais fácil, só fazer pelo onStats





info
Grupo: Campones
Registrado: 30/03/08
Posts: 20
Reputação: 0
Char no Tibia: clowd leo
Versão:8.54
OT: TFS 0.3.6
Preciso de um script que se o player for da vocação denominada "x" quando ele tirar life do player com melee ele tire mana tambem.
e uma spell em area linear como o exori vis lux
1
1
1
1
0
que os player atingidos nao possam se mover e todos movimentos que o player que uso a magia faça ele tera que fazer tambem!
Exemplo:
o player foi atingido,eu andei 1 sqm pra cima ele deve andar 1 sqm pra cima tambem por "X" segundos.