Ir para conteúdo
  • 0

Erro Transform Dbko Arena


PostadorHunter

Pergunta

Versão:8.00

erro: [baseevents::loadfromxmll can not open spells.xml

Alguem poderia me dizer oq ta errado nesse script ??

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

 

local condition = createConditionObject(CONDITION_OUTFIT)

setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)

addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)

setCombatCondition(combat, condition)

 

vegettossj1 = {lookType=423}

vegettossj2 = {lookType=492}

vegettossj3 = {lookType=424}

vegettossj4 = {lookType=425}

vegettossj5 = {lookType=426}

 

ext = 1000

 

---VEGETTO---

function onCastSpell(cid, var)

if getPlayerVocation(cid) == 388 then

if getPlayerLevel(cid) >= 50 then

doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)

doPlayerSetVocation(cid,389)

doSetCreatureOutfit(cid, {lookType=423}, -1)

addEvent(vegettossj1,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 12)

doSetOutfit(cid, 423)

else

doPlayerSendCancel(cid, "voce nao tem lvl 50!")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

elseif

function onCastSpell(cid, var)

if getPlayerVocation(cid) == 389 then

if getPlayerLevel(cid) >= 100 then

doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)

doPlayerSetVocation(cid,390)

doSetCreatureOutfit(cid, {lookType=492}, -1)

addEvent(vegettossj2,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 12)

doSetOutfit(cid, 492)

else

doPlayerSendCancel(cid, "voce nao tem lvl 100!")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

elseif

---VEGETTO REBORN---

elseif

function onCastSpell(cid, var)

if getPlayerVocation(cid) == 391 then

if getPlayerLevel(cid) >= 50 then

doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)

doPlayerSetVocation(cid,392)

doSetCreatureOutfit(cid, {lookType=423}, -1)

addEvent(vegettossj1,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 12)

doSetOutfit(cid, 423)

else

doPlayerSendCancel(cid, "voce nao tem lvl 50!")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

elseif

function onCastSpell(cid, var)

if getPlayerVocation(cid) == 392 then

if getPlayerLevel(cid) >= 100 then

doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)

doPlayerSetVocation(cid,393)

doSetCreatureOutfit(cid, {lookType=492}, -1)

addEvent(vegettossj2,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 12)

doSetOutfit(cid, 492)

else

doPlayerSendCancel(cid, "voce nao tem lvl 100!")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

elseif

function onCastSpell(cid, var)

if getPlayerVocation(cid) == 393 then

if getPlayerLevel(cid) >= 150 then

doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)

doPlayerSetVocation(cid,394)

doSetCreatureOutfit(cid, {lookType=424}, -1)

addEvent(vegettossj3,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 12)

doSetOutfit(cid, 424)

else

doPlayerSendCancel(cid, "voce nao tem lvl 150!")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

elseif

function onCastSpell(cid, var)

if getPlayerVocation(cid) == 394 then

if getPlayerLevel(cid) >= 200 then

doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)

doPlayerSetVocation(cid,396)

doSetCreatureOutfit(cid, {lookType=425}, -1)

addEvent(vegettossj4,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 12)

doSetOutfit(cid, 425)

else

doPlayerSendCancel(cid, "voce nao tem lvl 200!")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

elseif

function onCastSpell(cid, var)

if getPlayerVocation(cid) == 396 then

if getPlayerLevel(cid) >= 400 then

doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)

doPlayerSetVocation(cid,397)

doSetCreatureOutfit(cid, {lookType=426}, -1)

addEvent(vegettossj5,ext,cid)

doSendMagicEffect(getPlayerPosition(cid), 12)

doSetOutfit(cid, 426)

else

doPlayerSendCancel(cid, "voce nao tem lvl 400!")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

 

 

else

doPlayerSendCancel(cid, "Voce Nao tem mais Transform.")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

end

 

 

 

<instant name="Transformar" words="transformar" aggressive="0" params="0" lvl="1" maglv="0"mana="0" soul="0"exhaustion="1" prem="0" enabled="1" script="transformar.lua"></instant>

 

Editado por PostadorHunter
Link para o comentário
Compartilhar em outros sites

4 respostass a esta questão

Posts Recomendados

  • 0

Sua tag tava meio embaralhada. Tó.

 

<instant name="Transformar" words="transformar" aggressive="0" params="0" lvl="1" maglv="0" mana="0" soul="0" exhaustion="1" prem="0" enabled="1" script="transformar.lua">
</instant>

Link para o comentário
Compartilhar em outros sites

  • 0

tenta assim não tenho ot de Dragon ball pra testa

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)
addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)
setCombatCondition(combat, condition)
vegettossj1 = {lookType=423}
vegettossj2 = {lookType=492}
vegettossj3 = {lookType=424}
vegettossj4 = {lookType=425}
vegettossj5 = {lookType=426}
ext = 1000
---VEGETTO---
function onCastSpell(cid, var)
if getPlayerVocation(cid) == 388 then
elseif getPlayerLevel(cid) >= 50 then
doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)
doPlayerSetVocation(cid,389)
doSetCreatureOutfit(cid, {lookType=423}, -1)
addEvent(vegettossj1,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 12)
doSetOutfit(cid, 423)
else
doPlayerSendCancel(cid, "voce nao tem lvl 50!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
function onCastSpell(cid, var)
if getPlayerVocation(cid) == 389 then
elseif getPlayerLevel(cid) >= 100 then
doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)
doPlayerSetVocation(cid,390)
doSetCreatureOutfit(cid, {lookType=492}, -1)
addEvent(vegettossj2,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 12)
doSetOutfit(cid, 492)
else
doPlayerSendCancel(cid, "voce nao tem lvl 100!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
function onCastSpell(cid, var)
if getPlayerVocation(cid) == 393 then
elseif getPlayerLevel(cid) >= 150 then
doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)
doPlayerSetVocation(cid,394)
doSetCreatureOutfit(cid, {lookType=424}, -1)
addEvent(vegettossj3,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 12)
doSetOutfit(cid, 424)
else
doPlayerSendCancel(cid, "voce nao tem lvl 150!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
function onCastSpell(cid, var)
if getPlayerVocation(cid) == 394 then
elseif getPlayerLevel(cid) >= 200 then
doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)
doPlayerSetVocation(cid,396)
doSetCreatureOutfit(cid, {lookType=425}, -1)
addEvent(vegettossj4,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 12)
doSetOutfit(cid, 425)
else
doPlayerSendCancel(cid, "voce nao tem lvl 200!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
function onCastSpell(cid, var)
if getPlayerVocation(cid) == 396 then
if getPlayerLevel(cid) >= 400 then
doPlayerSay(cid, 'transformar', TALKTYPE_ORANGE_1)
doPlayerSetVocation(cid,397)
doSetCreatureOutfit(cid, {lookType=426}, -1)
addEvent(vegettossj5,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 12)
doSetOutfit(cid, 426)
else
doPlayerSendCancel(cid, "voce nao tem lvl 400!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
else
doPlayerSendCancel(cid, "Voce Nao tem mais Transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
end
end
end
end
end

Editado por notle2012
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...