Ir para conteúdo

Featured Replies

Postado

Alguém me ajude com essas 2 spell, está com erro e eu não to entendendo o pq...

Tfs 0.4

Serv: 8.6

 

Script 1: Shin

Spoiler

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 0)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 202)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -95.2, 1, -87.2, 1)

function onCastSpell(cid, var)
local waittime = 0,5 -- Tempo de exhaustion
local storage = 37008

if exhaustion.check(cid, storage) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.")
return false
end
local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z}
doSendMagicEffect(position1, 479)
exhaustion.set(cid, storage, waittime)
return doCombat(cid, combat, var)
end


 

Script 2: Hanzo

Spoiler

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 0)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 134)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -100.2, 1, -80.2, 1)

function onCastSpell(cid, var)
local waittime = 0,5 -- Tempo de exhaustion
local storage = 37008

if exhaustion.check(cid, storage) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.")
return false
end
local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y-0, z=getThingPosition(getCreatureTarget(cid)).z}
local position2 = {x=getThingPosition(getCreatureTarget(cid)).x+0, y=getThingPosition(getCreatureTarget(cid)).y+0, z=getThingPosition(getCreatureTarget(cid)).z}

doSendMagicEffect(position1, 537)
doSendMagicEffect(position2, 537)

exhaustion.set(cid, storage, waittime)
return doCombat(cid, combat, var)
end

 

image.thumb.png.c20cc8531038492fa004f841ed853a37.png

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.9k

Informação Importante

Confirmação de Termo