DBOT Code
Brought to you by:
eventide101
File | Date | Author | Commit |
---|---|---|---|
cb | 2009-10-01 | eventide101 | [r1] *OTserv imported to the project |
dev-cpp | 2009-10-01 | mockotnet | [r2] |
AUTHORS | 2009-10-01 | mockotnet | [r2] |
COMPILING | 2009-10-01 | eventide101 | [r1] *OTserv imported to the project |
Doxyfile | 2009-10-01 | mockotnet | [r2] |
LICENSE | 2009-10-01 | mockotnet | [r2] |
Makefile.am | 2009-10-01 | mockotnet | [r2] |
README | 2009-10-01 | mockotnet | [r2] |
README.DATABASE | 2009-10-01 | mockotnet | [r2] |
account.cpp | 2009-10-01 | mockotnet | [r2] |
account.h | 2009-10-01 | mockotnet | [r2] |
actions.cpp | 2009-10-01 | mockotnet | [r2] |
actions.h | 2009-10-01 | mockotnet | [r2] |
admin.cpp | 2009-10-01 | mockotnet | [r2] |
admin.h | 2009-10-01 | mockotnet | [r2] |
allocator.cpp | 2009-10-01 | mockotnet | [r2] |
allocator.h | 2009-10-01 | mockotnet | [r2] |
autogen.sh | 2009-10-01 | mockotnet | [r2] |
ban.cpp | 2009-10-01 | mockotnet | [r2] |
ban.h | 2009-10-01 | mockotnet | [r2] |
baseevents.cpp | 2009-10-01 | mockotnet | [r2] |
baseevents.h | 2009-10-01 | mockotnet | [r2] |
beds.cpp | 2009-10-01 | mockotnet | [r2] |
beds.h | 2009-10-01 | mockotnet | [r2] |
chat.cpp | 2009-10-01 | mockotnet | [r2] |
chat.h | 2009-10-01 | mockotnet | [r2] |
combat.cpp | 2009-10-01 | mockotnet | [r2] |
combat.h | 2009-10-01 | mockotnet | [r2] |
commands.cpp | 2009-10-01 | mockotnet | [r2] |
commands.h | 2009-10-01 | mockotnet | [r2] |
condition.cpp | 2009-10-01 | mockotnet | [r2] |
condition.h | 2009-10-01 | mockotnet | [r2] |
config.lua.dist | 2009-10-01 | mockotnet | [r2] |
configmanager.cpp | 2009-10-01 | mockotnet | [r2] |
configmanager.h | 2009-10-01 | mockotnet | [r2] |
configure.ac | 2009-10-01 | mockotnet | [r2] |
connection.cpp | 2009-10-01 | mockotnet | [r2] |
connection.h | 2009-10-01 | mockotnet | [r2] |
const.h | 2009-10-01 | mockotnet | [r2] |
container.cpp | 2009-10-01 | mockotnet | [r2] |
container.h | 2009-10-01 | mockotnet | [r2] |
creature.cpp | 2009-10-01 | mockotnet | [r2] |
creature.h | 2009-10-01 | mockotnet | [r2] |
creatureevent.cpp | 2009-10-01 | mockotnet | [r2] |
creatureevent.h | 2009-10-01 | mockotnet | [r2] |
cylinder.cpp | 2009-10-01 | mockotnet | [r2] |
cylinder.h | 2009-10-01 | mockotnet | [r2] |
database.cpp | 2009-10-01 | mockotnet | [r2] |
database.h | 2009-10-01 | mockotnet | [r2] |
databasemysql.cpp | 2009-10-01 | mockotnet | [r2] |
databasemysql.h | 2009-10-01 | mockotnet | [r2] |
databaseodbc.cpp | 2009-10-01 | mockotnet | [r2] |
databaseodbc.h | 2009-10-01 | mockotnet | [r2] |
databasepgsql.cpp | 2009-10-01 | mockotnet | [r2] |
databasepgsql.h | 2009-10-01 | mockotnet | [r2] |
databasesqlite.cpp | 2009-10-01 | mockotnet | [r2] |
databasesqlite.h | 2009-10-01 | mockotnet | [r2] |
db.s3db | 2009-10-01 | eventide101 | [r1] *OTserv imported to the project |
debian-packaging-plan.txt | 2009-10-01 | mockotnet | [r2] |
definitions.h | 2009-10-01 | mockotnet | [r2] |
depot.cpp | 2009-10-01 | mockotnet | [r2] |
depot.h | 2009-10-01 | mockotnet | [r2] |
enums.h | 2009-10-01 | mockotnet | [r2] |
exception.cpp | 2009-10-01 | mockotnet | [r2] |
exception.h | 2009-10-01 | mockotnet | [r2] |
fileloader.cpp | 2009-10-01 | mockotnet | [r2] |
fileloader.h | 2009-10-01 | mockotnet | [r2] |
game.cpp | 2009-10-01 | mockotnet | [r2] |
game.h | 2009-10-01 | mockotnet | [r2] |
gendb.sh | 2009-10-01 | mockotnet | [r2] |
globalevent.cpp | 2009-10-01 | mockotnet | [r2] |
globalevent.h | 2009-10-01 | mockotnet | [r2] |
globalevente.cpp | 2009-10-01 | mockotnet | [r2] |
house.cpp | 2009-10-01 | mockotnet | [r2] |
house.h | 2009-10-01 | mockotnet | [r2] |
housetile.cpp | 2009-10-01 | mockotnet | [r2] |
housetile.h | 2009-10-01 | mockotnet | [r2] |
ioaccount.cpp | 2009-10-01 | mockotnet | [r2] |
ioaccount.h | 2009-10-01 | mockotnet | [r2] |
iomap.h | 2009-10-01 | mockotnet | [r2] |
iomapotbm.cpp | 2009-10-01 | mockotnet | [r2] |
iomapotbm.h | 2009-10-01 | mockotnet | [r2] |
iomapserialize.cpp | 2009-10-01 | mockotnet | [r2] |
iomapserialize.h | 2009-10-01 | mockotnet | [r2] |
ioplayer.cpp | 2009-10-01 | mockotnet | [r2] |
ioplayer.h | 2009-10-01 | mockotnet | [r2] |
item.cpp | 2009-10-01 | mockotnet | [r2] |
item.h | 2009-10-01 | mockotnet | [r2] |
itemloader.h | 2009-10-01 | mockotnet | [r2] |
items.cpp | 2009-10-01 | mockotnet | [r2] |
items.h | 2009-10-01 | mockotnet | [r2] |
logger.cpp | 2009-10-01 | mockotnet | [r2] |
logger.h | 2009-10-01 | mockotnet | [r2] |
luascript.cpp | 2009-10-01 | mockotnet | [r2] |
luascript.h | 2009-10-01 | mockotnet | [r2] |
mailbox.cpp | 2009-10-01 | mockotnet | [r2] |
mailbox.h | 2009-10-01 | mockotnet | [r2] |
map.cpp | 2009-10-01 | mockotnet | [r2] |
map.h | 2009-10-01 | mockotnet | [r2] |
md5.cpp | 2009-10-01 | mockotnet | [r2] |
md5.h | 2009-10-01 | mockotnet | [r2] |
monster.cpp | 2009-10-01 | mockotnet | [r2] |
monster.h | 2009-10-01 | mockotnet | [r2] |
monsters.cpp | 2009-10-01 | mockotnet | [r2] |
monsters.h | 2009-10-01 | mockotnet | [r2] |
movement.cpp | 2009-10-01 | mockotnet | [r2] |
movement.h | 2009-10-01 | mockotnet | [r2] |
networkmessage.cpp | 2009-10-01 | mockotnet | [r2] |
networkmessage.h | 2009-10-01 | mockotnet | [r2] |
npc.cpp | 2009-10-01 | mockotnet | [r2] |
npc.h | 2009-10-01 | mockotnet | [r2] |
otpch.h | 2009-10-01 | mockotnet | [r2] |
otserv.cpp | 2009-10-01 | mockotnet | [r2] |
otserv.ico | 2009-10-01 | mockotnet | [r2] |
otserv.kdevelop | 2009-10-01 | mockotnet | [r2] |
otserv.sln | 2009-10-01 | mockotnet | [r2] |
otserv.suo | 2009-10-01 | mockotnet | [r2] |
otsystem.h | 2009-10-01 | mockotnet | [r2] |
outfit.cpp | 2009-10-01 | mockotnet | [r2] |
outfit.h | 2009-10-01 | mockotnet | [r2] |
outputmessage.cpp | 2009-10-01 | mockotnet | [r2] |
outputmessage.h | 2009-10-01 | mockotnet | [r2] |
party.cpp | 2009-10-01 | mockotnet | [r2] |
party.h | 2009-10-01 | mockotnet | [r2] |
pch.mak | 2009-10-01 | mockotnet | [r2] |
player.cpp | 2009-10-01 | mockotnet | [r2] |
player.h | 2009-10-01 | mockotnet | [r2] |
position.cpp | 2009-10-01 | mockotnet | [r2] |
position.h | 2009-10-01 | mockotnet | [r2] |
protocol.cpp | 2009-10-01 | mockotnet | [r2] |
protocol.h | 2009-10-01 | mockotnet | [r2] |
protocolgame.cpp | 2009-10-01 | mockotnet | [r2] |
protocolgame.h | 2009-10-01 | mockotnet | [r2] |
protocollogin.cpp | 2009-10-01 | mockotnet | [r2] |
protocollogin.h | 2009-10-01 | mockotnet | [r2] |
protocolold.cpp | 2009-10-01 | mockotnet | [r2] |
protocolold.h | 2009-10-01 | mockotnet | [r2] |
quests.cpp | 2009-10-01 | mockotnet | [r2] |
quests.h | 2009-10-01 | mockotnet | [r2] |
raids.cpp | 2009-10-01 | mockotnet | [r2] |
raids.h | 2009-10-01 | mockotnet | [r2] |
rsa.cpp | 2009-10-01 | mockotnet | [r2] |
rsa.h | 2009-10-01 | mockotnet | [r2] |
scheduler.cpp | 2009-10-01 | mockotnet | [r2] |
scheduler.h | 2009-10-01 | mockotnet | [r2] |
schema.mysql | 2009-10-01 | mockotnet | [r2] |
schema.pgsql | 2009-10-01 | mockotnet | [r2] |
schema.sqlite | 2009-10-01 | mockotnet | [r2] |
scriptmanager.cpp | 2009-10-01 | mockotnet | [r2] |
scriptmanager.h | 2009-10-01 | mockotnet | [r2] |
server.cpp | 2009-10-01 | mockotnet | [r2] |
server.h | 2009-10-01 | mockotnet | [r2] |
sha1.cpp | 2009-10-01 | mockotnet | [r2] |
sha1.h | 2009-10-01 | mockotnet | [r2] |
spawn.cpp | 2009-10-01 | mockotnet | [r2] |
spawn.h | 2009-10-01 | mockotnet | [r2] |
spells.cpp | 2009-10-01 | mockotnet | [r2] |
spells.h | 2009-10-01 | mockotnet | [r2] |
status.cpp | 2009-10-01 | mockotnet | [r2] |
status.h | 2009-10-01 | mockotnet | [r2] |
talkaction.cpp | 2009-10-01 | mockotnet | [r2] |
talkaction.h | 2009-10-01 | mockotnet | [r2] |
tasks.cpp | 2009-10-01 | mockotnet | [r2] |
tasks.h | 2009-10-01 | mockotnet | [r2] |
teleport.cpp | 2009-10-01 | mockotnet | [r2] |
teleport.h | 2009-10-01 | mockotnet | [r2] |
templates.h | 2009-10-01 | mockotnet | [r2] |
thing.cpp | 2009-10-01 | mockotnet | [r2] |
thing.h | 2009-10-01 | mockotnet | [r2] |
tile.cpp | 2009-10-01 | mockotnet | [r2] |
tile.h | 2009-10-01 | mockotnet | [r2] |
tools.cpp | 2009-10-01 | mockotnet | [r2] |
tools.h | 2009-10-01 | mockotnet | [r2] |
town.h | 2009-10-01 | mockotnet | [r2] |
trashholder.cpp | 2009-10-01 | mockotnet | [r2] |
trashholder.h | 2009-10-01 | mockotnet | [r2] |
vocation.cpp | 2009-10-01 | mockotnet | [r2] |
vocation.h | 2009-10-01 | mockotnet | [r2] |
waitlist.cpp | 2009-10-01 | mockotnet | [r2] |
waitlist.h | 2009-10-01 | mockotnet | [r2] |
waypoints.h | 2009-10-01 | mockotnet | [r2] |
weapons.cpp | 2009-10-01 | mockotnet | [r2] |
weapons.h | 2009-10-01 | mockotnet | [r2] |
This file contains list of all requirements that database must fit for OTServ. They are grouped in two parts: I. Database storage system requirements. II. Database definition requirements. If you are trying to run OTServ on database system that is not currently supported by SVN: - Make sure that database system provides all required features. If you are trying to create OTServ distro: - Make sure that your provided sample database schema defines valid database. If you are trying to run OTServ: - Make sure you are running it on system that provides all required features. ---------- I. Database storage system requirements. This part lists features that database system must provide in order to implement OTServ database in it. ---------- 1. Triggers. Triggers are actions that database system executes automaticly on given event. OTSserv moved alot of work to database side which makes us sure that database will take care about it's own integrity. It also makes OTServ code smaller as it doesn't need to contain many redundant stuff. It is practicly impossible to implement OTServ database on system that doesn't provide triggers. Note: MySQL contains various storage engines. It is not possible to implement OTServ database on MyISAM engine! Make sure that you use InnoDB engine in MySQL! 2. Foreign keys. Foreign keys connects data between different tables. Foreign keys makes us sure that each record that requires data from another table will be connected with that data and that there won't be any garbage caused by lost connection between data. If your database doesn't support foreign keys you can try to implement them using triggers (like it is done for SQLite for example). ---------- II. Database definition requirements. This part specifies database behaviour which all your databases must follow if you want to run OTServ on them. ---------- Important note: ALL those actions must be implemented WITHIN database, not on top of driver layer. Those actions must be performed for ALL queries, not only those from OTServ. That guarantees that database will keep it's integrity even if accessed from third party software. Important note: It is important for triggers if they are executed BEFORE or AFTER event. * Foreign key accounts.group_id. - It must not be possible to create account with key of unexisting group. - It must not be possible to delete group which contains any account assigned to it. * Unique key players.name. - It must not be possible to create more then one player with same name. * Foreign key players.account_id. - It must not be possible to create player with key of unexisting account. - When account is deleted all it's players must be also deleted. * Foreign key players.group_id. - It must not be possible to create player with key of unexisting group. - It must not be possible to delete group which contains any player assigned to it. * Foreign key guild_ranks.guild_id. - It must not be possible to create rank with key of unexisting guild. - When guild is deleted all it's ranks must be also deleted. * Foreign key player_viplist.player_id. - It must not be possible to create viplist for player which not exists. - When player is deleted his/her entire viplist must be also deleted. * Foreign key player_viplist.vip_id. - It must not be possible to create viplist entry with player which not exists. - When player is deleted entries in all viplists that points to him/her must also be deleted. * Foreign key player_spells.player_id. - It must not be possible to save spell with key of unexisting player. - When player is deleted all it's spells must also be deleted. * Foreign key player_storage.player_id. - It must not be possible to save storage value with key of unexisting player. - When player is deleted all it's storage values must also be deleted. * Foreign key player_skills.player_id. - It must not be possible to save skill with key of unexisting player. - When player is deleted all it's skills must also be deleted. * Foreign key player_items.player_id. - It must not be possible to save item with key of unexisting player. - When player is deleted all it's items must also be deleted. * Unique key players_items.player_id, player_items.sid. - Each player can contain only one item with given sid. * Foreign key house_lists.house_id. - It must not be possible to save list with key of unexisting house. - When house is deleted all it's lists must also be deleted. * Foreign key tile_items.tile_id. - It must not be possible to save tile item with key of unexisting tile. - When tile is deleted all it's items must also be deleted. * Foreign key player_depotitems.player_id. - It must not be possible to save depot item with key of unexisting player. - When player is deleted all it's depot items must also be deleted. * Unique key player_depotitems.player_id, player_depotitems.sid. - Each player can contain only one item with given sid. * Trigger before delete on accounts. - Before deleting account all bans on this account (with it's key and type 3) must be deleted. * Trigger before delete on guilds. - Before guild is deleted all it's members must have deleted rank assignments and guild nicks. * Trigger before delete on players. - Before deleting player all bans on this player (with it's key and type 2) must be deleted. - Before player is deleted all houses rent by him/her must be freed. * Trigger after insert on guild. - After guild is created default ranks for leader (level 3), vice-leaver (level 2) and member (level 1) must be created. * Trigger after insert on players. - After player is created database must create skills with ids 0-6 for him with default values.