Ir para conteúdo

Pedro.

Membro
  • Registro em

  • Última visita

Tudo que Pedro. postou

  1. Provavelmente você não colocou as credenciais corretas amigo. ;s
  2. tá normal, verifique se a senha, e a database que voce criou está igual na config.lua.
  3. vá em htdocs/config/config.php e poste aqui você criou a db e importou certinho no phpmyadmin?
  4. poste sua config.lua aqui para nós, em spoiler por favor.
  5. o que você postou é normal, voce tem que ir clicando menu por menu e ir instalando, se ocorrer algum error, poste aqui.
  6. já foi pedido esse script aqui antes, creio que ainda não há para tfs 0.4. Porém já vi para tfs 1.1 boa sorte
  7. escolha a melhor resposta para adicionar a tag de resolvido, obrigado.
  8. tente trocar seu lastenews, ou baixe uma versão mais atualizada do gesior. Dependendo da versão do seu tfs, se for 1.0 + baixe o 2012.
  9. tente modificar por este aqui, antes faça um backup;.
  10. você usa tfs 0.4 por favor, quando pedir um script especifique no topico. function onLogin(cid) local rate = 1.3 -- 30% -- porcentagem local config = { premium_true = "você tem "..((rate - 1)*100).."% de exp a mais agora!", -- Editar msg de exp extra premium premium_false = "Compre seus dias de VIP ACC e dispare no ranking.", -- Editar msg de não ser premium } if isPremium(cid) then doPlayerSetExperienceRate(cid, rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.premium_true) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.premium_false) end return true end ´ps: na hora de registrar na lua, coloque conforme os outros, pois é diferente.
  11. estranho, era pra funcionar. Vou testar aqui, jaja edito.
  12. só pegar o código em html no twitter, e adicionar em html.
  13. seu site tá on? manda ai e me mostre aonde ficar.
  14. eu uso e no meu servidor funciona normalmente, tente esse aqui. npc/scripts/ libs/killingInTheNameOfQuest.lua creaturescript/killingInTheNameOfQuestKills dofile('data/lib/killingInTheNameOfQuest.lua') function onKill(cid, target, lastHit) local started = getPlayerStartedTasks(cid) if isPlayer(target) or isSummon(target) then return true end if started and #started > 0 then for _, id in ipairs(started) do if isInArray(tasks[id].creatures, getCreatureName(target):lower()) then if getPlayerStorageValue(cid, KILLSSTORAGE_BASE + id) < tasks[id].killsRequired then setPlayerStorageValue(cid, KILLSSTORAGE_BASE + id, getPlayerStorageValue(cid, KILLSSTORAGE_BASE + id) + 1) end end end end return true end tag <event type="kill" name="killingInTheNameOfQuestKills" script="killingInTheNameOfQuestKills.lua"/>
  15. crie um creaturescript, e adicione isto. local rate = 20 --- porcentagem que irá ganhar a mais. function onKill(cid, target, lastHit) if isPremium(cid) then local monster = Monster(target) if not monster then return true end for id, damage in pairs(monster:getDamageMap()) do local player = Player(id) if player then local experience = damage.total / monster:getType():getHealth() * monster:getType():getExperience() local expFormula = (((experience * Game.getExperienceStage(player:getLevel())) / 100) * rate) player:addExperience(math.floor(expFormula), true) end end end return true end adiciona o event em login player:registerEvent("Exp_Extra") e a tag em xml. <event type="kill" name="Exp_Extra" event="script" value="expextra.lua"/> créditos: luangostosão
  16. cara, o que o pessoal tá te mandando é um script de tile normal de vip system, por exemplo. Você usa uma potion e ganha uma storage de VIP, dai voce vai ter a permissão de passar no tile, acho que dá para usar no que você quer.. basta mudar algumas coisas, textos etc. no caso a tag você muda pelo item da "berserker potion" <action itemid="BERSERKER POTION" script="test.lua"/> Enfim, vamos ao script. Piso para passar somente quem usar o item. Crie em data/movements/scripts um arquivo entrada.lua function onStepIn(cid, item, position, fromPosition) local config = { msgDenied = "VOCE PRECISA USAR O ITEM...", msgWelcome = "MUDAR PELO TEXTO QUE DESEJA" } if getPlayerStorageValue(cid, 55489) - os.time() <= 0 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgDenied) doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_BLUE) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.msgWelcome) return TRUE end TAG 0.4 <movevent type="StepIn" uniqueid="13500" event="script" value="entrada.lua"/> TAG 1.0 <movevent event="StepIn" uniqueid="13500" script="entrada.lua"/> Crie em actions/script/other um arquivo .lua, certifique-se de por o mesmo nome na tag em action.xml function onUse(cid, item) if getPlayerStorageValue(cid, 55489) - os.time() < 0 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"Agora voce e um player VIP.") setPlayerStorageValue(cid, 55489, os.time() + (30*24*60*60)) doRemoveItem(item.uid, 1) else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"Voce ja e VIP so poderá renovar daqui 30 dias.") end return TRUE end Nessa´parte 30*24*60*60 onde esta 30 coloca os dias que quer adicionar créditos: Mitsuig
  17. tente assim. action.xml <action itemid="10309" script="test.lua"/> action/lua. local config = { removeItem = "yes", strInName = "[DNT] ", vipStorage = 13500, vipDays = 15 } config.removeItem = getBooleanFromString(config.removeItem) function onUse(cid, item, fromPosition, itemEx, toPosition) local name, guid = getCreatureName(cid), getPlayerGUID(cid) doRemoveItem(item.uid, config.removeItem and 1 or 0) setPlayerStorageValue(cid, config.vipStorage, (config.vipDays*24*60*60) + os.time()) doRemoveCreature(cid) db.query("UPDATE `players` SET `name` = '"..config.strInName..""..name.."' WHERE `id` = "..guid..";") return true end depois vá em login.lua e la no final você coloca isso; if(string.find(getCreatureName(cid), "[DNT] ") then if(getPlayerStorageValue(cid, 13500) < os.time) then local newname, guid = string.match(getCreatureName(cid), " (.+)"), getPlayerGUID(cid) setPlayerStorageValue(cid, 13500, -1) doRemoveCreature(cid) db.query("UPDATE `players` SET `name` = '"..newname.."' WHERE `id` = "..guid..";") return true end end
  18. qual versão do seu tfs?
  19. vai em lib, crie um lua e adicione 034-exhaustion.lua exhaustion = { check = function (cid, storage) if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end return getPlayerStorageValue(cid, storage) >= os.time() end, get = function (cid, storage) if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then return false end local exhaust = getPlayerStorageValue(cid, storage) if(exhaust > 0) then local left = exhaust - os.time() if(left >= 0) then return left end end return false end, set = function (cid, storage, time) setPlayerStorageValue(cid, storage, os.time() + time) end, make = function (cid, storage, time) local exhaust = exhaustion.get(cid, storage) if(not exhaust) then exhaustion.set(cid, storage, time) return true end return false end }
  20. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    complicado, nunca abri servidor em casa caseiro, sempre foi por dedicado.
  21. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    verefique o firewall também, ve se está ativo as vezes ele bloqueia, dps ve seu ip http://www.meuip.com.br/ e pede p alguem tentar entrar.

Informação Importante

Confirmação de Termo