Boa noite, estou tentando abrir o server offline, porém não passa da parte
Establishing database connection... poderia me informar o que está acontecendo?
Por GamerGoiano, 01 de dez. de 2019 em OTServ Comum
info
Grupo: Campones
Registrado: 05/12/19
Posts: 4
Reputação: 0

Boa noite, estou tentando abrir o server offline, porém não passa da parte
Establishing database connection... poderia me informar o que está acontecendo?
1 hora atrás, Skylletzin disse:Boa noite, estou tentando abrir o server offline, porém não passa da parte
Establishing database connection... poderia me informar o que está acontecendo?
Você precisa de uma Database para fazer funcionar
18 horas atrás, mastof disse:Você precisa de uma Database para fazer funcionar
Onde baixo um database?
info
Grupo: Conde
Registrado: 11/03/13
Posts: 629
Reputação: +183

20 horas atrás, Skylletzin disse:Boa noite, estou tentando abrir o server offline, porém não passa da parte
Establishing database connection... poderia me informar o que está acontecendo?
Tem que configurar uma database, recomendo usar o XAMPP dai voce cria uma database e importa o schema.sql
No proprio arquivo que o cara disponibilizou já tem uma Schema.sql o nome
Tem como aumentar a tela assim em base poketibia? 8.54
Boa tarde, consegui deixar o server on, mas quando vou pra executar o otclient que falta openAL32.dll, pode ajudar?
Obrigado
info
Grupo: Conde
Registrado: 11/03/13
Posts: 629
Reputação: +183

8 minutos atrás, raphadr disse:Boa tarde, consegui deixar o server on, mas quando vou pra executar o otclient que falta openAL32.dll, pode ajudar?
Obrigado
Instala isso:
https://www.openal.org/downloads/oalinst.zip
como eu faco para criar um player pelo xampp?
ou pelo seu servidor?
Editado Dezembro 27 por Arastouro
37 minutos atrás, brazvct disse:Instala isso:
https://www.openal.org/downloads/oalinst.zip
mto obrigado, deu certo
info
Grupo: Conde
Registrado: 11/03/13
Posts: 629
Reputação: +183

14 minutos atrás, Arastouro disse:como eu faco para criar um player pelo xampp?
ou pelo seu servidor?
Usa o xampp dai voce baixa algum site pra criar conta, recomendo o znote aac por ser mais facil
https://github.com/Znote/ZnoteAAC Clone/Download -- Download ZIP
Cola na pasta htdocs extraido os arquivos e dps q fizer os procedimentos abaixo acessa
127.0.0.1 ou localhost
Edita as linhas do config.php:
33 $config['sqlUser'] = 'tfs13'; (Usa root aqui no lugar de tfs13)
36 $config['sqlPassword'] = 'tfs13'; (apaga tfs13, o xampp por padrão n tem senha)
39 $config['sqlDatabase'] = 'tfs13'; (coloca o nome da sua database no lugar de tfs13)
Ai dps voce executa na sua database do xampp, na guia sql, cola esse código:
CREATE TABLE IF NOT EXISTS `znote` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`version` varchar(30) NOT NULL COMMENT 'Znote AAC version',
`installed` int(10) NOT NULL,
`cached` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_accounts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`ip` int(10) UNSIGNED NOT NULL,
`created` int(10) NOT NULL,
`points` int(10) DEFAULT 0,
`cooldown` int(10) DEFAULT 0,
`active` tinyint(4) NOT NULL DEFAULT '0',
`active_email` tinyint(4) NOT NULL DEFAULT '0',
`activekey` int(11) NOT NULL DEFAULT '0',
`flag` varchar(20) NOT NULL,
`secret` char(16) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(30) NOT NULL,
`text` text NOT NULL,
`date` int(11) NOT NULL,
`pid` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_images` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(30) NOT NULL,
`desc` text NOT NULL,
`date` int(11) NOT NULL,
`status` int(11) NOT NULL,
`image` varchar(30) NOT NULL,
`account_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_paypal` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`txn_id` varchar(30) NOT NULL,
`email` varchar(255) NOT NULL,
`accid` int(11) NOT NULL,
`price` int(11) NOT NULL,
`points` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_paygol` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`price` int(11) NOT NULL,
`points` int(11) NOT NULL,
`message_id` varchar(255) NOT NULL,
`service_id` varchar(255) NOT NULL,
`shortcode` varchar(255) NOT NULL,
`keyword` varchar(255) NOT NULL,
`message` varchar(255) NOT NULL,
`sender` varchar(255) NOT NULL,
`operator` varchar(255) NOT NULL,
`country` varchar(255) NOT NULL,
`currency` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_players` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`player_id` int(11) NOT NULL,
`created` int(11) NOT NULL,
`hide_char` tinyint(4) NOT NULL,
`comment` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_player_reports` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`posx` int(6) NOT NULL,
`posy` int(6) NOT NULL,
`posz` int(6) NOT NULL,
`report_description` VARCHAR(255) NOT NULL,
`date` INT(11) NOT NULL,
`status` TINYINT(3) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_changelog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`text` VARCHAR(255) NOT NULL,
`time` INT(11) NOT NULL,
`report_id` INT(11) NOT NULL,
`status` TINYINT(3) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_shop` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` int(11) NOT NULL,
`itemid` int(11) DEFAULT NULL,
`count` int(11) NOT NULL DEFAULT '1',
`description` varchar(255) NOT NULL,
`points` int(11) NOT NULL DEFAULT '10',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_shop_logs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`player_id` int(11) NOT NULL,
`type` int(11) NOT NULL,
`itemid` int(11) NOT NULL,
`count` int(11) NOT NULL,
`points` int(11) NOT NULL,
`time` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_shop_orders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`type` int(11) NOT NULL,
`itemid` int(11) NOT NULL,
`count` int(11) NOT NULL,
`time` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_visitors` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip` int(11) NOT NULL,
`value` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_visitors_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`ip` int(11) NOT NULL,
`time` int(11) NOT NULL,
`type` tinyint(4) NOT NULL,
`account_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_forum` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`access` tinyint(4) NOT NULL,
`closed` tinyint(4) NOT NULL,
`hidden` tinyint(4) NOT NULL,
`guild_id` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_forum_threads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`forum_id` int(11) NOT NULL,
`player_id` int(11) NOT NULL,
`player_name` varchar(50) NOT NULL,
`title` varchar(50) NOT NULL,
`text` text NOT NULL,
`created` int(11) NOT NULL,
`updated` int(11) NOT NULL,
`sticky` tinyint(4) NOT NULL,
`hidden` tinyint(4) NOT NULL,
`closed` tinyint(4) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_forum_posts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`thread_id` int(11) NOT NULL,
`player_id` int(11) NOT NULL,
`player_name` varchar(50) NOT NULL,
`text` text NOT NULL,
`created` int(11) NOT NULL,
`updated` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_deleted_characters` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`original_account_id` int(11) NOT NULL,
`character_name` varchar(255) NOT NULL,
`time` datetime NOT NULL,
`done` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_guild_wars` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`limit` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
FOREIGN KEY (`id`) REFERENCES `guild_wars` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_tickets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner` int(11) NOT NULL,
`username` varchar(32) CHARACTER SET latin1 NOT NULL,
`subject` text CHARACTER SET latin1 NOT NULL,
`message` text CHARACTER SET latin1 NOT NULL,
`ip` int(11) NOT NULL,
`creation` int(11) NOT NULL,
`status` varchar(20) CHARACTER SET latin1 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_tickets_replies` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tid` int(11) NOT NULL,
`username` varchar(32) CHARACTER SET latin1 NOT NULL,
`message` text CHARACTER SET latin1 NOT NULL,
`created` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_global_storage` (
`key` VARCHAR(32) NOT NULL,
`value` TEXT NOT NULL,
UNIQUE (`key`)
) ENGINE=InnoDB;
CREATE TABLE IF NOT EXISTS `znote_auction_player` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`player_id` int(11) NOT NULL,
`original_account_id` int(11) NOT NULL,
`bidder_account_id` int(11) NOT NULL,
`time_begin` int(11) NOT NULL,
`time_end` int(11) NOT NULL,
`price` int(11) NOT NULL,
`bid` int(11) NOT NULL,
`deposit` int(11) NOT NULL,
`sold` tinyint(1) NOT NULL,
`claimed` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
INSERT INTO `znote` (`version`, `installed`) VALUES
('$version', UNIX_TIMESTAMP(CURDATE()));
INSERT INTO `znote_forum` (`name`, `access`, `closed`, `hidden`, `guild_id`) VALUES
('Staff Board', '4', '0', '0', '0'),
('Tutors Board', '2', '0', '0', '0'),
('Discussion', '1', '0', '0', '0'),
('Feedback', '1', '0', '1', '0');
INSERT INTO `znote_accounts` (`account_id`, `ip`, `created`, `flag`)
SELECT
`a`.`id` AS `account_id`,
0 AS `ip`,
UNIX_TIMESTAMP(CURDATE()) AS `created`,
'' AS `flag`
FROM `accounts` AS `a`
LEFT JOIN `znote_accounts` AS `z`
ON `a`.`id` = `z`.`account_id`
WHERE `z`.`created` IS NULL;
INSERT INTO `znote_players` (`player_id`, `created`, `hide_char`, `comment`)
SELECT
`p`.`id` AS `player_id`,
UNIX_TIMESTAMP(CURDATE()) AS `created`,
0 AS `hide_char`,
'' AS `comment`
FROM `players` AS `p`
LEFT JOIN `znote_players` AS `z`
ON `p`.`id` = `z`.`player_id`
WHERE `z`.`created` IS NULL;
DELETE `d` FROM `znote_accounts` AS `d`
INNER JOIN (
SELECT `i`.`account_id`,
MAX(`i`.`id`) AS `retain`
FROM `znote_accounts` AS `i`
GROUP BY `i`.`account_id`
HAVING COUNT(`i`.`id`) > 1
) AS `x`
ON `d`.`account_id` = `x`.`account_id`
AND `d`.`id` != `x`.`retain`;
DELETE `d` FROM `znote_players` AS `d`
INNER JOIN (
SELECT `i`.`player_id`,
MAX(`i`.`id`) AS `retain`
FROM `znote_players` AS `i`
GROUP BY `i`.`player_id`
HAVING COUNT(`i`.`id`) > 1
) AS `x`
ON `d`.`player_id` = `x`.`player_id`
AND `d`.`id` != `x`.`retain`;
Editado Dezembro 27 por brazvct
Consegui colocar online, mas não conseguir logar por falta de acc, tentei criar uma account direto pelo xampp, mas não deu certo, tentei seguir os passos que vc mandou na pergunta do arastouro, mas não consegui, não encontrei nem a pasta htdocs no client, se não for atrapalhar pode explicar pra um iniciante? ou indicar algum material de estudo, mto obrigado, vc ja ajudou muito com esse tópico!
info
Grupo: Conde
Registrado: 11/03/13
Posts: 629
Reputação: +183

