Ir para conteúdo
  • 0

spells error


chateadoagr

Pergunta

da esse erro na distro:

 

[Error - LuaScriptInterface::loadFile] data/spells/scripts/narutotranform.lua:304: '' expected near 'end'
[16/08/2015 12:09:20] [Warning - Event::loadScript] Cannot load script (data/spells/scripts/narutotranform.lua)
[16/08/2015 12:09:20] data/spells/scripts/narutotranform.lua:304: '' expected near 'end'

 

 

script da spell:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 115)

narutooutfit1 = {lookType=71}
narutooutfit2 = {lookType=66}
narutooutfit3 = {lookType=91}
narutoutfit4 = {lookType=18}
narutoutfit5 = {lookType=31}
narutooutfit6 = {lookType=92}
narutooutfit7 = {lookType=40}
narutooutfit8 = {lookType=49}
narutooutfit9= {lookType=951}
narutooutfit10 = {lookType=179}
narutooutfit11 = {lookType=954}
narutooutfit12 = {lookType=955}
narutooutfit13 = {lookType=953}
narutooutfit14 = {lookType=54}
narutooutfit15 = {lookType=743}
narutooutfit16 = {lookType=1000}
narutooutfit17 = {lookType=1001}


---Eventy!---
---naruto---
function naruto1(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 2 then
if getPlayerMana(cid) >= 0 then
addEvent(naruto1,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto1)
doRemoveCondition(cid, 6)
end
end
end
end
end



function naruto2(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 3 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 1)
addEvent(naruto2,2000,cid)


if getPlayerMana(cid) <= 0 then
stopEvent(naruto2)
doRemoveCondition(cid, 6)
end
end
end
end
end



function naruto3(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 4 then
if getPlayerMana(cid) >= 0 then

addEvent(naruto3,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto3)
doRemoveCondition(cid, 6)
end
end
end
end
end


function naruto4(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 5 then
if getPlayerMana(cid) >= 0 then

addEvent(naruto4,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto4)

doRemoveCondition(cid, 6)
end
end
end
end
end

function naruto5(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 6 then
if getPlayerMana(cid) >= 0 then
addEvent(naruto5,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto5)
doRemoveCondition(cid, 6)
end
end
end
end
end



function naruto6(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 7 then
if getPlayerMana(cid) >= 0 then
addEvent(naruto6,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto6)
doRemoveCondition(cid, 6)
end
end
end
end
end



function naruto7(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 8 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 118)
addEvent(naruto7,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto7)
doRemoveCondition(cid, 6)
end
end
end
end
end

function naruto8(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 9 then
if getPlayerMana(cid) >= 0 then
doPlayerAddMana(cid,-0)
addEvent(naruto8,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto8)
doRemoveCondition(cid, 6)
end
end
end
end
end


function naruto9(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 10 then
if getPlayerMana(cid) >= 0 then
addEvent(naruto9,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto9)
doRemoveCondition(cid, 6)
end
end
end
end
end



function naruto10(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 11 then
if getPlayerMana(cid) >= 0 then

addEvent(naruto10,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto10)
doRemoveCondition(cid, 6)
end
end
end
end
end



function naruto11(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 12 then
if getPlayerMana(cid) >= 0 then

addEvent(naruto11,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto11)
doRemoveCondition(cid, 6)
end
end
end
end
end

function naruto12(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 13 then
if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 1)
addEvent(naruto12,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto12)
doRemoveCondition(cid, 6)
end
end
end
end
end

function naruto13(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 14 then
if getPlayerMana(cid) >= 0 then

addEvent(naruto13,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto13)
doRemoveCondition(cid, 6)
end
end
end
end
end



function naruto14(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 15 then
if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 18)
addEvent(naruto14,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto14)
doRemoveCondition(cid, 6)
end
end
end
end
end

function naruto15(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 16 then
if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 118)
addEvent(naruto15,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto15)
doRemoveCondition(cid, 6)
end
end
end
end
end

function naruto16(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 17 then
if getPlayerMana(cid) >= 0 then

addEvent(naruto16,2000,cid)
if getPlayerMana(cid) <= 0 then
stopEvent(naruto16)
doRemoveCondition(cid, 6)
end
end
end
end
end



function naruto17(cid)
if isPlayer(cid) then
if getPlayerVocation(cid) == 18 then
if getPlayerMana(cid) >= 0 then

doSendMagicEffect(getPlayerPosition(cid), 1)
addEvent(naruto17,2000,cid)


if getPlayerMana(cid) <= 0 then
stopEvent(naruto17)
doRemoveCondition(cid, 6)
end
end
end
end
end
return true
end

@#UP#@

Link para o comentário
Compartilhar em outros sites

Posts Recomendados

×
×
  • Criar Novo...