104 Commits

Author SHA1 Message Date
Playtester
87a8b3ccaf Updated sql files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8951 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-08 13:11:12 +00:00
Playtester
95f9bcf86d Updated item_db.sql and mob_db.sql
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8753 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 15:53:31 +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
5af063b223 - Updated convert_engine.sql to use TYPE instead of ENGINE to be compatible with Mysql 4 installations.
- case_sensitive is now off by default due to performance issues.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8726 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 21:18:09 +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
Playtester
c12d13fd06 Added D-Kalck's fix of the TXT -> SQL converter
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 10:31:49 +00:00
Playtester
05831ec6a7 Sql file...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8694 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-10 22:33:48 +00:00
Playtester
7fcc044420 Updated item_db.sql and mob_db.sql
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8690 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-10 09:59:21 +00:00
skotlex
6db8420f3c - Added upgrade_svn8675.sql in case, for some reason, your guild table still has the emblem_data field as a 'blob' with "NOT NULL" specified.
- Some minor cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8675 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-08 16:36:48 +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
9f8cee903c - updated (more or less) the sql-files/item_db2.sql file.
- Some insignificant cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8429 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 14:54:29 +00:00
toms
c96183c9d4 Added SQL update which should remove \' from guild names
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 11:56:41 +00:00
Playtester
592cf6ab28 * Gospel can't stack anymore
* Updated SQL files

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8328 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-17 23:15:30 +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
toms
52745debe5 Reupdated item_db.sql to latest (forgot to update before -_-)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8155 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-06 21:35:10 +00:00
toms
35b7140aec Updated item_db.sql to latest.
Little fixes on homunc (hp/sp are now saved and init stats changed)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-06 21:28:14 +00:00
skotlex
a74b39c5c6 - Corrected Combat Knife reducing damage from DemiHumans by 10% instead of increasing damage against them.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7924 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 16:18:52 +00:00
toms
5062379bb4 Fixed Independence Memorial Hat weight, set to 0
Updated item_db.sql to latest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 13:01:15 +00:00
skotlex
7570d19aee - Added Toms's perl scripts item_db.pl and mob_db.pl (they are in tools/), they convert the txt databases into sql.
- Usage: "script" < "input file" > "output file". eg: ./tools/item_db.pl < db/item_db.txt > sql-files/item_db.sql
- Updated the sql files since now it's easy :D


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7879 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 18:43:42 +00:00
skotlex
4ad022db62 - Re-updated the mob_db.sql to latest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7868 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25 01:31:13 +00:00
skotlex
77a985acbe - Updated mob_db.sql to latest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7833 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-23 03:51:18 +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
skotlex
6abed14141 - Updated mob_db.sql to current mob_db.txt data.
- Some cleaning on chrif.c
- The char-server will allow off-line character saves when said char is tagged for final-save (this is the scenario when the char-map reconnect).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 02:41:10 +00:00
skotlex
98484bf874 - Updated mob_db.sql to current mob_db.txt data.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7708 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-17 03:17:14 +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
skotlex
92cecbdfce - Fixed an error on the item_db.sql file... GOSH I HATE THOSE COMMENTS, they make it HARD to correctly update the sql file >.<''
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7327 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-24 04:08:23 +00:00
skotlex
022268134e - Updated mob_db.sql and item_db.sql to latest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7324 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-24 00:36:32 +00:00
skotlex
ef3e22db87 - Implemented correct script for "12038,Lotto_Box_04"
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7228 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-17 17:20:24 +00:00
skotlex
974277a787 - Modified the bNoMagicDamage/bNoWeaponDamage bonuses to be a 0-100 setting. Meaning you can do bonus bNoMagicDamage,50; To make all magic damage be reduced by half. This bonus stack, so two cards with bNoMagicDamage,50 will give magic immunity.
- Removed setting gtb_pvp_only and replaced it with gtb_sc_immunity which specifies the threshold before the bNoMagicDamage starts blocking support statuses as well. ie: gtb_sc_imunity: 75 will mean that "bonus bNoMagicDamage,70;" reduces magic damage by 70%, but does not blocks heal or support status, while "bonus bNoMagicDamage,80;" does.
- Updated GTB's card script to be "bonus bNoMagicDamage,100;"


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7212 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 19:35:27 +00:00
skotlex
5ebc258ce8 - Removed db_tables.sql as it's no longer used.
- the mvp_sd is removed when the mob is the emperium and there's no killer/exp-awarded (assumed killed by script), this prevents the on-kill event from triggering and giving the castle to whoever damaged the most the emperium without destroying it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7208 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-16 15:39:16 +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
skotlex
a06f5ed145 - Updated item_db.sql/mob_db.sql to current.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6922 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-02 00:54:21 +00:00
Lance
bbf7f7d351 [Improved]:
- SQL upgrade file for the new loginlog. Thanks to ultramage.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6883 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 08:44:43 +00:00
Lance
8ec02beee9 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6869 54d463be-8e91-2dee-dedb-b68131a5f0ec 2006-05-31 02:17:39 +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
blackhole89
9cf042b0ee Fix possible compile mistakes in there. >_>
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6790 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-27 17:15:04 +00:00
skotlex
1641349382 - Merged item_db.sql from stable :B
- Added a missing line (how did it get lost?) in mob_spawn to set aggressive state for angry mobs.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6731 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-24 16:47:10 +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
a7301992bc - Reverted again the change that stuns the caster on Ske, Ska, Swoo when the target is a nonplayer (rather than always)
- Modified mob_spawn_once so that coordinates -1,-1 are "random around the player" while 0,0 are random around the whole map (regardless of whether there's a player attached or not)
- Knockback will no longer work on traps during woe.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6566 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-12 21:16:44 +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
64bd8b1dbe - Added the missing semi-comma from the upgrade_svn6533.sql file. Thanks to Tanaous
- Added back the missing code that substracts arrows when normal-attacking.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6554 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-11 13:38:30 +00:00
skotlex
ae5d5020c0 - Changed wedding costumes to use setoption rather than changebase.
- Modified setoption so that flag 1 or no flag adds an option, and flag 0 removes it.
- Updated script_commands with the new behaviour.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 13:43:00 +00:00
skotlex
b30b97cb41 - Updated mob_db2.txt and mob_db2.sql to have only 10 drop slots rather than 15.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6544 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-10 12:29:54 +00:00
skotlex
61b786eceb - Reduced drop slots from 15 to 10.
- Updated mob_db.sql with the current data.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6539 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-09 22:57:03 +00:00