Ir para conteúdo

(Resolvido)como abrir quantas tasks quiser? script do vodkart

Featured Replies

  • Respostas 30
  • Visualizações 2.2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Está aqui:   https://pastebin.com/raw/Z7KtXhXT   Obrigado pela sua ajuda!   OBS: Não esqueça de excluir a outra task, para não dar conflito com a talkactions !task e task

  • @poko360 tinha mta coisa faltando, quando vc copiou saiu várias funções n sei pq   pega daqui:     https://pastebin.com/raw/kF7TLf9A

  • @Vodkart lindo, conseguiu? esquece de mim nauu :C

Posted Images

  • 2 weeks later...
Postado
  • Autor

@Vodkart
pelo q entendi o problema ta aqui:
[1:6:39.456] [string "LuaInterface::loadBuffer"]:7: attempt to compare string with number
[1:6:39.460] stack traceback:
[1:6:39.461]    [string "LuaInterface::loadBuffer"]:7: in function <[string "LuaInterface::loadBuffer"]:2>

nessa parte do script aqui

Spoiler

<event type="kill" name="KillAutTask" event="script"><![CDATA[
domodlib('auto_stask')
function onKill(cid, target)
    local str = ""
    if isPlayer(cid) and isMonster(target) then
        for task , info in pairs(automatic_task) do
            if isInArray(info.monsters_list, getCreatureName(target):lower()) and getPlayerLevel(cid) >= info.level_min then
                local ret = tonumber(getPlayerStorageValue(cid, info.storage) <= 0 and 0 or getPlayerStorageValue(cid, info.storage))
                if tonumber(ret) < tonumber(info.count) then
                    setPlayerStorageValue(cid, info.storage, tonumber(getPlayerStorageValue(cid, info.storage) <= 0 and 1 or getPlayerStorageValue(cid, info.storage)+1))
                    if getPlayerStorageValue(cid, automatic_task_config.defeat_storage) <= 0 and tonumber(getPlayerStorageValue(cid, info.storage)) < info.count then
                        doPlayerSendTextMessage(cid, 24,"[Task System] defeated Total [" .. tonumber(getPlayerStorageValue(cid, info.storage)) .. "/" .. info.count .. "] da Task do " .. info.name .. ".")
                    end
                    if tonumber(getPlayerStorageValue(cid, info.storage)) >= info.count then
                        if info.exp > 0 then doPlayerAddExp(cid, info.exp) str = str.."".. (str == "" and "" or ", ") .." "..info.exp.." de exp" end
                        if info.money > 0 then doPlayerAddMoney(cid, info.money) str = str.."".. (str == "" and "" or ", ") ..""..info.money.." gps" end
                        if table.maxn(info.reward) > 0 then GiveRewardsTask(cid, info.reward) str = str.."".. (str == "" and "" or ", ") ..""..getItemsFromList(info.reward) end
                        doPlayerSendTextMessage(cid, automatic_task_config.reward_type, "[Task System] Voce completou a "..info.name.." Task. Obrigado pela sua ajuda!! Suas Recompensas: "..(str == "" and "nenhuma" or str))
                        if info.can_repeat == true then
                            setPlayerStorageValue(cid, info.storage, 0)
                        end
                    end
                end
            end
        end
    end
    return true
end]]></event>
</mod>

acho que é na hora que o script zera as tasks, que da algum error.
tens alguma ideia doq seja nao? =s

Editado por poko360 (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.

Visitante
Responder

Quem Está Navegando 0

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

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo