Postado Abril 30, 2016 9 anos Eu tenho um sistema de task, e utilizo OTX. Estou com esse problema aqui: aqui seria a função com erro na linha 13 function taskKills(cid, storage) kills = getPlayerStorageValue(cid, storage) if kills < 0 then kills = 0 end return kills end e esse o creaturescripts -- Script por amoeba13 -- function onKill(cid, target, lastHit) if not isMonster(target) or not isPlayer(cid) then return true end for _, tasks in pairs(amoebaTask) do if isInArray(tasks.creatures, getCreatureName(target)) then if taskKills(cid, tasks.storagecount) < tasks.count then doPlayerSetStorageValue(cid, tasks.storagecount, taskKills(cid, tasks.storagecount)+1) break end else end end return true end OBS: eu já tentei usar o mas fica dando uns bugs de resetar task sozinho e aparecer uns caracteres doidos na task. (Exemplo: Dragon Lord [#$@#]) dentro dos colchetes era pra ter somente números. Editado Abril 30, 2016 9 anos por Mr. Void (veja o histórico de edições)
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.