Ir para conteúdo

Featured Replies

  • Respostas 13
  • Visualizações 1.2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • se vc usa tfs 1.3 não vai funcionar mesmo porque não existe pasta mods nele kkk   essa versão de código foi feita pata 8.6   remova o npc e o arquivo lua dele

  • então certifique-se de que o MOD está la na pasta MODS.   qualquer coisa só seguir estes passos:     http://www.tibiaking.com/forum/forums/topic/77489-86-task-system-40-task-s

  • entendi onde está o erro, vai ter que arrumar ele todo...   sabe onde está essa parte no seu mods:   por exemplo ta task [2]   [2] = {name = "Dragon", start = 176202, mons

Postado
  • Autor

sim arumei agora so fico esse erro como antes quando vo entregar a task 

[3/4/2018 15:55:23] [Error - NpcScript Interface] 
[3/4/2018 15:55:23] data/npc/scripts/simple_task.lua:onCreatureSay
[3/4/2018 15:55:23] Description: 
[3/4/2018 15:55:24] [string "task_sys = {..."]:122: attempt to index local 'i_i' (a number value)
[3/4/2018 15:55:24] stack traceback:
[3/4/2018 15:55:24]     [string "task_sys = {..."]:122: in function 'GiveRewardsTask'
[3/4/2018 15:55:24]     data/npc/scripts/simple_task.lua:58: in function 'callback'
[3/4/2018 15:55:24]     data/npc/lib/npcsystem/npchandler.lua:456: in function 'onCreatureSay'
[3/4/2018 15:55:24]     data/npc/scripts/simple_task.lua:8: in function <data/npc/scripts/simple_task.lua:8>

problema resolvido pode fechar 

Postado
  • Autor

end:onKill
Description:
[string "LuaInterface::loadBuffer"]:5: attempt to compare string with number
stack traceback:
        [string "LuaInterface::loadBuffer"]:5: in function <[string "LuaInterface::loadBuffer"]:2>

[Error - CreatureScript Interface]
domodlib('task_func')
function onKill(cid, target)
        if isPlayer(cid) and isMonster(target) then
                local t,daily = task_sys[getTaskMission(cid)], daily_task[getDailyTaskMission(cid)]
                if t and getPlayerStorageValue(cid, t.start) > 0 and isInArray(t.monsters_list, getCreatureName(target):lower()) and getPlayerStorageValue(cid, task_sys_storages[3]) < t.count then
                        setPlayerStorageValue(cid, task_sys_storages[3], getPlayerStorageValue(cid, task_sys_storages[3]) < 0 and 1 or (getPlayerStorageValue(cid, task_sys_storages[3])+1))
                        if getPlayerStorageValue(cid, task_sys_storages[8]) <= 0 and getPlayerStorageValue(cid, task_sys_storages[3]) < t.count then
                                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Task System] defeated Total [" .. getPlayerStorageValue(cid, task_sys_storages[3]) .. "/" .. t.count .. "] da Task do " .. t.name .. ".")
                        end
                        if getPlayerStorageValue(cid, task_sys_storages[3]) >= t.count then
                                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Task System] Parabens! Voce terminou a Task do "..t.name..", volte ao npc parece receber sua recompensa.")
                        end
                end
                if daily and getPlayerStorageValue(cid, task_sys_storages[7]) > 0 and getPlayerStorageValue(cid, task_sys_storages[6]) - os.time() >= 0 and isInArray(daily.monsters_list, getCreatureName(target):lower()) and getPlayerStorageValue(cid, task_sys_storages[5]) < daily.count then
                        setPlayerStorageValue(cid, task_sys_storages[5], getPlayerStorageValue(cid, task_sys_storages[5]) < 0 and 1 or (getPlayerStorageValue(cid, task_sys_storages[5])+1))
                        if getPlayerStorageValue(cid, task_sys_storages[8]) <= 0 and getPlayerStorageValue(cid, task_sys_storages[5]) < daily.count then
                                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Daily Task System] defeated Total [" .. getPlayerStorageValue(cid, task_sys_storages[5]) .. "/" .. daily.count .. "] da Task do " .. daily.name .. ".")
                        end
                        if getPlayerStorageValue(cid, task_sys_storages[5]) >= daily.count then
                                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Daily Task System] Parabens! Voce terminou a Task do "..daily.name..", volte ao npc parece receber sua recompensa.")
                        end
                end
        end
        return true
end:onKill
Description:
[string "LuaInterface::loadBuffer"]:5: attempt to compare string with number
stack traceback:
        [string "LuaInterface::loadBuffer"]:5: in function <[string "LuaInterface::loadBuffer"]:2>

 


olha o tanto de erro vc poderia me ajudar nisso 

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo