48 Commits

Author SHA1 Message Date
ultramage
dac1c2d2df Removed unused guardian hp columns from the guild castles table in main.sql (should have been done in r11915).
Corrected incorrect use of the datetime column in the `login` table (bugreport:1962). Refreshed txt account savefile.
Cleaned up some random minor source code glitches.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13030 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-01 07:05:16 +00:00
ultramage
106b44c1e7 Merged the /loginmerge branch (topic:192754)
* the login server storage, ipban and logging systems have been abstracted and now provide a common interface; the rest has been merged into a single login server core (no more login/login_sql duplicity)
 * storage systems are now added via compiler options (WITH_SQL / WITH_TXT)
 * multiple storage engines can be compiled in at the same time, and the config option account.engine defines which one will be used.
 * due to MySQL autoincrement limitations, accounts with id '0' will not be supported; account IDs from this point on should start from '1'.
 * login_log() functions now again record IP addresses in dotted format, not as 4-byte integers (undo from r6868).
 * removed config options that defined column names in the login table
 * removed `memo` and `error message` columns from login db/savefile
 * moved `loginlog` table to the logs database
 * added sql files upgrade_svn12975.sql and upgrade_svn12975_log.sql
 * due to changes to the login table layout, I added an !optional! sql file (upgrade_svn12975_view.sql) that will provide a certain degree of backwards compatibility with existing software; read the instructions inside carefully!
 * moved third-party includes/libs to a separate directory
 * updated project files / makefiles

Changed the way GM levels are handled
 * removed conf/gm_account.txt
 * added the gm level column to the txt savefile (after 'email' column)
 * gm level information is now transferred along with account data
 
