71 Commits

Author SHA1 Message Date
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
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
Lupus
a866920e15 removed old logs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-07 09:50:37 +00:00
skotlex
1928c535ff - Updated item_db.sql
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6505 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-06 06:16:13 +00:00
skotlex
056ee82c7f - Added missing sql-files/mob_db.sql... somehow it was missing from the mob_db update.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6358 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 04:18:55 +00:00
skotlex
38243e373c - Modified the mob_db structure. The mvp related columns were moved to before the drops, amount of drops increased from 10 to 15.
- Updated sql-files/mob_db.sql to latest.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6354 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-29 00:34:36 +00:00
skotlex
6e1f885043 - Small change in the pet_ai that should stop the "strange" catch-up behaviour of pets when you are much faster than them.
- Corrected the unequip script of the wedding dress/tuxedo (it should be Class, not bClass)
- Changebase script command will also refresh the weapon sprites (in case you changed into Wedding/Xmas class)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6317 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-27 15:15:22 +00:00
skotlex
af55aa1e6e - Updated item_db.sql to current.
- Some small code-cleanups.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6298 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-26 23:01:55 +00:00
skotlex
72faf33f97 - Added new column to mob_db Sprite_Name to hold the mob's sprite name. Columns Name and JName now hold the mob's english and kro names respectively.
- Currently both Name and Jname have the KRO names, so someone will have to update them.
- Updated mob_db.sql and mob_db2.sql to latest.
- Added battle_config option override_mob_names to make the spawned mob names use the mob_db names instead of the specified names in the spawn files.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6246 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 03:53:29 +00:00
Playtester
ca426293ef Changed item_db2.sql to new format
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6212 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21 11:51:41 +00:00
skotlex
c69118e1e5 - Added two columns to item_db: equip_script and unequip_script are scripts that are executed once when the corresponding item is equipped or unequipped respectively.
- Removed bonuses bDamageWhenUnequip, bLoseSPWhenUnequip
- Updated sql-files/item_db.sql with latest.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-20 23:24:20 +00:00
skotlex
5004c77916 - Fixed upgrade_svn5902.sql, thanks to Koshiro for pointing it out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6092 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-15 19:59:36 +00:00
skotlex
df4fc4cd65 - Updated sql-files/mob_db.sql to current.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6062 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-14 19:00:29 +00:00
skotlex
e5cb6bb260 - Updated sql-files/item_db.sql to current.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6056 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-14 03:25:34 +00:00
skotlex
db62926e5b - Changed use of strtol to strtoll as strtol's result is just a signed int, and we need to parse values above 0x7FFFFFFF
- Corrected Knives being usable by Gunslinger. SQL users use upgrade_svn5972.sql to ugprade that.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-09 22:52:06 +00:00
skotlex
7015c8578f - Modified the equip_job field in the item_db to be a hexadecimal value for easier handling.
- Updated item_db.sql to this new file format (even though it's equip_jobs field is still a integer)
- Added upgrade_svn5951.sql for those who would like to convert their existing items.
- Added doc/item_db.txt to explain each of the fields in db/item_db.txt


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5951 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-08 06:08:29 +00:00
skotlex
491228d9cc - Added inter config connection_ping_interval which specifies interval in hours at which mysql_ping's must be done on all connection handles to keep the mysql connection alive. Defaults to 0 (disabled)
- Removed login sql handle from the map server as it isn't used for anything.
- Made the login sql handle on the char-sql server be used only when gm_read_method 1 is enabled.
- Small fixes to npc_enable, added BL_NPC handling on status_get_sc.
- Added a path_search check in map_random_dir, so that the random direction picked up doesn't goes through walls and all that.
- Some changes to close-confine, status start will fail when the source is not found or it doesn't has sc-data.
- pc_setoption no longer changes the character's class when mounting/dismounting, it only changes the view-class.
- The peco-crash-fix from the char servers is still needed. This packet must be wrong! We likely need to sniff it.
- Modified the char-txt server to modify the class of mounted characters to their non-mounted version. Added an upgrade_svn file to handle the class update on the sql tables.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-05 00:23:18 +00:00
skotlex
c10891c7b9 - Added upgrade_svn5834.sql to update view for item type 10.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5834 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 02:41:34 +00:00
skotlex
cb5e2ff339 - Added a debug function to locate all "looping warps"
- Some cleanup of the skill-use functions in clif.c


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5787 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-28 14:19:51 +00:00
skotlex
ba713905eb - Updated mob_db.sql and item_db.sql to latest txt versions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-23 23:26:42 +00:00
skotlex
b0515272d9 - Added item_db2.sql and mob_db2.sql, thanks to Joshuaali
- Added more usage of msg_athena on the slave atcommands.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5609 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-15 14:00:32 +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
f5359b3bbc - Corrected char-server parameters so that the subnet config file is the third parameter, not the second (which was conflicting with inter_athena.conf's argument), thanks to foobar.
- Fixed TK and Soul Linker's position of their job entry in exp2.txt, thanks to Coltaro.
- Fixed NPC_GRANDDARKNESS targetting the enemy instead of yourself in mob_skill_db.
- Fixed Grandcross's hit and range entries in the skill_db (it had hit 5? that wasn't even a valid value from the description)
- PR_BENEDICTIO now ignores mdef
- Removed the status_isdead checks from status_check_skilluse, they are now done only on the skill_castend_* functions.
- Fixed NPC_SELFDESTRUCTION not doing the correct damage to oneself.
- Fixed chatlog's x/y column capacity.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5584 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-13 14:49:16 +00:00
skotlex
858d87d0c8 - Fixed Valkyrie's shield script in item_db.sql
- Added a warning on the char-server's name when it contains a space.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5547 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-10 01:56:59 +00:00
skotlex
d29bdd1949 - Fixed a bug that was making the no_spawn_on_player setting useless.
- Added Deadly Poison and Bleeding to status_get_sc_def, meaning that now vit does increases defense against being inflicted from it.
- Fixed a crash and an infinite loop in @whodrops @.@
- Expanded the item_db column sizes for the names to 50.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5526 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-09 04:05:48 +00:00
skotlex
67e039e791 - Updated mob_db.sql and item_db.sql to latest.
- Modified mob_db's HP column to be an int.
- Fixed the included global_functions file for the Kafra Express script.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5507 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-08 03:33:48 +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
be658f0edf - Added upgrade file upgrade_svn5322.sql because apparently not everyone has the guild table with autoincremental guild_id defined.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5322 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-18 07:06:37 +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
skotlex
6717272b97 - Updated sql-files/mob_db.sql to latest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5193 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-05 08:34:06 +00:00
skotlex
e73af7ca2b - Merged some of the 'plug' items into the main item_db
- Updated sql-files/item_db.sql to latest.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5191 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-05 07:56:53 +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