-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 510 visualizações
-
- 0 respostas
- 1980 visualizações
-
- 1 resposta
- 2312 visualizações
-
- 0 respostas
- 1082 visualizações
-
- 1 resposta
- 1245 visualizações
-
Pergunta
rohfagundes 78
gente eu to tendo um erro aqui q n sei como arrumar
o erro q aparece é esse
a parte do erro é essa \/
function onCastSpell(cid, var)
local startPos = getCreaturePosition(cid)
local spell_storage = 1243545
if getPlayerStorageValue(cid, spell_storage) < 100 then
RunPart(combat1_lv1,cid,var,dfcombat1_lv1,startPos)
addEvent(RunPart,200,combat2_lv1,cid,var,dfcombat2_lv1,startPos)
addEvent(RunPart,400,combat3_lv1,cid,var,dfcombat3_lv1,startPos)
addEvent(RunPart,600,combat4_lv1,cid,var,dfcombat4_lv1,startPos)
addEvent(RunPart,800,combat5_lv1,cid,var,dfcombat5_lv1,startPos)
addEvent(RunPart,1000,combat6_lv1,cid,var,dfcombat6_lv1,startPos)
addEvent(RunPart,1200,combat7_lv1,cid,var,dfcombat7_lv1,startPos)
addEvent(RunPart,1400,combat8_lv1,cid,var,dfcombat8_lv1,startPos)
addEvent(RunPart,1600,combat9_lv1,cid,var,dfcombat9_lv1,startPos)
addEvent(RunPart,1800,combat10_lv1,cid,var,dfcombat10_lv1,startPos)
addEvent(RunPart,2000,combat11_lv1,cid,var,dfcombat11_lv1,startPos)
addEvent(RunPart,2200,combat12_lv1,cid,var,dfcombat12_lv1,startPos)
addEvent(RunPart,2700,combat13_lv1,cid,var,dfcombat13_lv1,startPos)
addEvent(RunPart,3000,combat14_lv1,cid,var,dfcombat14_lv1,startPos)
addEvent(RunPart,3300,combat15_lv1,cid,var,dfcombat15_lv1,startPos)
addEvent(RunPart,3600,combat16_lv1,cid,var,dfcombat16_lv1,startPos)
setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1)
elseif getPlayerStorageValue(cid, spell_storage) == 100 then
RunPart(combat0_lv2,cid,var,dfcombat0_lv2,startPos)
addEvent(RunPart,200,combat2_lv2,cid,var,dfcombat2_lv2,startPos)
addEvent(RunPart,400,combat4_lv2,cid,var,dfcombat4_lv2,startPos)
addEvent(RunPart,600,combat6_lv2,cid,var,dfcombat6_lv2,startPos)
addEvent(RunPart,800,combat8_lv2,cid,var,dfcombat8_lv2,startPos)
addEvent(RunPart,1000,combat10_lv2,cid,var,dfcombat10_lv2,startPos)
addEvent(RunPart,1200,combat12_lv2,cid,var,dfcombat12_lv2,startPos)
addEvent(RunPart,1400,combat14_lv2,cid,var,dfcombat14_lv2,startPos)
addEvent(RunPart,1600,combat16_lv2,cid,var,dfcombat16_lv2,startPos)
addEvent(RunPart,1800,combat18_lv2,cid,var,dfcombat18_lv2,startPos)
addEvent(RunPart,2000,combat20_lv2,cid,var,dfcombat20_lv2,startPos)
addEvent(RunPart,2200,combat22_lv2,cid,var,dfcombat22_lv2,startPos)
addEvent(RunPart,2700,combat27_lv2,cid,var,dfcombat27_lv2,startPos)
addEvent(RunPart,3000,combat30_lv2,cid,var,dfcombat30_lv2,startPos)
addEvent(RunPart,3300,combat33_lv2,cid,var,dfcombat33_lv2,startPos)
addEvent(RunPart,3600,combat36_lv2,cid,var,dfcombat36_lv2,startPos)
setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1)
doPlayerSendTextMessage(cid, 22, "Your teste advanced to level 2")
elseif getPlayerStorageValue(cid, spell_storage) > 100 then
RunPart(combat0_lv2,cid,var,dfcombat0_lv2,startPos)
addEvent(RunPart,200,combat2_lv2,cid,var,dfcombat2_lv2,startPos)
addEvent(RunPart,400,combat4_lv2,cid,var,dfcombat4_lv2,startPos)
addEvent(RunPart,600,combat6_lv2,cid,var,dfcombat6_lv2,startPos)
addEvent(RunPart,800,combat8_lv2,cid,var,dfcombat8_lv2,startPos)
addEvent(RunPart,1000,combat10_lv2,cid,var,dfcombat10_lv2,startPos)
addEvent(RunPart,1200,combat12_lv2,cid,var,dfcombat12_lv2,startPos)
addEvent(RunPart,1400,combat14_lv2,cid,var,dfcombat14_lv2,startPos)
addEvent(RunPart,1600,combat16_lv2,cid,var,dfcombat16_lv2,startPos)
addEvent(RunPart,1800,combat18_lv2,cid,var,dfcombat18_lv2,startPos)
addEvent(RunPart,2000,combat20_lv2,cid,var,dfcombat20_lv2,startPos)
addEvent(RunPart,2200,combat22_lv2,cid,var,dfcombat22_lv2,startPos)
addEvent(RunPart,2700,combat27_lv2,cid,var,dfcombat27_lv2,startPos)
addEvent(RunPart,3000,combat30_lv2,cid,var,dfcombat30_lv2,startPos)
addEvent(RunPart,3300,combat33_lv2,cid,var,dfcombat33_lv2,startPos)
addEvent(RunPart,3600,combat36_lv2,cid,var,dfcombat36_lv2,startPos)
setPlayerStorageValue(cid, spell_storage, getPlayerStorageValue(cid, spell_storage)+1)
end
return TRUE
end
alguem ai pode me ajudar
Editado por rohfagundesLink para o comentário
Compartilhar em outros sites
7 respostass a esta questão
Posts Recomendados