[sql]theforgottenserver V0.2.9 (mystic Spirit)

Nandu Minerim
em Lixeira Pública

Nandu Minerim

avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 10/09/06Posts: 196

Finalmente saiu o ForgottenServer para 8.1, com os novos elementos, magias e outros...



POREM ESTA COM MUUUUITOS BUGS, NAO ACONSELHO A BAIXAREM AINDA, ESPEREM A VERSAO 0.3

PARA VER E REPORTAR BUGS, http://sourceforge.net/tracker/?atid=93189...amp;func=browse



Post original do Otland

TheForgottenServer 0.2

Release Candidate 9 (Mystic Spirit)!

 

Changes can be found in doc/CHANGELOG.

 

This is hopefully the last release candiate in the 0.2 series, if bugs in this there will be a 10th release candidate, but for now the development team will focus on version 0.3. The release date for the first release candidate in 0.3 is still unknown, so please do not ask. us when it will be released.

Basicamente ele diz que a equipe já esta focada a corrigir os defeitos versão e não tem previsão para a versão 3.0

Alterações/Correções

Fixed issues with...

deaths by field items in deathlist(Jonern)

deahtlist talkaction (Jonern)

numrows in LuaSqLite (Jonern)

furniture destroying (Talaturen)

reloading (Talaturen)

npc actions (Kiper & Nexoz)

contruction kits (slawkens)

itemid: 416 didnt worked as movement (slawkens)

banana eating (slawkens)

Downloads: Versões.

theforgottenserver029-wingui

theforgottenserver029-winconsole.rar

 

Database para mysql(copie tudo, salve como txt e carregue normalmente)

DROP TRIGGER IF EXISTS `oncreate_players`;

DROP TRIGGER IF EXISTS `oncreate_guilds`;

DROP TRIGGER IF EXISTS `ondelete_players`;

DROP TRIGGER IF EXISTS `ondelete_guilds`;

DROP TRIGGER IF EXISTS `ondelete_accounts`;

 

DROP TABLE IF EXISTS `player_depotitems`;

DROP TABLE IF EXISTS `tile_items`;

DROP TABLE IF EXISTS `tiles`;

DROP TABLE IF EXISTS `bans`;

DROP TABLE IF EXISTS `house_lists`;

DROP TABLE IF EXISTS `houses`;

DROP TABLE IF EXISTS `player_items`;

DROP TABLE IF EXISTS `player_skills`;

DROP TABLE IF EXISTS `player_storage`;

DROP TABLE IF EXISTS `player_viplist`;

DROP TABLE IF EXISTS `player_spells`;

DROP TABLE IF EXISTS `guild_ranks`;

DROP TABLE IF EXISTS `guilds`;

DROP TABLE IF EXISTS `guild_invites`;

DROP TABLE IF EXISTS `players`;

DROP TABLE IF EXISTS `accounts`;

DROP TABLE IF EXISTS `groups`;

 

CREATE TABLE `groups`

(

`id` INT NOT NULL AUTO_INCREMENT,

`name` VARCHAR(255) NOT NULL COMMENT 'group name',

`flags` BIGINT UNSIGNED NOT NULL DEFAULT 0,

`access` INT NOT NULL,

`maxdepotitems` INT NOT NULL,

`maxviplist` INT NOT NULL,

PRIMARY KEY (`id`)

) ENGINE = InnoDB;

 

INSERT INTO `groups` VALUES (3, 'a god', 134788128760, 1, 0, 0);

INSERT INTO `groups` VALUES (2, 'a gamemaster', 137438953471, 1, 0, 0);

INSERT INTO `groups` VALUES (1, 'player', 0, 0, 0, 0);

 

CREATE TABLE `accounts`

