186 Commits

Author SHA1 Message Date
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
47adb68d91 - Fixed mysql ping setting being in minutes rather than hours.
- Removed npc_event_sub from npc.h and moved it to npc.c
- Cleaned up #warp to prevent spitting non-walkable tile warnings.
- Changed the meaning of msg_athena 2, it is now "invalid target cell, randomizing".


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6114 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-16 15:33:59 +00:00
skotlex
dc8d892b45 - Added an Info message when pinging the SQL servers.
- Changed line terminators back to *nix on map.c because otherwise it's impossible to run a diff between the stable and trunk versions of the file.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6043 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-13 18:10:08 +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
34eeb7cd5b - Added a check to remove exp-even-share when someone leaves a party.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5855 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-04-01 23:47:24 +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
skotlex
523fed742d - Some compile warning fixes.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5123 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-01-30 17:31:36 +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
shinomori
9cfffd0ac8 fixing
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1390 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-04-03 17:08:16 +00:00
celest
52668d1fc1 * Fixed @reloadgmdb in SQL
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1344 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-30 17:47:54 +00:00
celest
8cdf7b2840 * Fixed SQL char server crashing when loading the item_db
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1336 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 18:03:36 +00:00
celest
a2ca733706 * Added auto save guild dataevery 5 minutes during WOE
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1333 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 16:32:28 +00:00
amber
dfd7258882 Fixe compile time problems with our mixed C++/C conformance
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1328 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 06:18:21 +00:00
amber
150683e2e6 Fixed use of storage variable to conform to ANSI C spec [MouseJstr]
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1327 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 05:05:50 +00:00
celest
fe2688f05c * Fixed 'use_sql_db' not read properly in SQL char server
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1317 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-29 02:39:29 +00:00
veider
de7940888a git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1316 54d463be-8e91-2dee-dedb-b68131a5f0ec 2005-03-28 21:25:11 +00:00
amber
cb34e8c48a memory bugs fixed
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1278 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-23 18:54:09 +00:00
celest
35d38ae942 Fixed compile warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1276 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-23 16:01:51 +00:00
celest
91fb421a67 * Fixed alot of memory leaks
* Added stray memory cleaning routine to db.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1275 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-23 15:26:52 +00:00
celest
d2dd679325 * Don't log SQL char actions if log_char is not enabled in char_athena.conf
* Updated shop_exp's calculation to give more exp
* Some item and mob DB updates
* Added Einbech/Einbroch warps

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1249 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-18 10:04:41 +00:00
celest
7840576d02 Fixed SQL compile error
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1247 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-18 04:04:17 +00:00
celest
f4b515d055 * Fixed more typos in /cities/payon.txt
* Added 2 char-server packets to support Freya's login server
* Rewrite on Full Strip

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@1243 54d463be-8e91-2dee-dedb-b68131a5f0ec
2005-03-17 09:03:06 +00:00