214 Commits

Author SHA1 Message Date
skotlex
f7e2c8a84c - Likely fixed "half" of the alliance being saved, which ends up in guilds that can attack another, but not viceversa.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8761 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-14 18:39:18 +00:00
skotlex
0697e450ed - Improved sql-query to check if name already exists when creating new chars.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-12 21:30:03 +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
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
0f8fb18252 - Fixed char-sql compilation
- Added support for reading the item_db_db inter config settings (char-sql)
- Fixed some compile warnings (functions with no arguments should have a (void) instead of ()).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8546 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 13:56:27 +00:00
skotlex
dfac028631 - Added a message to @clearweather stating when climate changes will dispel.
- Corrected @hidenpc saying that it's command name was "@npcoff"
- Updated itemdb reading on the char-sql server so that it reads both item_db and item_db2 files (totally untested yet as I can't compile SQL here x.x)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-30 13:40:10 +00:00
skotlex
6ffb2533a7 - Some minor cleanups.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-23 16:42:42 +00:00
Lupus
6d6d0f4000 more typos
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8422 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 11:35:38 +00:00
Lupus
337a5bcaca field typo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8421 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 11:31:54 +00:00
Lupus
796497fae5 added char deletion condition by BaseLevel
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8420 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-22 11:27:48 +00:00
toms
cc6ddef2e4 Fixed SQL-Guild Creation, guild name was escaped 2 times
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8413 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-21 21:44:52 +00:00
toms
5dffc4b45e Fixed "int format, long unsigned int arg" warning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8391 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-20 20:56:08 +00:00
skotlex
5c44979d67 - Applied multiple fixes which should take care of making homun save/load work on TXT now.
- Added Gatling Fever's batk bonus.
- Some cleaning in status_damage which should prevent trying to free already free'd pointers when unit_remove_map invokes unit_free (when status_damage was going to invoke unit_free anyway)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8308 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 23:30:48 +00:00
toms
2f858a5ea7 Delete homunc's skills from sql when the homunc is destroyed
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8307 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 23:05:29 +00:00
skotlex
80ded70c4f - Fixed the int_homun.c compilation issue with Char-SQL.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8300 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 19:56:11 +00:00
skotlex
c16d90c8a3 - Some cleanup of int_homun.c
- Added homun saving/loading support to char-TXT. Note that this is completely untested, so it may be as good as broken.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8299 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-15 19:44:22 +00:00
skotlex
78475ffd1a - Fixed script engine allowing scripts to set a player's zeny to negative values.
- Fixed setting hide_woe_damage making even "miss" attacks seem to connect.
- Cleaned up pc_getzeny to not require doubles.
- When readjusting the fame-list, the last entry's id is also reset (may fix characters appearing more than once on it?)
- Some sign/unsigned comparison warning fixes.
- Some 'may be used unitialized' warning fixes.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8273 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-14 14:54:14 +00:00
skotlex
9080a1b373 - Corrected the mapif_parse_PartyChangeMap function to correctly update level-range when someone logs on/off, fixes being unable to set even-share on once it's been broken even when the characters out of range logoff.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8254 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-13 05:07:13 +00:00
skotlex
6db2d44adb - Hopefully fixed family-party-even-share not breaking when a member logs out.
- Corrected Advanced Jobs HP bonus from 30% -> 25%


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8238 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-10 20:17:38 +00:00
skotlex
9456f83ac2 - Fixed the char-server not invoking the party_calc_state function when the third party-member is added to a party, hence failing to check for families and disabling even share from them unless all three relog first (state is correctly calculated when party is first loaded).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8197 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-09 02:19:53 +00:00
skotlex
29fdbcae3b - Fixed the login-sql server replying to the change-sex packet with the wrong gender, causing the char-server to screw-up job-change updates.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8180 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-08 03:07:57 +00:00
toms
5511cb9ea3 Changed atoi to strtoul for guild-experience's field
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8090 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 09:46:35 +00:00
toms
c831b74d87 Fixed a bug in int_storage.c, temp array doesn't have the good size
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8088 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-03 08:51:18 +00:00
toms
8e191af335 Code cleanup & optimization on guild part of char-server
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8059 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-02 16:37:02 +00:00
skotlex
2918287bd5 - Fixed the subnet 0 mask being reset to 0 when someone goes up on the fame rankings.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8021 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-01 04:24:45 +00:00
toms
7d36341087 Force all players offline in sql when char-server starts
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7977 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-30 13:31:04 +00:00
skotlex
3fb5dce0ae - Removed a redeclared variable i in the parsing of the fame list (char-txt server) which seems to be the cause of the random memory corruptions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 13:20:44 +00:00
toms
ee5ee4fcd0 * Fix homunc & code cleanup [Toms]
- Timer problems on delete_timer
  - Intimacy problem (overflow & new values)
  - Homunc deleted if intimacy < 0
  - base exp is now given to master
  - Homunc sometimes not saved

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-27 11:56:22 +00:00
skotlex
a0ab1d07f5 - Applied the fix to homunculus name saving...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7777 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-20 19:57:18 +00:00
skotlex
c89acf814e - Fixed the homun creation sql statement. Why noone else did so before?
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7749 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 15:29:55 +00:00
skotlex
c96212781f - Corrected Trim chars to block 'enter', as explained by the Ultra mage.
- When the client passes account version 0, the login server will set it to 1 now.
- Corrected the HP bar scaling when HP is above Short Max. It should display fine for any HP value now.
- Added a check when the mob's adelay is shorter than the amotion, in which case the adelay will be changed to the amotion value.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7742 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-19 14:31:01 +00:00
skotlex
094db48cae - Added atcommand @partyoption, lets you alter the party item-distribution type on the go. Usage is "@partyoption <pickup share> <item distribution>", where both arguments can be 0/1, yes/no, etc.
- Updated @changeleader and @partyoption to use msg_Athena entries.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 21:12:35 +00:00
skotlex
b974a6b765 - Added character 013 (enter) to the list of characters that are always removed from new character names.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7732 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 15:05:26 +00:00
skotlex
97b00a11ad - Added a proper check to make aggressive mobs never override homun targets regardless of distance.
- Removed a bunch of homun-related variables that are not needed at all. The alive condition is removed, now the code checks for the hp value to know if the homun is alive or not.
- Cleaned up a bit the skill-id function, homun skill checks (such as delay and skill-lv learned) should be correct now.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-18 13:25:21 +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
Vicious
1090167f97 orn's lil fix
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-17 01:53:59 +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
f88913a9f0 - Fixed check_connect_login_server check in char-sql server. Fixes char-server not reconnecting to the login server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7605 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 23:53:16 +00:00
skotlex
44369f069e - Fixed SQL compilation of the char-SQL server... (I need SQL installed at work ~.~)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7602 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 20:03:18 +00:00
skotlex
924284f1b9 - Added login-char packet 0x2737. Sets all characters offline (login-server side).
- Cleaned up char server "set all offline" implementation to remove only characters from the map-server from which the packet was invoked. It will also now correctly kick/set-character offline from the map-server if they are connected.
- Cleaned up the char-sql reconnect code. It no longer sets everyone to offline.
- Removed setting "kick_on_disconnect", servers will no longer kick characters out when there's a disconnection. Instead, it'll use the most logical approach: Set characters into a "lost" state when there's a disconnection, on reconnect, resent the list of online-characters, do a sync, and let the difference be characters to be removed. Also, the map-server won't release character data until it's saved and the ack returns from the char-server to prevent data loss (all this data is resent on reconnect for saving anyway).


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7600 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-10 19:41:25 +00:00
skotlex
e0afdded8b - Okay, added a chrif_save_ack packet to the char-server so now the map server will know once a character was "final saved", and only then the character will be removed from memory. On char-server reconnection, all chars that are in final-save state are resent to save (if they are still in memory, it's because the ack hasn't gotten here from the char-server). This should effectively block all dupe problems due to heavy inter-server lag, however as it's untested, it currently prints some debug messages when people are saved and then removed from memory. Need testers so this can be debugged and merged to stable!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7568 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 16:28:41 +00:00
skotlex
b643528e50 - Now, when the login-char connection is cut, the char-server won't set everyone offline on reconnect, instead it will send the list of online accounts to the login server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7563 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 14:38:54 +00:00
skotlex
544adf40b5 - Modified the error on the char-sql server to set chars online when it receives a save packet from a character tagged as offline.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7561 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 14:02:13 +00:00
skotlex
deba53730f - Fixed signed/unsigned comparison issues in the char txt/sql server.
- Fixed the cooking success chances. Thanks to Ishizu Chan.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7560 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-07 13:48:54 +00:00
skotlex
b7fa70b741 - Modified the party_data structure on the map server to remove some redundant data. Added a party_data structure on the char-server to hold a more complete set of information about parties. Added to the party_member structure the class of each member so that the map server can do the appropiate checks even if the character is on another mapserver/offline. Due to the format changes in the party structure, txt servers will have to wipe their party file... (sql save format has not been changed)
- Added function char_family to check if there's a family state given the three character ids, instead of doing individual checks all the time.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7553 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-06 23:39:24 +00:00
skotlex
798eea8c5e - Fixed code using i instead of id in a few instances when updating char/map server IP.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-04 13:48:13 +00:00
skotlex
1d6dbc95dc - Char-server SQL won't perform the reconnect cleanup routines when kick_on_disconnect is disabled.
- Renamed summons_inherit_effects to summons_trigger_autospells as the setting now only makes the attacks of the slaves trigger the autospells of the master (as it should be).
- Corrected code capping no_spawn_on_player to 50 when the max should be 100.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-03 19:59:48 +00:00
skotlex
6d354a4b06 - Cleaned up the IP sync code to...
- Use charif_sendallwos rather than manually altering the buffers of each server.
- Use the id variable for identifying current char-server instead of scanning the connected servers for it (it's doing the same work twice)
- Added config setting sync_ip_interval to specify how long to go before updating ip. Defaults to 0 (disabled)
- Sending ip update packets will only be done when the ip changed now.
- Removed dns_str variables, and now char_ip_str/login_ip_str/map_ip_str will hold the unresolved dns address (as these variables have no use otherwise)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7360 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-27 17:02:59 +00:00
Lance
a90363726b Typos resolving login-DNS instead of char-DNS -.-
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7291 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-22 09:13:58 +00:00
Lance
50ebb5e959 * [Fixed]:
- Compilation warnings and errors.
[Improved]: 
- Changed and moved IP sync status messages to elaborate more.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7290 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-06-22 08:50:36 +00:00