(

`id` INT NOT NULL AUTO_INCREMENT,

`password` VARCHAR(255) /* VARCHAR(32) for MD5*/ NOT NULL DEFAULT '',

`type` INT NOT NULL DEFAULT 1,

`premdays` INT NOT NULL DEFAULT 0,

`lastday` INT UNSIGNED NOT NULL DEFAULT 0,

`key` VARCHAR(20) NOT NULL DEFAULT '0',

`email` VARCHAR(255) NOT NULL DEFAULT '',

`blocked` TINYINT(1) NOT NULL DEFAULT FALSE,

`warnings` INT NOT NULL DEFAULT 0,

`group_id` INT NOT NULL DEFAULT 1,

PRIMARY KEY (`id`),

FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`)

) ENGINE = InnoDB;

 

INSERT INTO `accounts` VALUES (1, '1', 1, 65535, 0, '0', '', 0, 0, 1);

 

CREATE TABLE `players`

(

`id` INT NOT NULL AUTO_INCREMENT,

`name` VARCHAR(255) NOT NULL,

`group_id` INT NOT NULL DEFAULT 1,

`account_id` INT NOT NULL DEFAULT 0,

`level` INT NOT NULL DEFAULT 1,

`vocation` INT NOT NULL DEFAULT 0,

`health` INT NOT NULL DEFAULT 150,

`healthmax` INT NOT NULL DEFAULT 150,

`experience` BIGINT NOT NULL DEFAULT 0,

`lookbody` INT NOT NULL DEFAULT 0,

`lookfeet` INT NOT NULL DEFAULT 0,

`lookhead` INT NOT NULL DEFAULT 0,

`looklegs` INT NOT NULL DEFAULT 0,

`looktype` INT NOT NULL DEFAULT 136,

`lookaddons` INT NOT NULL DEFAULT 0,

`maglevel` INT NOT NULL DEFAULT 0,

`mana` INT NOT NULL DEFAULT 0,

`manamax` INT NOT NULL DEFAULT 0,

`manaspent` INT NOT NULL DEFAULT 0,

`soul` INT UNSIGNED NOT NULL DEFAULT 0,

`town_id` INT NOT NULL DEFAULT 0,

`posx` INT NOT NULL DEFAULT 0,

`posy` INT NOT NULL DEFAULT 0,

`posz` INT NOT NULL DEFAULT 0,

`conditions` BLOB NOT NULL,

`cap` INT NOT NULL DEFAULT 0,

`sex` INT NOT NULL DEFAULT 0,

`lastlogin` BIGINT UNSIGNED NOT NULL DEFAULT 0,

`lastip` INT UNSIGNED NOT NULL DEFAULT 0,

`save` TINYINT(1) NOT NULL DEFAULT 1,

`redskull` TINYINT(1) NOT NULL DEFAULT 0,

`redskulltime` INT NOT NULL DEFAULT 0,

`rank_id` INT NOT NULL DEFAULT 0,

`guildnick` VARCHAR(255) NOT NULL DEFAULT '',

`lastlogout` BIGINT UNSIGNED NOT NULL DEFAULT 0,

`blessings` TINYINT(2) NOT NULL DEFAULT 0,

`direction` INT NOT NULL DEFAULT 0 COMMENT 'NOT IN USE BY THE SERVER',

`loss_experience` INT NOT NULL DEFAULT '10' COMMENT 'NOT IN USE BY THE SERVER',

`loss_mana` INT NOT NULL DEFAULT '10' COMMENT 'NOT IN USE BY THE SERVER',

`loss_skills` INT NOT NULL DEFAULT '10' COMMENT 'NOT IN USE BY THE SERVER',

`premend` INT NOT NULL DEFAULT 0 COMMENT 'NOT IN USE BY THE SERVER',

`online` TINYINT NOT NULL DEFAULT 0,

PRIMARY KEY (`id`),

KEY (`name`),

FOREIGN KEY (`account_id`) REFERENCES `accounts`(`id`) ON DELETE CASCADE,

FOREIGN KEY (`group_id`) REFERENCES `groups`(`id`)

) ENGINE = InnoDB;

 

INSERT INTO `players` VALUES (1, 'Account Manager', 1, 1, 1, 0, 150, 150, 0, 0, 0, 0, 0, 110, 0, 0, 0, 0, 0, 0, 0, 50, 50, 7, '', 400, 0, 0, 0, 0, 0, 0, 0, '', 0, 0, 0, 10, 10, 10, 0, 0);

 

CREATE TABLE `bans`

(

`type` INT NOT NULL COMMENT 'this field defines if its ip, accountban or namelock',

`ip` INT UNSIGNED NOT NULL DEFAULT 0,

`mask` INT UNSIGNED NOT NULL DEFAULT 4294967295,

`player` INT UNSIGNED NOT NULL DEFAULT 0,

`account` INT UNSIGNED NOT NULL DEFAULT 0,

`time` INT UNSIGNED NOT NULL DEFAULT 0,

`reason_id` INT NOT NULL DEFAULT 0,

`action_id` INT NOT NULL DEFAULT 0,

`comment` VARCHAR(60) NOT NULL DEFAULT '',

`banned_by` INT UNSIGNED NOT NULL DEFAULT 0

) ENGINE = InnoDB;

 

CREATE TABLE `guilds`

(

`id` INT NOT NULL AUTO_INCREMENT,

`name` VARCHAR(255) NOT NULL COMMENT 'guild name - nothing else needed here',

`ownerid` INT NOT NULL,

`creationdata` INT NOT NULL,

`motd` VARCHAR(255) NOT NULL,

PRIMARY KEY (`id`)

) ENGINE = InnoDB;

 

CREATE TABLE `guild_invites`

(

`player_id` INT UNSIGNED NOT NULL DEFAULT 0,

`guild_id` INT UNSIGNED NOT NULL DEFAULT 0

) ENGINE = InnoDB;

 

CREATE TABLE `guild_ranks`

(

`id` INT NOT NULL AUTO_INCREMENT,

`guild_id` INT NOT NULL COMMENT 'guild',

`name` VARCHAR(255) NOT NULL COMMENT 'rank name',

`level` INT NOT NULL COMMENT 'rank level - leader, vice, member, maybe something else',

PRIMARY KEY (`id`),

FOREIGN KEY (`guild_id`) REFERENCES `guilds`(`id`) ON DELETE CASCADE

) ENGINE = InnoDB;

 

CREATE TABLE `house_lists`

(

`house_id` INT NOT NULL,

`listid` INT NOT NULL,

`list` TEXT NOT NULL

) ENGINE = InnoDB;

 

CREATE TABLE `houses`

(

`id` INT NOT NULL AUTO_INCREMENT,

`owner` INT NOT NULL,

`paid` INT UNSIGNED NOT NULL DEFAULT 0,

`warnings` TEXT NOT NULL,

PRIMARY KEY (`id`)

) ENGINE = InnoDB;

 

CREATE TABLE `player_deaths`

(

`player_id` INT NOT NULL,

`time` BIGINT UNSIGNED NOT NULL DEFAULT 0,

`level` INT NOT NULL DEFAULT 1,

`killed_by` VARCHAR(255) NOT NULL,

`is_player` TINYINT(1) NOT NULL DEFAULT 1,

FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE

) ENGINE = InnoDB;

 

CREATE TABLE `player_depotitems`

(

`player_id` INT NOT NULL,

`depot_id` INT NOT NULL DEFAULT 0,

`sid` INT NOT NULL COMMENT 'any given range eg 0-100 will be reserved for depot lockers and all > 100 will be then normal items inside depots',

`pid` INT NOT NULL DEFAULT 0,

`itemtype` INT NOT NULL,

`count` INT NOT NULL DEFAULT 0,

`attributes` BLOB NOT NULL,

FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE,

KEY (`player_id`, `depot_id`),

UNIQUE KEY (`player_id`, `sid`)

) ENGINE = InnoDB;

 

CREATE TABLE `player_items`

(

`player_id` INT NOT NULL DEFAULT 0,

`pid` INT NOT NULL DEFAULT 0,

`sid` INT NOT NULL DEFAULT 0,

`itemtype` INT NOT NULL DEFAULT 0,

`count` INT NOT NULL DEFAULT 0,

`attributes` text NOT NULL,

FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE

) ENGINE = InnoDB;

 

CREATE TABLE `player_skills`

(

`player_id` INT NOT NULL DEFAULT 0,

`skillid` tinyint(4) NOT NULL DEFAULT 0,

`value` INT UNSIGNED NOT NULL DEFAULT 0,

`count` INT UNSIGNED NOT NULL DEFAULT 0,

FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE

) ENGINE = InnoDB;

 

CREATE TABLE `player_spells`

(

`player_id` INT NOT NULL,

`name` VARCHAR(255) NOT NULL,

FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE

) ENGINE = InnoDB;

 

CREATE TABLE `player_storage`

(

`player_id` INT NOT NULL DEFAULT 0,

`key` INT UNSIGNED NOT NULL DEFAULT 0,

`value` INT NOT NULL DEFAULT 0,

FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE

) ENGINE = InnoDB;

 

CREATE TABLE `player_viplist`

(

`player_id` INT NOT NULL COMMENT 'id of player whose viplist entry it is',

`vip_id` INT NOT NULL COMMENT 'id of target player of viplist entry',

FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE,

FOREIGN KEY (`vip_id`) REFERENCES `players`(`id`) ON DELETE CASCADE

) ENGINE = InnoDB;

 

CREATE TABLE `tiles`

(

`id` INT NOT NULL AUTO_INCREMENT,

`x` INT NOT NULL,

`y` INT NOT NULL,

`z` INT NOT NULL,

PRIMARY KEY(`id`)

) ENGINE = InnoDB;

 

CREATE TABLE `tile_items`

(

`tile_id` INT NOT NULL,

`sid` INT NOT NULL,

`pid` INT NOT NULL DEFAULT 0,

`itemtype` INT NOT NULL,

`count` INT NOT NULL DEFAULT 0,

`attributes` BLOB NOT NULL,

FOREIGN KEY (`tile_id`) REFERENCES `tiles`(`id`) ON DELETE CASCADE

) ENGINE = InnoDB;

 

DELIMITER |

 

CREATE TRIGGER `ondelete_accounts`

BEFORE DELETE

ON `accounts`

FOR EACH ROW

BEGIN

DELETE FROM `bans` WHERE `account` = OLD.`id`;

END|

 

CREATE TRIGGER `ondelete_guilds`

BEFORE DELETE

ON `guilds`

FOR EACH ROW

BEGIN

UPDATE `players` SET `guildnick` = '', `rank_id` = 0 WHERE `rank_id` IN (SELECT `id` FROM `guild_ranks` WHERE `guild_id` = OLD.`id`);

END|

 

CREATE TRIGGER `ondelete_players`

BEFORE DELETE

ON `players`

FOR EACH ROW

BEGIN

DELETE FROM `bans` WHERE `type` = 2 AND `player` = OLD.`id`;

UPDATE `houses` SET `owner` = 0 WHERE `owner` = OLD.`id`;

END|

 

CREATE TRIGGER `oncreate_guilds`

AFTER INSERT

ON `guilds`

FOR EACH ROW

BEGIN

INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('the Leader', 3, NEW.`id`);

INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('a Vice-Leader', 2, NEW.`id`);

INSERT INTO `guild_ranks` (`name`, `level`, `guild_id`) VALUES ('a Member', 1, NEW.`id`);

END|

 

CREATE TRIGGER `oncreate_players`

AFTER INSERT

ON `players`

FOR EACH ROW

BEGIN

INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 0, 10);

INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 1, 10);

INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 2, 10);

INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 3, 10);

INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 4, 10);

INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 5, 10);

INSERT INTO `player_skills` (`player_id`, `skillid`, `value`) VALUES (NEW.`id`, 6, 10);

END|

 

DELIMITER ;



 

Utilitários

 

Asprate Ip changer até 8.1

Download

Dlls úteis

Download

Xampp (mysql)

Download

SQL Lite (sqllite)

Download

SQlite Manager (addon do firefox, recomendo)

Download

Imagem do programa

untitled-1674.jpg

RME map editor (ainda não é 8.1) mas da pra usar mesmo assim

Download

 

 

Por Favor se tiver algum link quebrado me avisem para eu concertar.. grato =)

 

Editado:

Adicionado links para downloado do xampp e sqllite manager

Adicionado database para mysql

Pista

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 18/06/06Posts: 13Char no Tibia: Dark Skutch

Baxei, vo testa, mais ainda não descobri a diferença entre wingui e winconsole..

O link das dlls está kebrado!

user posted image

Se você é meu fan use:

user posted image

×Atenciosamente, Pista...×
×Não dou suporte via MSN×

icarofiredragon

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 13/01/08Posts: 1Char no Tibia: Dard Newyn

rapaz qndu vo deixar-lo on, aparece "vc n pod abrir o arquivo pois n foi encontrado lua5.1.dll.

Pista

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 18/06/06Posts: 13Char no Tibia: Dark Skutch

Eu descobri o negocio das dlls, qualquer OT que voce tenha copie as dlls e boa, mais ai vc tem q baxar a sqlite.dll q não sao todos que tem, e eu não to com saco pra colocar pra download, digita o nome da dll q faltar no google e baxa do free-dlls.files algo assim, mas copie as de um ot normal, soh baxe as que faltar!

Espero ter ajudado, sem mais~

OT tá mto bom!

user posted image

Se você é meu fan use:

user posted image

×Atenciosamente, Pista...×
×Não dou suporte via MSN×

morgado4ever

Eu sou o Kazz! ;)
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 20/10/06Posts: 164Char no Tibia: Kazz Kzupzarski

a diferença entre win gui e win console eh que um inicia com a tela do windows ms-dos (tela preta) e o outro como se fosse um aplicativo do windows (tela cinza de programa), sacou?

tibiasoul2.png

Divulgue o servidor, utilize este banner em sua assinatura.

 

WalkAlone Project

Alternative Tibia Server

O N L I N E

 

[ http://WalkAlone.servegame.Com ]

ONLINE! 24 HORAS! 8.70!

 

Nos contate agora mesmo:

tibiasoul@msn.com

Nandu Minerim

avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 10/09/06Posts: 196

organizei melhor o tópico e arrumei o link das dlls

thei

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 04/03/07Posts: 6

Hum...

tenho algumas perguntas como estao os monsters? seus corpos estao certo "principalmente os dos monsters novos"

o map ta com as criaturas novas?

uma duvida que vc podia falar eh onde colokar as dlls tbm...

Fale um pouco + sobre o OT pq se nao vai parecer q vc nem abriu ele pra postar ^^

 

 

>>> Thei <<<

Sky Knight

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 19/02/07Posts: 31

aff manow, o ot ta bom mais os npc..

pqp velho, aff os que tem só 2 que ta funcionando malema

vc podia posta os npc, que mais prescisa tipo, aol, runa, bow, food etc...

 

num aprovo não :icon2:

Melhor Server:





Meus Fans:





TibiaBr:

Nandu Minerim

avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 10/09/06Posts: 196

eu so to postando oque tava no topico oficial, depois eu modifico e coloco as npcs

Allan_Motta

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/01/06Posts: 80

otra coisa tbm eu baixei e n veio nem com os monstros 7.8 oO soh com monstro mais veio 7.6 e pra baixo...

No more

tadzio

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/09/07Posts: 85Char no Tibia: Revaux

Qual a conta do god e do account manager, 111111;tibia n dah :(

GM Lukas

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 15/04/07Posts: 1

ou! pede pro dono do otserv ageitar oiu qualquer pessoa q saiba compilar...

monstros andarem sobre fields, se ele é imune, ele não passa mas se ele nao for imune ele passa lol... é ao contrário...

pede pra ele compilar com o chat do Rule Violation pelo Cttrl + R por q eu nao consigo compilar...

 

é so você recompilar e adicionar aos parametros

 

-D__RULEVIOLATIONREPORT__

 

e recompilar

 

 

otra coisa, me manda o site q sai o topico official, pra eu ficar de olho... vlw

Allan_Motta

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/01/06Posts: 80

@tadzio

 

a conta do manager eh 1/1 e a conta do god n vem junto vc tem q criar ela

No more

tadzio

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 26/09/07Posts: 85Char no Tibia: Revaux

vlw, ajudo msm, mas n consigo trocar de mapa se alguem souber me avisa please

MaNeRiNhU

Banido
avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 25/09/06Posts: 190Char no Tibia: M e N

eh sqlite ou mysql ?

sqlite eh complicado de mexe ._.