PO
dúvida

Erro Transform Dbko Arena

Por PostadorHunter, 26 de ago. de 2012 em Scripts

script
5
1.2k
26 de agosto de 2012 às 18:20

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 Agosto 26 por PostadorHunter

28 de agosto de 2012 às 17:54

Ele não está conseguindo abrir seu Spells.XML veja se não tem nada fora do lugar no seu

Spell.xml.

LuckOakeL
28 de agosto de 2012 às 18:10

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>

notle2012N
28 de agosto de 2012 às 19:09

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 Agosto 28 por notle2012

28 de agosto de 2012 às 19:50

Valeu gente dps quando eu entrar no pc testo e dou rep

 

meu pc esta ruim vou dar rep+ aos dois pois n posso testa sem pc

Editado Setembro 3 por PostadorHunter