Ir para conteúdo

Fortation

Membro
  • Registro em

  • Última visita

Tudo que Fortation postou

  1. Fortation postou uma resposta no tópico em Suporte Tibia OTServer
    é so vc usa as SPR do tibiacliente 8.54.
  2. Fortation postou uma resposta no tópico em Playground (Off-topic)
    brigado vo criar e começar a jogar amanhã
  3. Man vc quer tipo Sorcerer Vira Master Sorcerer Knight Vira Elite Knight Paladin Vira Royal Paladin Druid Vira Elder Druid ?
  4. Fortation postou uma resposta no tópico em Playground (Off-topic)
    global so que eu nunca peguei pra jogar serio, queria dicas, qual world começo entre outras.
  5. Fortation postou uma resposta no tópico em Suporte Tibia OTServer
    adiciona mais uma tag [3] = {level = 8, time = 7 * 24 * 60 * 60}, ficando [1] = {level = 100, time = 7 * 24 * 60 * 60}, [2] = {level = 300, time = 60 * 24 * 60 * 60}, [3] = {level = 8, time = 7 * 24 * 60 * 60}
  6. Oque acham Last-Global ? Pra Min Foi o Melhor.
  7. */r - remove um iten do chao = /r 100 - remove 100 itens de uma vez */t - voltar para o templo = /t nome do char manda o char para o templo */a - anda um sql = /a 50 anda 50 sql */s - invoca um pokemon para você como se tivesse em uma pokeball */i nome do iten - faz ele exemplo- /i ultra ball obs-tbm funciona com id do iten exp-/i 2160 */m nome do pokemon-sumona um pokemon q da loot e exp */n nome do npc-cria um npc no seu lado */c nome do player ou npc - puxa o npc ou o player ate você */goto nome do player,npc,pokemon - vai ate o player,npc,pokemon */close - feicha o server so tutor,gm,cm,god fica online */open - abre o server todos poden entrar */up - sobe un andar a cima de vc */down - desce um andar abaixo de vc */owner nome do player-da a casa para o player */b - manda msg para o server todo exemplo -/b Bem vindo ao blog do erondino */town numero da cidade - vai ate o templo da city exemplo -/town 1 /town 2... */ghost - fica invisivel se vc for gm so os gm,cm,god pode te ver se vc for cm so os cm,god pode te ver mais se vc for god so os god pode te ver */attr group 1,2,3,4,5,6 - promove um player exemplo -quer promove um player para tutor /attr group 2 , para senior tutor /attr group 3 promover para gm /attr group 4 , para cm /attr group 5 , para god /attr group 6 */attr set name "pikachu Ultraball - coloque a poke,great,super,ultra ball na sua frente e aperte enter ai colocara o pikachu na poke,great,super,ultra ball obs-ali esta atualizado para ultra ball para great é Greatball para super Superball para poke ball Pokeball no lugar do pikachu vc poe o nome do pokemon que vc quiser obs-se tem que capturar um pokemon primeiro */attr set name "escreve algo aqui - vire para a placa e aperte enter ai se muda o nome dela * /attr position x y z - coloca uma posição no portal exemplo - /attr position 1000 1000 1000 nao poe virgula */attr health 10000 - Da vida para algun ser vivo se colocar um menos na frente do 10000 tira vida esse comando pode ser usado para matar gods */attr sex - muda o sexo do player 1-Homen 2-Mulher */mode - muda o server de pvp,non pvp > /mode pvp > /mode nonpvp */attr cap - Aumenta a capacidade do player de usar pokemon Copia e cola em um bloco de notas que fica melhor pra visualizar
  8. Fortation postou uma resposta no tópico em Suporte Tibia OTServer
    Em globalevents/script vc cria um arquivo chamado "dbcleaner" (sem " ) e coloca isso ------------------------------------------------------------------------------* ----- [[> Automated Database Cleanup 1.1 Structure //By Cybermaster <]] ------| -------------- [[> System 2.0 Revamped by Teh Maverick <3 <]] ----------------| ------------- [[> Removal of empty accounts by darkaos <]] ---------------| --------------- [[> Function getDBPlayersCount() by Elf <]] ------------------| ------------------------------------------------------------------------------| ------------------------------------------------------------------------------| --- ~!READ THIS!~ ------------------------------------------------------------| --- Be sure to back up your database and test this on your server first, -----| --- I(Teh Maverick) cannot guarantee it will work the same for every core. ---| --- It is very easy to test, with the log file and values that are printed ---| -----------------------------------Enjoy!-------------------------------------| ------------------------------------------------------------------------------* function countRowsWhereInTable(table, field, condition) local result = db.getResult("SELECT COUNT(" .. field .. ") as count FROM " .. table .. " WHERE " .. field .. " = '" .. condition .. "';") local tmp = result:getDataInt("count") result:free() return tmp end function getDBPlayersCount() local result = db.getResult("SELECT COUNT(id) as count FROM `players`;") local tmp = result:getDataInt("count") result:free() return tmp end function getDBAccountsCount() local result = db.getResult("SELECT COUNT(id) as count FROM `accounts`;") local tmp = result:getDataInt("count") result:free() return tmp end function onstartup() local DB_BEFORE = {players = getDBPlayersCount(), accounts = getDBAccountsCount()} local result,result1, ii, numPlayersToDelete, numAccountsDeleted, tmp = 0, 0, 0, 0, 0 local pid, aid = {}, {} local dropCount = {players={},accounts={}} local config = { deleteAccountWithNoPlayers = true, cleanChildTables = true, printResult = true, saveResultToFile = true, logFileName = 'db_cleanup.txt' } --In each table, players with below specified level, and days of inactivity will be deleted from db on server startup local cleanup = { [1] = {level = 100, time = 7 * 24 * 60 * 60}, [2] = {level = 300, time = 60 * 24 * 60 * 60} } local childAttributeTables = { players = { [1] = {table = "`player_viplist`", idField = "`player_id`"}, [2] = {table = "`player_storage`", idField = "`player_id`"}, [3] = {table = "`player_spells`", idField = "`player_id`"}, [4] = {table = "`player_skills`", idField = "`player_id`"}, [5] = {table = "`player_namelocks`", idField = "`player_id`"}, [6] = {table = "`player_items`", idField = "`player_id`"}, [7] = {table = "`player_depotitems`", idField = "`player_id`"}, [8] = {table = "`houses`", idField = "`owner`"}, [9] = {table = "`house_auctions`", idField = "`player_id`"}, [10] = {table = "`players`", idField = "`id`"} -- Keep this as the last item in the array --Note: `houses` and `bans` are in the DB triggers for TFS so don't worry about them. --Also I did not want to put killers, or deaths on here because that is historic data, --do so at your ouwn risk. }, accounts = { [1] = {table = "`accounts`", idField = "`id`"}, [2] = {table = "`account_viplist`", idField = "`account_id`"} } } --Clean up all the players and player data for i = 1, #cleanup do result = db.getResult("SELECT `id`,`name`,`account_id` FROM `players` WHERE `level` < ".. cleanup[i].level .." AND `name` NOT IN('Account Manager', 'Sorcerer Sample', 'Druid Sample', 'Paladin Sample', 'Knight Sample', 'Rook Sample') AND `group_id` < 2 AND `lastlogin` < UNIX_TIMESTAMP() - ".. cleanup[i].time ..";") if(result:getID() ~= -1) then ii = 1 repeat pid[ii] = result:getDataInt("id") -- list the players id into an array aid[ii] = result:getDataInt("account_id") -- list the account id of each player being removed into an array ii = ii + 1 until not(result:next()) result:free() end numPlayersToDelete = ii - 1 --Drop players and their child table attribute data such as skills, items, etc. for j = 1, numPlayersToDelete do if(config.cleanChildTables) then for k = 1, #childAttributeTables.players do dropCount.players[k] = ((dropCount.players[k] or 0) + countRowsWhereInTable(childAttributeTables.players[k].table, childAttributeTables.players[k].idField, pid[j])) db.executeQuery("DELETE FROM " .. childAttributeTables.players[k].table .. " WHERE " .. childAttributeTables.players[k].idField .. " = '" .. pid[j] .. "';") end else db.executeQuery("DELETE FROM `players` WHERE `id` = '" .. pid[j] .. "';") end end end --Drop all the accounts that have 0 players linked to them (at the moment its only checking from the list of players removed) if config.deleteAccountWithNoPlayers then --This part was scripted by Darkhaos, modified/fixed by Teh Maverick --[[ for acc = 1, #aid do result1 = db.getResult("SELECT `id` FROM `accounts` WHERE `id` = '" .. aid[acc] .. "';") if result1:getID() ~= -1 then -- check to make sure the account exists result1:free() for i = 1, #childAttributeTables.accounts do --Make sure there are no other players on the account result1 = db.getResult("SELECT COUNT(id) as count FROM `players` WHERE `account_id` = '" .. aid[acc] .. "';") tmp = result1:getDataInt("count") if(tmp <= 0) then --Remove accounts dropCount.accounts[i] = ((dropCount.accounts[i] or 0) + countRowsWhereInTable(childAttributeTables.accounts[i].table, childAttributeTables.accounts[i].idField, aid[acc])) db.executeQuery("DELETE FROM " .. childAttributeTables.accounts[i].table .. " WHERE " .. childAttributeTables.accounts[i].idField .. " = '" .. aid[acc] .. "';") end end end end end --]] --Print and Save results (configurable) local DB_NOW = {players = DB_BEFORE.players - getDBPlayersCount(), accounts = DB_BEFORE.accounts - getDBAccountsCount()} if DB_NOW.players > 0 or DB_NOW.accounts > 0 then local text = ">> [DBCLEANUP] " .. DB_NOW.players .. " inactive players" .. (config.deleteAccountWithNoPlayers and " and " .. DB_NOW.accounts .. " empty accounts" or "") .. " have been deleted from the database." --Write to console if config.printResult then print("") print(text) if config.cleanChildTables then --Write player info for i = 1,#dropCount.players do print("[!] --> Dropped: " .. dropCount.players[i] .. " from " .. childAttributeTables.players[i].table .. " table") end --Write account info if config.deleteAccountWithNoPlayers then for i = 1,#dropCount.accounts do print("[!] --> Dropped: " .. dropCount.accounts[i] .. " from " .. childAttributeTables.accounts[i].table .. " table") end end print("") end end --Write to file if config.saveResultToFile then local file = io.open("data/logs/"..config.logFileName, "a") file:write("[" .. os.date("%d %B %Y %X ", os.time()) .. "] " .. text .. "\n") if config.cleanChildTables then --Write player info for i = 1, #dropCount.players do file:write("[!] --> Dropped: " .. dropCount.players[i] .. " from " .. childAttributeTables.players[i].table .. " table\n") end --Write account info if config.deleteAccountWithNoPlayers then for i = 1, #dropCount.accounts do file:write("[!] --> Dropped: " .. dropCount.accounts[i] .. " from " .. childAttributeTables.accounts[i].table .. " table\n") end end file:write("\n") end file:close() end end return true end [/code] vai em globalevents.xml e cola isso [code]<globalevent name="dbcleaner" type="startup" event="script" value="dbcleaner.lua"/> Você só vai editar isso: [1] = {level = 100, time = 7 * 24 * 60 * 60}, [2] = {level = 300, time = 60 * 24 * 60 * 60} Level minimo e o tempo... Por exemplo: level 100- deletar acada 7 dias de inativo... level 300- deletar acada 2 meses de inativo...
  9. Vá em actions/script crie um arquivo lua com o nome q quiser e adicione isso Adicione essa tag em Actions.xml <action actionid="6001-6004" script="nome do seu script.lua"/> Configuraçao: [6001] = {30,7429}, [ActionID do báu ou alavanca] = {Quanto vai custar, ID DO ITEM QUE SERÁ VENDIDO}.
  10. Lose Global
  11. Mostre O Erro.
  12. Aperta Ctrl (control) + T vai aparecer as Towers (cidades) vc ve as coordenadas aperta Control +G digita as coordenadas.
  13. Vc esqueceu uma coisinha muito importante. se vc nao trokar Sha1 Por Plain. nao vai dar pra logar o acc manager. Faça o processo do War e vai no config.lua Procure por sha1 e troke por plain
  14. System Bem Legal. so q n escutei nada.
  15. o server em si, foi feito pra se usar um website. ele so rodara se vc usa algum website desde gesior a modern acc.
  16. Fortation postou uma resposta no tópico em Eventos de Mapping
    VitorFT e Ricardo Parabens Seus Mapas Ficaram Bem Legais.
  17. local item = 2160 <<< ID DO DINHEIRO QUE NO CASO SERIA O CRYSTAL COIN local quantidade = 1 << QUANTIDADE DE CRYSTAL COIN local village1 = {x=102, y=1027, z=7} << Destino (coordenadas). ele sera transportado para o local cuja cordenada seria 102,1027,7. local village2 = {x=121, y=321, z=7
  18. Adorei Eu Amo OT de Exp Alta rep+
  19. [RESOLVIDO] Banindo IP permanentemente + bug de criar item Mais Atenção
  20. Fortation postou uma resposta no tópico em Playground (Off-topic)
    Curti a Musica
  21. Fortation postou uma resposta no tópico em Playground (Off-topic)
  22. Fortation postou uma resposta no tópico em Playground (Off-topic)
    Só Que Nao.
  23. timeBetweenExActions = 800 coloque o valor desejado.

Informação Importante

Confirmação de Termo