For open problems see bugreport:1889.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26 20:45:57 +00:00
akrus
319d9ced3d * Fixed: replaced TYPEs with ENGINEs in SQL files (for better compatibility, TYPE is a synonym) [akrus]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12880 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-23 06:40:25 +00:00
Kevin
ea96b9da32 Forgot to change main.sql to reflect the update to quest_objective table.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12582 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-13 22:37:04 +00:00
ultramage
65ea169212 Reverted the login table changes from r12464
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-11 07:45:26 +00:00
Kevin
a6b57811f9 New sql definitions for the quest code.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12559 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-11 07:24:03 +00:00
Kevin
f5fd71f4be Char server now loads/saves quest information.
Included table definitions for quests and quest objectives.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-10 05:35:04 +00:00
ultramage
f6a6d34640 Replaced the TYPE keyword with ENGINE in all sql files, because this is the preferred alternative.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-04 21:04:47 +00:00
ultramage
77826dfdf8 Renamed 'connect_until_time' to 'expiration_time'.
Renamed 'ban_until_time' to 'unban_time'.
this also applies to login table columns (see upgrade_svn12464.sql).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12464 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-03 12:46:55 +00:00
zephyrus
9f2fcbdb6c - Added the auctiondb structure
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12294 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-05 02:16:34 +00:00
ultramage
10e9228f5d Fix to the sql files, password column length must be 32, to store md5 hashes =_=
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12049 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-10 20:57:56 +00:00
ultramage
fafb4b8476 Another round of login server cleaning
* fixed passwordencrypt on SQL not behaving correctly (since r10753)
 * corrected some column lengths in the login db (username, password,...)
 * fixed some places which used wfifo without first reallocating it
 * removed interserver packet 0x7532 (Request to end connection), as there was no code that actually sent this packet
 * moved RFIFOSKIP actions to execute as soon as possible

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12043 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-10 15:35:23 +00:00
ultramage
8be1c4d48c * Some preparations for the guild script update
- cleaned up npc event execution code
- cleaned up guild data loading/saving code; to be improved later
- removed dummy 'account name' expulsion list management code
- removed columns 'rsv1' and 'rsv2' from guild member data
- removed columns 'rsv1' 'rsv2' 'rsv3' and 'acc' from guild expulsion data
- added upgrade_svn11895.sql for SQL

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-12 09:55:13 +00:00
zephyrus
009ce06822 - Some updates on the mail system packets [Zephyrus]
- Corrected the mail database structure on main.sql
- TODO: find what happens when you cannot receive an emailed item due to weight problems.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11692 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-07 17:16:53 +00:00
zephyrus
a558a4d2c7 - Updated the mail sql structure in main.sql.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11617 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-30 03:41:23 +00:00
zephyrus
a0b1a582a1 * Removed the inter_athena.conf maildb settings as they are not required anymore.
- MailDB is now an integral part of the MainDB.
- To Server Admins, use mysql tools to move your mail data to the new structure.
- You can get the maildb structure from main.sql.
- Renamed some vars (recomendation of Ultramage :D)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11557 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-23 00:31:37 +00:00
skotlex
dff80559d4 - Merged and completed Latio's work on server-side hot-key saving (http://www.eathena.ws/board/index.php?s=&showtopic=159388&view=findpost&p=884453)
- Now hotkeys are stored server-side (table hotkey in SQL servers, file save/hotkeys.txt for TXT servers). You can disable this behaviour by commenting out the 'HOTKEY_SAVING' define in mmo.h
- Fixed a few compilation warnings/errors.
- Apply upgrade_svn11018.sql to create the hotkey table.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11019 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-15 22:08:30 +00:00
ultramage
16671ef54f * Added Global chat and Main chat logging
- lowered the priority of the 'logging off during gw' filter

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10580 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 13:26:02 +00:00
ultramage
8f506eeda5 * SQL files fixup
- extended convert_engine_myisam and added innodb version
- changed the max. email length to 39 (to match value in source code)
- added comment for storage/guild storage picklog entries
- changed SETs to ENUMs, which is the proper data type in logs
- fixed incorrect defaults, shortened mapname lengths to 11
- use upgrade_svn10575_*.sql to apply changes

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10575 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-19 09:46:11 +00:00
ultramage
4ca0b15de3 EOL-styled some more files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-02 00:11:54 +00:00
skotlex
3c5c104561 - Modified the login SQL server so that case insensitive lookups use "where name = BINARY 'name'" instead of "where BINARY name = 'name'", since this way the name index should be used, and performance will no longer be heavily affected.
- Modified main.sql to add 4 missing indexes (thanks to ErkDog): char_id on the tables memo/friends, and online/name on the char table. Added upgrade_svn8728.sql to add these indexes to already existing tables.
- Changed back the default of case-sensitive to ON since it shouldn't be such a bad performance hog now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-13 01:07:45 +00:00
skotlex
c6142c3f39 - Added manual deletion of sc_data entries when deleting a character (char-SQL)
- Updated main.sql to use pure MyISAM tables, removed all foreign keys.
- Added Jaguar's sql script to convert all tables to MyISAM. It's located in sql-files/convert_engine.sql
- Removed convert_guild_tables.sql as we don't use InnoDB anymore.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 18:22:54 +00:00
skotlex
e7b86b1deb - Fixed connect_until field being a smallint rather than int in the login table (upgrade with upgrade_svn8630.sql)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8630 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-05 14:29:51 +00:00
skotlex
6f3c9a6dc7 - Fixed two instances in the login-sql server where the ip in the log-login table was being stored backwards.
- Now when a skill's range is 0 and the skill is NOT casted on self, it will take the basic weapon's range (without Vulture/Snake Eye bonus).
- Now when a duration is not specified, sc_start/sc_start2/sc_start4 will try to guess the duration by extracting it from the skill_db (it uses skill_get_time on whatever skill is associated to the status-change using val1 as skill-level)
- Corrected that extra comma at the end of the Kaensin layout setup.
- Some cleanups on trade_tradeaccept to prevent packets being resent when they shouldn't.
- Corrected that ALLOW NULL thingie on main.sql


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-10 14:25:32 +00:00
toms
c0f0a50c79 Fixed syntax error in 'guild' create table statement
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8228 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-10 13:11:06 +00:00
skotlex
ee59874725 - Fixed yet again AS_SPLASHER doing full damage on all characters. Now you can use the NK split damage value in the skill_db if you want damage divided by the amount of targets rather than by 2.
- Fixed crash on the battle_drain functions.
- Cleaned up HAMI_CASTLE, HLIF_AVOID, HAMI_DEFENCE so that it's usable by other types of objects other than Homunculus. 
- Cleaned up the Asura Strike code so that the SP/Spheres/States is not consumed when the skill fails due to Fog of Wall.
- When a negative delay for a skill is specified, this delay is now added on top of the character's amotion rather than adelay
- Modified main.sql to make the guild table allow NULL on the emblem data.
- Added file conf-tmpl/Changelog.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8185 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 15:07:29 +00:00
DracoRPG
f6d32063cf SQL fix for Homunc skills
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7768 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 16:40:22 +00:00
DracoRPG
15dd140846 Orn's and Albator's Homunculus system, finally, YAY!!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7706 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-17 00:15:33 +00:00
skotlex
5251ce7944 - Fixed the char table having party/guild_id as smallint when they need int there. Thanks to hermematon for pointing it out (use svn_ugprade7580.sql)
- Applied k3dt fixes to pet-hatching, ice-wall check, and wedding skills.
- Fixed endow skills calling the skill no damage packet twice.
- Fixed a crash on warpwaitingpc when the chat-room is empty.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7580 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-08 17:13:39 +00:00
Euph
c897622a1d sql optimizations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7198 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 06:25:02 +00:00
skotlex
e74e095778 - Fixed main.sql adding a key on char_id rather than account_id for the char table.
- Cleaned up character saving in char-sql, it no longer needs to query the database to see if the player exists on each char-save, instead it checks the received data against the online-players db. 
- Added an error message on the char-server when the received player data size does not matches with the expected size (should avoid the crash that happens on such a memcpy).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7160 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 14:18:30 +00:00
Lance
19e8dde400 Syntax errors :(
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7155 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-14 09:40:52 +00:00
skotlex
e4fb5dbbf7 - Updated mob_db.sql and item_db.sql to latest.
- Added account_id index to char table. Thanks to Buuyo for reporting it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7146 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-13 23:49:53 +00:00
Lance
15194233b8 [Improved]:
- loginlog using unsigned long `ip` field. (Please check for compatibility problems). 
[Added]: 
- Mercenary.c in VS.NET 2005 project files

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6868 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 02:13:23 +00:00
skotlex
078cab13fd - Fixed loginlog definition in main.sql, thanks to Tempesta
- Likely fixed the mob-skill random picking behaviour causing infinite loops sometimes.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6658 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-19 16:27:14 +00:00
skotlex
317b980ace - Fixed the definition of the KEY in the loginlog, thanks to TheUltraMage
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6559 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-11 21:26:14 +00:00
skotlex
26a517cd08 - Fix on pc_skill which fixes overlapping when one gets more than one bonus for the same skill.
- Updated main.sql's loginlog table structure.
- Added svn_update6533.sql to update the loginlog structure as suggested by theultramage.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6533 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 19:28:58 +00:00
skotlex
f7884c6c52 - Fixed the average_lv column size specification. Thanks to Joshuaali (upgrade_svn5607.sql)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5603 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-14 21:30:24 +00:00
skotlex
c606e4de69 - Some cleaning of the main.sql file
- Added upgrade file 5455 to make the manner/karma columns signed.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-04 02:07:07 +00:00
skotlex
d0c9123432 - Added an upgrade_svn file to fix the party sql table (it lacks the auto-increment property on the party_id column)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5311 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 20:48:05 +00:00
skotlex
dcd7d940b0 - Updated the login/char sql servers to let the sql tables autogenerate the new id, and then retrieve said id using mysql_insert_id rather than playing smart and loading the next insert ID on startup.
- Tables affected are: account creation, char creation, party creation, pet creation and guild creation.
- Also corrected some functions to be of type (void) rather than ()


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-16 20:15:21 +00:00
Valaris
2178a86317 AS OF SVN REV. 5901, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.  EVERYTHING ELSE
GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5094 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:10:48 +00:00
Valaris
fd99753f8e Clearing trunk.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5091 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-29 16:00:45 +00:00
(no author)
0ff0152526 Added a auto increment 'start' value in the main.sql file ^^[Sirius]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1071 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-02-10 20:28:32 +00:00
codemaster
18332401e0 Added a friend0 column
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@620 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-12-19 03:14:38 +00:00
amber
2ab9272cf8 removed a USE that should not be there
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-29 04:49:37 +00:00
amber
d479e29aee Fixed some file types
git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2004-11-14 16:18:26 +00:00
(no author)
706e785091 git-svn-id: https://svn.code.sf.net/p/rathena/svn/athena@2 54d463be-8e91-2dee-dedb-b68131a5f0ec 2004-11-04 23:25:09 +00:00