Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 12/07/20 em todas áreas

  1. (Resolvido)[Action] Reset system por Action

    Msloko reagiu a Shiuns por uma resposta no tópico

    1 ponto
    Falta estudar tabelas... local tabble = { {reqVoc= 7, needLevel=330000}, } print(tabble.reqVoc) -- retorna nil --------------------------- local tabble = { {reqVoc= 7, needLevel=330000}, } print(tabble[1].reqVoc) -- retorna 7 ---------------------------- o certo é usar: local tabble = { reqVoc= 7, needLevel= 330000, } print(tabble.reqVoc) o código: function onUse(cid, fromPosition, itemEx, toPosition) local tabble = { reqVoc = 7, needLevel = 330000 } local config = { pid = getPlayerGUID(cid), newlv = 90000, life = 3599865, mana = 3599715 } if getPlayerLevel(cid) < 330000 and tabble.needLevel then doPlayerPopupFYI(cid, "Voce precisa ser level " .. needLevel .. " para resetar.") return true elseif tabble.reqVoc >= getPlayerVocation(cid) or 8 then doPlayerPopupFYI(cid, "Voce já é vocaçao.") return true elseif tabble.reqVoc <= 7 and getPlayerVocation(cid) then doPlayerPopupFYI(cid, "Voce precisa ser vocaçao para resetar.") return true end if tabble.reqVoc == getPlayerVocation(cid) then setPlayerStorageValue(cid, 887978, 1) end local newvoc = tabble.reqVoc ~= getPlayerVocation(cid) and (tabble.reqVoc+1) setPlayerStorageValue(cid, 887979, newvoc) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `level` = "..config.newlv..", `experience` = "..getExperienceForLevel(config.newlv)..",`manamax` = "..config.mana..",`health` = "..config.life..", `healthmax` = "..config.life..",`mana` = "..config.mana.." WHERE `id` = "..config.pid) return true end
  2. (Resolvido)[Action] Reset system por Action

    Msloko reagiu a Nysman por uma resposta no tópico

    1 ponto
  3. Comunicado Oficial - Tibiaking.com

    Pedro. reagiu a Cat por uma resposta no tópico

    1 ponto
    Comunicado Oficial Venho informar o encerramento da parceria do Tibia King com o projeto OTG e todos os membros envolvidos no projeto devido à problemas.
  4. Sprites Return Of The Saiyans

    koyotestark reagiu a FlameArcixt por uma resposta no tópico

    1 ponto
    Servidor com sprites próprias, todas pagas, não usam nenhuma sprite de outro jogo, investiram grana e tempo nas sprites pra alguém chegar e ripar, complicado
  5. Talkaction - Reparar Soft Boots TFS 1.2

    Baiakym reagiu a luanluciano93 por uma resposta no tópico

    1 ponto
    function onSay(player, words, param) if player:getItemCount(10021) >= 1 then if player:removeMoney(20000) then if not player:removeItem(10021, 1) then player:sendCancelMessage("You don't have a worn soft boots to repair.") player:getPosition():sendMagicEffect(CONST_ME_POFF) end player:addItem(2640, 1) player:sendTextMessage(MESSAGE_INFO_DESCR, "Your worn soft boots has been repaired!") player:getPosition():sendMagicEffect(CONST_ME_FIREWORK_YELLOW) else player:sendCancelMessage("You don't have 50000 gold coints to repair a worn soft boots.") player:getPosition():sendMagicEffect(CONST_ME_POFF) end else player:sendCancelMessage("You don't have a worn soft boots to repair.") player:getPosition():sendMagicEffect(CONST_ME_POFF) end return false end não testei
Líderes está configurado para São Paulo/GMT-03:00

Informação Importante

Confirmação de Termo