Ir para conteúdo

Tiagozor

Membro
  • Registro em

  • Última visita

Tudo que Tiagozor postou

  1. Olá possuou dois problemas: 1 na promotion quando o player fica free ele perde, preciso que ele mesmo free fique promotion. 2 treiner offline sobe skill muito rápido, tentei modificar o cálculo mas aparentemente está igual.
  2. Tiagozor postou uma resposta no tópico em Suporte Tibia OTServer
    Boa noite estou com um problema, na hora de fazer login ele não mostra quantos dias de premium account tem, e na hora de deslogar ele mostra um valor gigantesco de dias. lembrando que no config está: premium free=false. Uso o distro do lion's rock 10.90 em linux.
  3. bump. alguém com alguma ideia? posso por os scripts e vamos tentando juntos...
  4. testa so com o dmz habilitado, ele deveria liberar todas as portas...
  5. bota ali no protocolo ambos, no ip origem/destino deixa os dois o mesmo, na regra põe nome diferente, e lá em dmz deixa desabilitado.
  6. Boa noite, como esta no titulo é isto que preciso, utilizo tfs 1.0+gesior 2012, e de forma alguma consegui fazer a war acabar pelas frags, se eu limitar a 10 frags, mato 10,20,30 vezes e ela não termina, se alguém tiver uma ideia de como posso fazer isso, agradeço!
  7. tem certeza que ele ta na pasta scripts msm? tente mudar o diretorio crie uma outra pasta e ponha nela
  8. provável que o item esteja registrado em outro local, já deu uma olhada no movements? seria bom usar o notpad++, ai tem a opção de localizar tudo, tu coloca esse id la e procura em toda pasta do ot, ele vai te dizer os scripts que contem esse id, ai tu acha bem facil o erro.
  9. Tiagozor postou uma resposta no tópico em Suporte Tibia OTServer
    Uniserver e bem simples de usar 1º baixar ele -> http://www.uniformserver.com/(baixe o versão mais recente) 2º descompactar ele no diretorio C: ( la onde aparece as pastas arquivos de programas, etc...) 3º executar ele(apache e mysql), logo que executar ele vai pedir para fornecer uma senha do root ( escolha uma senha e anote ela) 4º botar seu site na pasta www. As demais configs são no config.lua, desbloquear portas....
  10. eu uso servercore, servidor+mysql no vps com linux, e uma hospedagem com cpanel pro site. o site busca a conexão no vps que esta alojado o mysql e o servidor...
  11. Tiagozor postou uma resposta no tópico em Suporte Tibia OTServer
    Não lido com sqlite, mas te dou um conselho, use MYSQL, troque o xampp pelo UNISERVER. Mysql e mais estável, menos suscetível a bugs e crashs. Uniserver gosto mais pela praticidade de rodar ele, e só baixar e usar, não requer nem instalação e também pela questão de segurança. A configuração do mysql+uniserver e bem simples se precisar de ajuda e só falar.
  12. as configurações da database estão ok? ta configurado certo o apache e mysql? tira um foto do distro com o erro ai e manda aqui.
  13. Tiagozor postou uma resposta no tópico em Suporte Tibia OTServer
    esta usando tfs, qual versão? qual a configuração da database do ot?
  14. Lembrando se for hospedar o mysql na maquina não esquece de alterar no my.ini o -> bind-address=127.0.0.1, pode tanto comentar ele com um #, botar ele todo 0.0.0.0 ou exclusivo para o ip do site.
  15. Consegui resolver o problema, era na database, refiz o processo de instalação dela, provavelmente tinha faltado alguma coluna nela.
  16. PHP.INI: Não cheguei a alterar nada ele ja estava como ON WORKBENCH: Fiz o teste instalando ele em outro pc e conectou OK
  17. Boa noite. Eu possuo dois hosts um para o servidor e outra para o site, pois bem.... Eu sempre utilizei Windows e rodava tranquilo em um server o Uniserver com o apache+mysql e no outro host o gesior. tinha a configuração certa, o gesior acessava remotamente o mysql e tudo tranquilo. Agora eis que surge o problema, estou com um host novo LINUX Ubuntu 14.4 LTS. instalei nele o mysql+php+apache (Lamp) e estou tentando da mesma forma que no windows buscar o database remotamente, mas agora ele esta com um erro, simplesmente quando se carrega a pagina ela fica toda branca, não da nenhum erro escrito, simplesmente fica branca. Alguém já teve algum erro assim, ou tem alguma luz para me dar? Poderia ser alguma permissão que não dei? Já chequei a porta 3306 no ubuntu e esta aberta. Agradeço muito quem se disponibilizar a me ajudar!
  18. Boa tarde :] Estou com um problema estranho na parte do Guild Wars, uso a ultima versão do TFS 1.0 compilada ontem. Quando criou uma guildwar de 10 frags e termino ela matando 10x o player ela não acaba. Não me gera nenhum erro. Uso como website o Znoteaac, nele vem um script de playerdeath que analisando os dois, o do znote e do tfs, percebe-se que o znote tem uma ultima parte que registra as mortes e manda a mensagem in-game que acabou a war, porem se eu uso o script do znote me gera um erro. alguém tem um script de playerdeath com essa parte de finalizar a war? ou pode me ajudar a arrumar o script? TFS 1.0 PlayerDeath local deathListEnabled = true local maxDeathRecords = 5 function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are dead.") if not deathListEnabled then return end local byPlayer = 0 local killerName if killer ~= nil then if killer:isPlayer() then byPlayer = 1 else local master = killer:getMaster() if master and master ~= killer and master:isPlayer() then killer = master byPlayer = 1 end end killerName = killer:getName() else killerName = "field item" end local byPlayerMostDamage = 0 local mostDamageKillerName if mostDamageKiller ~= nil then if mostDamageKiller:isPlayer() then byPlayerMostDamage = 1 else local master = mostDamageKiller:getMaster() if master and master ~= mostDamageKiller and master:isPlayer() then mostDamageKiller = master byPlayerMostDamage = 1 end end mostDamageName = mostDamageKiller:getName() else mostDamageName = "field item" end local playerGuid = player:getGuid() db.query("INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `is_player`, `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`) VALUES (" .. playerGuid .. ", " .. os.time() .. ", " .. player:getLevel() .. ", " .. db.escapeString(killerName) .. ", " .. byPlayer .. ", " .. db.escapeString(mostDamageName) .. ", " .. byPlayerMostDamage .. ", " .. (unjustified and 1 or 0) .. ", " .. (mostDamageUnjustified and 1 or 0) .. ")") local resultId = db.storeQuery("SELECT `player_id` FROM `player_deaths` WHERE `player_id` = " .. playerGuid) local deathRecords = 0 local tmpResultId = resultId while tmpResultId ~= false do tmpResultId = result.next(resultId) deathRecords = deathRecords + 1 end if resultId ~= false then result.free(resultId) end local limit = deathRecords - maxDeathRecords if limit > 0 then db.asyncQuery("DELETE FROM `player_deaths` WHERE `player_id` = " .. playerGuid .. " ORDER BY `time` LIMIT " .. limit) end if byPlayer == 1 then local targetGuild = player:getGuild() targetGuild = targetGuild and targetGuild:getId() or 0 if targetGuild ~= 0 then local killerGuild = killer:getGuild() killerGuild = killerGuild and killerGuild:getId() or 0 if killerGuild ~= 0 and targetGuild ~= killerGuild and isInWar(player:getId(), killer:getId()) then local warId = false resultId = db.storeQuery("SELECT `id` FROM `guild_wars` WHERE `status` = 1 AND ((`guild1` = " .. killerGuild .. " AND `guild2` = " .. targetGuild .. ") OR (`guild1` = " .. targetGuild .. " AND `guild2` = " .. killerGuild .. "))") if resultId ~= false then warId = result.getDataInt(resultId, "id") result.free(resultId) end if warId ~= false then db.asyncQuery("INSERT INTO `guildwar_kills` (`killer`, `target`, `killerguild`, `targetguild`, `time`, `warid`) VALUES (" .. db.escapeString(killerName) .. ", " .. db.escapeString(player:getName()) .. ", " .. killerGuild .. ", " .. targetGuild .. ", " .. os.time() .. ", " .. warId .. ")") end end end end end Znoteaac Playerdeath local deathListEnabled = true local maxDeathRecords = 5 function onDeath(cid, corpse, killer, mostDamage, unjustified, mostDamage_unjustified) local player = Player(cid) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are dead.") if not deathListEnabled then return end local byPlayer = 0 local killerCreature = Creature(killer) if killerCreature == nil then killerName = "field item" else if killerCreature:isPlayer() then byPlayer = 1 else local master = killerCreature:getMaster() if master and master ~= killerCreature and master:isPlayer() then killerCreature = master byPlayer = 1 end end killerName = killerCreature:getName() end local byPlayerMostDamage = 0 if mostDamage == 0 then mostDamageName = "field item" else local mostDamageKiller = Creature(mostDamage) if mostDamageKiller:isPlayer() then byPlayerMostDamage = 1 else local master = mostDamageKiller:getMaster() if master and master ~= mostDamageKiller and master:isPlayer() then mostDamageKiller = master byPlayerMostDamage = 1 end end mostDamageName = mostDamageKiller:getName() end local playerGuid = player:getGuid() db.query("INSERT INTO `player_deaths` (`player_id`, `time`, `level`, `killed_by`, `is_player`, `mostdamage_by`, `mostdamage_is_player`, `unjustified`, `mostdamage_unjustified`) VALUES (" .. playerGuid .. ", " .. os.time() .. ", " .. player:getLevel() .. ", " .. db.escapeString(killerName) .. ", " .. byPlayer .. ", " .. db.escapeString(mostDamageName) .. ", " .. byPlayerMostDamage .. ", " .. unjustified .. ", " .. mostDamage_unjustified .. ")") local resultId = db.storeQuery("SELECT `player_id` FROM `player_deaths` WHERE `player_id` = " .. playerGuid) local deathRecords = 0 local tmpResultId = resultId while tmpResultId ~= false do tmpResultId = result.next(resultId) deathRecords = deathRecords + 1 end if resultId ~= false then result.free(resultId) end while deathRecords > maxDeathRecords do db.query("DELETE FROM `player_deaths` WHERE `player_id` = " .. playerGuid .. " ORDER BY `time` LIMIT 1") deathRecords = deathRecords - 1 end if byPlayer == 1 then local playerGuild = player:getGuild() if playerGuild then local killerGuild = killerCreature:getGuild() if playerGuild ~= killerGuild and isInWar(cid, killerCreature) then local warId = false resultId = db.storeQuery("SELECT `id` FROM `guild_wars` WHERE `status` = 1 AND ((`guild1` = " .. killerGuild:getId() .. " AND `guild2` = " .. playerGuild:getId() .. ") OR (`guild1` = " .. playerGuild:getId() .. " AND `guild2` = " .. killerGuild:getId() .. "))") if resultId ~= false then warId = result.getDataInt(resultId, "id") result.free(resultId) end if warId ~= false then db.query("INSERT INTO `guildwar_kills` (`killer`, `target`, `killerguild`, `targetguild`, `time`, `warid`) VALUES (" .. db.escapeString(killerName) .. ", " .. db.escapeString(player:getName()) .. ", " .. killerGuild:getId() .. ", " .. playerGuild:getId() .. ", " .. os.time() .. ", " .. warId .. ")") local wars = db.storeQuery("SELECT `guild_wars`.`id`, (SELECT `limit` FROM `znote_guild_wars` WHERE `znote_guild_wars`.`id` = `guild_wars`.`id`) AS `limit`, (SELECT COUNT(1) FROM `guildwar_kills` WHERE `guildwar_kills`.`warid` = `guild_wars`.`id` AND `guildwar_kills`.`killerguild` = `guild_wars`.`guild1`) guild1_kills, (SELECT COUNT(1) FROM `guildwar_kills` WHERE `guildwar_kills`.`warid` = `guild_wars`.`id` AND `guildwar_kills`.`killerguild` = `guild_wars`.`guild2`) guild2_kills FROM `guild_wars` WHERE (`guild1` = " .. killerGuild:getId() .. " OR `guild2` = " .. killerGuild:getId() .. ") AND `id` = " .. warId .. " AND `status` = 1") if wars ~= false then guildKills1 = result.getDataInt(wars, "guild1_kills") guildKills2 = result.getDataInt(wars, "guild2_kills") fragLimit = result.getDataInt(wars, "limit") result.free(wars) end if guildKills1 >= fragLimit or guildKills2 >= fragLimit then Game.broadcastMessage(string.format("%s has just won the war against %s.", killerGuild:getName(), playerGuild:getName()), MESSAGE_EVENT_ADVANCE) db.query("UPDATE `guild_wars` SET `status` = 4, `ended` = " .. os.time() .. " WHERE `status` = 1 AND `id` = " .. warId) end end end end end end
  19. Voce comprou ou esta vendendo ele em outros sites?
  20. Boa tarde, Preciso do Pagseguro com retorno automático para ZnoteAAC, se alguém tiver o script, estou disposto a pagar por ele se for o caso. obrigado.

Informação Importante

Confirmação de Termo