Ir para conteúdo

Please Alguem Me Ajuda A Desifrar O Erro Do Script


eduardo190696

Posts Recomendados

bom eu quero saber oque tem de errado nesse action script

 

 

 

function onUse (cid, item2, frompos)

local pokename = { "charmander" }

getItemAttribute(item.uid, "poke"):find(getCreatureName(z))

if poke == pokename

doCreatureSay (cid, poke " Use o ataque especial!") then

-----Spell aqui ~ By Lancellott, junior2b-----

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, )

setCombatParam(combat, COMBAT_PARAM_EFFECT, )

setCombatFormula(combat, , 0, 0, 0, 0)

 

local arr = {

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 1, 2, 1, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

}

 

local area = createCombatArea(arr)

setCombatArea(combat, area)

 

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

return true

end

else

doPlayerSendCancel (cid, "Você só pode usar este item caso tenha um "..pokename..)

doSendMagicEffect (cid, 14)

return false

end

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...