Ir para conteúdo

Featured Replies

Postado

galera do tk tou com uma duvida com spell izanagi ela da um erro.

 

 

 

 

Sem título.png

 

 

vou mostrar

creaturescripts/scripts/izanagi

 

pos = {x=1026, y=915, z=6}, -- posição de onde ele vai ao morrer tempo = 1, -- tempo pra voltar effect1 = 66, -- efeito ao morrer effect2 = 10, -- efeito ao retornar a vida storage = 19332 } function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS and value >= getCreatureHealth(cid) then if getPlayerStorageValue(cid, config.storage) > 0 then doPlayerSetStorageValue(cid, config.storage, (getPlayerStorageValue(cid, config.storage)-1)) addEvent(doTeleportThing, 1000*config.tempo, cid, getThingPos(cid), true) addEvent(doSendMagicEffect, 1000*config.tempo, getThingPos(cid), config.effect2) doSendMagicEffect(getThingPos(cid), config.effect1) doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid)) doTeleportThing(cid, config.pos) if isCreature(attacker) then doPlayerSendTextMessage(cid, 27, "You were killed by ".. getCreatureName(attacker) ..". Now it's time to get your REVENGE!") end if isPlayer(attacker) and isCreature(cid) then doPlayerSendTextMessage(attacker, 27, "You killed ".. getCreatureName(cid) .."!") end for i = 1,config.tempo do addEvent(function() if isCreature(cid) then doPlayerSendTextMessage(cid,25,"You'll be back in " .. config.tempo -i +1 .. " second(s)") end end, 1000*i) end return false end end return true end

 

creaturescripts/scripts/login.lua

 

registerCreatureEvent(cid, "reborn") if getPlayerStorageValue(cid, 19332) == -1 then setPlayerStorageValue(cid, 19332, 0) end
    return true
SPELL

 

 

local combat = createCombatObject()


setCombatParam(combat, COMBAT_PARAM_EFFECT, 108)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true)

function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
local waittime1 = 10 -- Tempo de exhaustion
local storage1 = 115819

if exhaustion.check(cid, storage1) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage1) .. " segundos para usar a spell novamente.")
return false
end

doPlayerSetStorageValue(cid, 19332, 1)
doPlayerSendTextMessage(cid, 27, "Seu izanagi tem 40 segundos de efeito.")
addEvent(doPlayerSetStorageValue, 40000, cid, 19332, 0)
addEvent(doPlayerSendTextMessage, 40000, cid, 27, "Seu izanagi perdeu o efeito.")
exhaustion.set(cid, storage1, waittime1)
return true
end

 

 

 

ALGUEM PODE AJUDAR??TIRAM ESSA DUVIDA TEM OUTRA SCPRIT A DO KAMUI QUE MANDA KAMUI E VOCE SO SAI PELO PORTAO

 

 

 

 

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.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo