91 Commits

Author SHA1 Message Date
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
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