2 horas atrás, raphadr disse:Consegui colocar online, mas não conseguir logar por falta de acc, tentei criar uma account direto pelo xampp, mas não deu certo, tentei seguir os passos que vc mandou na pergunta do arastouro, mas não consegui, não encontrei nem a pasta htdocs no client, se não for atrapalhar pode explicar pra um iniciante? ou indicar algum material de estudo, mto obrigado, vc ja ajudou muito com esse tópico!
pasta htdcos fica em c:\xampp\htdocs ai é só vc apagar o que tem la dentro e colocar o site que voce baixou, dai voce configura no config.php a sua database, remove a senha e coloca root no usuario
Poe as mesmas configurações no config.lua
info
Grupo: Conde
Registrado: 11/03/13
Posts: 629
Reputação: +183
Caso quiser deixar on, recomendo usar o Znote AAC com o Xampp.
Contém:
1. Tfs compilado em 32 bits + Sources
2. Otclient compilado em 32 bits + Sources
3. Aumentado Tamanho da Tela pra 19 Tiles
4. Adicionado X Y Z no minimap.
5. Interface padrão do OTCLIENT trocada pra transparente.
6. Removido painel direito e esquerdo do Otclient,
7. Limitado o Zoom (Não da pra bugar)
8. Removido Hotkey (CTRL + .)
9. Fixado o Login do OTCLIENT pra ip FIXO. (Troque em entergame.lua)
Eu não ativei Transparency nem Extended, caso queira ativar:
Dentro do things.lua na pasta game_things, abaixo de:
function load()
local version = g_game.getClientVersion()
Coloque isso:
g_game.enableFeature(GameSpritesU32) -- To extended the spritesg_game.enableFeature(GameSpritesAlphaChannel) -- To enable transparencyDownload: (link reupado 20/05/2020)
https://www.mediafire.com/file/lq4z08h16497baj/tfs_1.2_+_otclient.rar/file
Scan:
https://www.virustotal.com/gui/file/52a3e3d1aef51aec038165001c5785f16292f9f8fc87efdcb3e76acb3ebcc572/detection
Editado Maio 20 por brazvct