117 Commits

Author SHA1 Message Date
skotlex
3833a911c5 - Fixed the compilation errors of my last commit... >.> <.<
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7249 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 14:50:43 +00:00
skotlex
ba4de26c1e - Removed the mysterious array of two of char_dat (char/sql server), replaced it with a static structure.
- Added function char_loadName to extract the character name of a given ID.
- Fixed fame-list updating crashing char-sql server when the given char-id just got into ranking.
- Sorry I didn't check if it compiles cleanly because I don't have sql here <.< (am gonna test it in a second, though)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7248 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 14:45:26 +00:00
Lance
67e445d784 * [Fixed]:
- Typo in parse_frommap.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7240 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-19 06:13:21 +00:00
Lance
0985a26455 * [Temperory Fixed]:
- Crashing of SQL char-server in parse_frommap case 0x2b01.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7236 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-18 11:38:19 +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
Vicious
8e3fb1da90 fixed MoM's typo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7081 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-10 03:13:28 +00:00
skotlex
2e5660ec68 - Fixed @mapinfo displaying incorrectly maps with nosave which send you back to your last savepoint.
- Moved guild_exp_rate from a mapserver battle config setting to a char server config. It no longer modifies the total taxed exp as seen on the guild information window, but directly modifies the exp that the guild earns.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7074 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 15:12:53 +00:00
MasterOfMuppets
3e901e2ef5 Fixed a typo in char_sql/char.c, thanks to Euph.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7070 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-09 13:37:53 +00:00
skotlex
d3ffb31cc4 - Removed char_nick2id from char-sql server as it's no longer needed.
- Fixed quitting the map server not properly saving the storage before deleting it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7030 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 13:19:12 +00:00
Lance
a6f2c2e5ed * [Optimized]:
- list and size not being initialized (size get intialized in default: switch case) Eliminated default case and initialized list and size at the beginning. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7021 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-07 01:26:17 +00:00
skotlex
166265be07 - Fixed skill_unitsetting using layout->count for the for instead of group->count
- Added SC_INCDEXRATE/SC_INCAGIRATE. NPC_POWERUP/NPC_AGIUP now correctly increase dex/agi by 40% per level.
- Fixed char-sql server not deleting character variables


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6984 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-05 17:59:28 +00:00
Lance
8686c24f90 [Fixed]:
- Guys can't go across map-servers :( Thanks to Buuyo^

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6905 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-01 01:55:35 +00:00
skotlex
0d281eea6d - Fixed compilation of char_sql/char.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6896 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 20:13:20 +00:00
skotlex
92255a237b - Moved the JOB_* defines from map.h to mmo.h, update char.c to use them.
- Added function char_read_fame_list for famelist reading. Invoked it on init, and made it be sent automatically to connecting map servers.
- Removed request to reload fame list when map server connects.
- Some cleaning of the fame-list reading code.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 20:08:40 +00:00
skotlex
053931237b - Some cleaning of the fame-update code, fixing a logic bug which made the ranking list fail to display the correct ranker names.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-31 15:07:37 +00:00
Lance
e43f38bb0d * Change scripting engine's NPC scope vars to dot (.) style.
* Improved and (should be fully) fixed the mob control engine. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6769 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26 07:21:48 +00:00
Lance
63438cde12 * Fixed typos in char.c
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6766 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26 06:11:35 +00:00
DracoRPG
d94ebfdd53 I'm still here!
Rewrote fame ranking lists

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6764 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-05-26 01:35:17 +00:00
skotlex
eac7f93dbc - Added logging of deleted characters when the char_log is enabled.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6251 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-24 15:55:04 +00:00
skotlex
41a6c38e23 - Added SC_KEEPING/SC_BARRIER to calc_flag in status_change_end
- Added Option constants for Carts, fixed OPTION_FLYING (it conflicts with OPTION_XMAS?)
- Updated clif.c to check for OPTION_WEDDING|OPTION_XMAS instead of view class to block attacks and skill usage.
- Removed struct pc_base_job and functions pc_calc_base_job/pc_calc_base_job2 which are no longer used anywhere (were long ago deprecated infavor of the new jobid system)
- Cleaned up change-cart code.
- Modified SC_XMAS to not change your view anymore and only set the proper option value (OPTION_XMAS)
- Cleaned up the code regarding char_gm reading.
- Changed the option field to unsigned short to make room for the higher values.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6229 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-22 05:21:24 +00:00
skotlex
0db2a0aa0b - Char server will now ignore packet 0x65 for already authentified accounts.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6206 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-21 00:19:14 +00:00
skotlex
b6558a82ae - Fixed char-sql server still reading the old lanconfig format rather than the new one.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6123 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 21:44:30 +00:00
skotlex
b6fa7be9e9 - Updated the subnet support to not require specifying the subnet mask, it is auto-acquired from the char/map IP and the subnet-mask.
- skill_wall_check defaults to yes now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-10 14:26:52 +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
f2d2edd1cd - Changed status_point/skill_point to unsigned short. Adjusted the code as necessary to prevent overflows.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5762 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-27 01:24:34 +00:00
Lupus
d740947921 warning msg typos fix
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5692 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-21 11:50:27 +00:00
skotlex
cee086fece - Fixed handling of the char_gm_read config for packet 0x2af7 (reloadgmdb)
- Added battle_config debuff_on_logout which removes Asura's SP regen delay and Strip-Equip effects on logout when set to yes (default).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5644 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-17 14:09:54 +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
8e70128bf9 - Fixed a bug on the last fix :P
- Removed some of those annoying login-SQL on-log messages that are totally useless.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-04 06:06:28 +00:00
skotlex
37912c2a7b - Fixed subnet checking being broken in the login txt server.
- Changed a bit the information of the subnet checking to include the ip that is being checked.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5458 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-04 05:40:06 +00:00
Zephiris
d4ccec0203 * Fixed character deletion working on SQL without an email address (Thanks to Valaris) [Zephiris]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5449 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-03 18:09:24 +00:00
skotlex
8a67a7cf35 - Fame list size is now defined by MAX_FAME_LIST constant (mmo.h)
- Char server can now specify the max size for blacksmith/alchemist/taekwon rankers.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5435 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-02 21:11:50 +00:00
codemaster
e2b51026b8 * Corrected a few Compiling Warnings [Codemaster]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5405 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 05:43:41 +00:00
codemaster
018dec7fb4 * Added the ability to select GM loading via Login (default) or Char [Codemaster]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5404 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-03-01 05:35:21 +00:00
LuzZza
9bb0a7eedb Rewrote LAN support code. Changed configuration file name lan_support.conf to subnet_athena.conf, changed it syntax.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5398 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-28 00:41:00 +00:00
skotlex
90ec4f1d14 - Modified the way autospells stack to mimic official servers. Cards of the same ID cannot stack, but different cards with the same skill can each trigger indepedently of each other.
- Added battle_config autospell_stacking to enable stacking of cards of same ID.
- Moved card-specific battle options to items.conf
- Autospells triggered when hit will check the range to the target.
- Some cleaning up of status_calc_pc
- In status_change_start capped the passed success chance to 100%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5377 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-23 16:31:16 +00:00
skotlex
c0652d7916 - Added back the char-sql server sending the GM list when the map server connects.
- Fixed a bug in the add_timer_interval error reporting.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5351 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-20 22:16:19 +00:00
skotlex
d57406c09e - Char-SQL: Removed the ridiculous check for existing party/guild each time a character is saved. The check should be done upon loading (when the guild/party is not found, the char's party/guild id is set to 0 THERE)
- Removed the 'Quick loaded char' messages from the char-sql server
- Some cleaning of the guild sql saving routine.
- Various checks around the char-SQL server and a few memory leak fixes.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5309 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 14:37:43 +00:00
skotlex
eafb17b8fe - Fixed the memory leak on opt_2str as pointed out by End of Exam
- Fixed a few char SQL memory leaks as pointed out by End of Exam


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5307 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-17 13:36:49 +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
e0fb2a113f - Fixed the char servers to store correctly exp as uints. They are also capped to LONG_MAX before being sent to the client.
- TK_DODGE now dodges all ranged attacks, when used with SPURT, dodges everything.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5289 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-15 20:18:11 +00:00
skotlex
53b671c36f - Fixed Char-SQL server setting up the save/last point to the novice grounds when either x, y or the map is 0.
- Commented the char server setting up Prontera as default point when there's none (this bug should not exist)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-08 00:39:47 +00:00
skotlex
26cff5461b - Fixed sql compile.
- Some small adjustments on how the user/password in the char server are read.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5207 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-07 01:39:51 +00:00
skotlex
382bc65f07 - Fixed sql compile.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5205 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-06 18:47:28 +00:00
skotlex
d69479b946 - Added define clif_deadsit to send the dead state into player packets if the player is in trick dead state.
- Venom Splasher always hits (but splash damage targets can still avoid it)
- Using autoloot with no arguments now toggles it between @autoloot 0 and @autoloot 100%
- Falcon Assault now takes Blitz Beat lv5 as base damage.
- Fixed pc_makesavestatus not updating status.option correctly.
- Corrected Waterball so that higher levels can do insane amount of hits.
- Altered slave behaviour. No more random walking, will stay within 2 cells of their master.
- Reverted the Summon Slave behaviour to not adjust level based on number of current slaves.
- Coma no longer sends SP to 1.
- Updated Meteor so that when level 11 or more is casted, the area over which meteors fall is tripled.
- Dark elemental characters are now inmune to Curse.
- Fixed sc_data saving to sql buffer building method. Thanks to its_sparky.
- Changed the map zone reading from using pow to a bit shift.
- Experience has now been changed to unsigned int, and is read as such from the dbs.
- Increased HT_DETECTING seek range to 7x7
- Added function map_foreachinrange which actually checks distance of nearing objects (unlike for each in area which uses a square area), may come handy for future code.
- Corrected Venom Splasher: Being hit does not cancels it, works at 75% or less of target's HP, being hit normally while under the count has a chance of causing poison. Damage is +400% + 50*lv%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-06 18:38:51 +00:00
skotlex
d9f1d70901 - Map and char server now will complain if they are run using the default user/password set.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5158 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-01 20:56:48 +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
celest
3feabb0c74 * Simplified Valaris' online_timer
* Updated Fogwall, Spiderweb, and HP Conversion
* Adding saving character online/offline for TXT char and login (unfinished)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1411 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-05 14:57:03 +00:00
celest
27326acd4e * Removed anti-freeze system for login and char
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1396 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-04 14:15:49 +00:00