Postado Fevereiro 17, 2015 10 anos são dois moves com o mesmo objetivo, Curar o proprio status e dos pokes (aliados, em caso de duel) em uma determinada area. esse é o erro: [Error - TalkAction Interface] data/talkactions/scripts/move1.lua:onSay Description: data/lib/032-position.lua:140: attempt to get length of local 'area' (a number value) stack traceback: data/lib/032-position.lua:140: in function 'checkAreaUid' data/lib/pokemon moves.lua:3195: in function 'docastspell' data/talkactions/scripts/move1.lua:188: in function <data/talkactions/scripts/move1.lua:20> e esse o script: elseif spell == "Aromateraphy" or spell == "Emergency Call" then eff = spell == "Aromateraphy" and 14 or 13 doAreaCombatHealth(cid, GRASSDAMAGE, getThingPosWithDebug(cid), bombWee3, 0, 0, eff) if isSummon(cid) then doCureBallStatus(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "all") end doCureStatus(cid, "all") local uid = checkAreaUid(getThingPosWithDebug(cid), selfArea2, 1, 1) for _,pid in pairs(uid) do if isCreature(pid) then if ehMonstro(cid) and ehMonstro(pid) and pid ~= cid then doCureStatus(pid, "all") elseif isSummon(cid) and ((isSummon(pid) and canAttackOther(cid, pid) == "Cant") or (isPlayer(pid) and canAttackOther(cid, pid) == "Cant")) and pid ~= cid then if isSummon(pid) then doCureBallStatus(getPlayerSlotItem(getCreatureMaster(pid), 8).uid, "all") end doCureStatus(pid, "all") end end end se alguem puder ajudar. obrigado. obs. Se precisar de algum outro script, avisa que eu posto.
Postado Fevereiro 17, 2015 10 anos bom, pelo visto vc mudou as areas que a script checa, pq o script original eh esse elseif spell == "Aromateraphy" or spell == "Emergency Call" then eff = spell == "Aromateraphy" and 14 or 13 doAreaCombatHealth(cid, GRASSDAMAGE, getThingPosWithDebug(cid), electro, 0, 0, eff) if isSummon(cid) then doCureBallStatus(getPlayerSlotItem(getCreatureMaster(cid), 8).uid, "all") end doCureStatus(cid, "all") local uid = checkAreaUid(getThingPosWithDebug(cid), confusion, 1, 1) for _,pid in pairs(uid) do if isCreature(pid) then if ehMonstro(cid) and ehMonstro(pid) and pid ~= cid then doCureStatus(pid, "all") elseif isSummon(cid) and ((isSummon(pid) and canAttackOther(cid, pid) == "Cant") or (isPlayer(pid) and canAttackOther(cid, pid) == "Cant")) and pid ~= cid then if isSummon(pid) then doCureBallStatus(getPlayerSlotItem(getCreatureMaster(pid), 8).uid, "all") end doCureStatus(pid, "all") end end end agora se vc quer que a skill cura em uma area maior tente usar a grassarea (se nao me engano eh esse o nome msmo) Minhas Gambiarras [PDA] Pokedex Mostrando o Catch http://www.tibiaking.com/forum/topic/54998-pda-arrumando-a-dex/?view=findpost&p=323041
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.