5357 Commits

Author SHA1 Message Date
ultramage
6148165707 Preparations for the login server TXT/SQL merge
- copied the sql login server code to /src/login
- merged the login server header files
- moved the account savefile name config setting to inter_athena.conf and renamed it to match the other settings

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12478 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-04 17:07:31 +00:00
toms
7dc57bf5ce Fixed a little bug in Kevin's commit (r12473)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12475 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-04 12:42:29 +00:00
ultramage
9b1df424a6 Removed commented-out TXT-only login-server code that was supposed to prevent reconnection when changing account data (bugreport:1281)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12474 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-04 07:20:49 +00:00
Kevin
e45a10cf13 Bug fixes for Auth Glitch and Map server crash through script warp when changing map servers.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12473 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-04 07:19:47 +00:00
ultramage
77826dfdf8 Renamed 'connect_until_time' to 'expiration_time'.
Renamed 'ban_until_time' to 'unban_time'.
this also applies to login table columns (see upgrade_svn12464.sql).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12464 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-03 12:46:55 +00:00
L0ne_W0lf
a1d132effc First round of minor updates for WoE SE.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12462 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-02 17:44:48 +00:00
FlavioJS
3f944dd947 * Added SV_KEEP_TERMINATOR option to not split the line terminator.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12461 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-02 17:16:25 +00:00
FlavioJS
bc272fbc39 * Added sv_split to strlib.c/h (similar to sv_parse).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-02 15:55:15 +00:00
ultramage
a6de8bacab Fixed a compilation issue in r12457.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12458 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-02 06:35:54 +00:00
FlavioJS
ca35192cd0 * Added more debug information to track the double remove_map's
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12457 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-02 01:03:31 +00:00
Lupus
8cf1f0ddf1 fixed aciddemo map server crash
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-31 10:54:12 +00:00
zephyrus
2fedf05582 - Fixed wrong expire calculation on Wall of Fog used over Deluge (Bug report 1301).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-31 05:16:42 +00:00
ultramage
4e6606fb92 Yet more login server stuff:
* jA data structure compatibility renaming / adjustments
 * mmo_account -> login_session_data, auth_data -> mmo_account
 * made gender variable usage consistent for the entire login server
 * rewrote TXT's new account creation procedure to match SQL's

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12450 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-30 19:01:09 +00:00
zephyrus
96acc86869 - Fixed a visual bug in mail when sending Zeny.
- Fixed bug pet loosing loot on logout. Bug Report 1291.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12449 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-29 17:54:30 +00:00
ultramage
7b3fbf72a8 Fixed a compilation issue with r12446 (C can't handle non-constant initializers for static variables).
Switched trunk's VS9 project files back to "Compile as C code" (topic:183217).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12448 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-29 13:14:18 +00:00
zephyrus
dc1924cdb3 - Fixed a bug in a previous Adoption fix from umage (partnerid is char_id not account_id)
- Added new headgears from EuRO and ThRO.
- Fixed some viewids.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12447 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-29 03:56:33 +00:00
ultramage
76eb9581b9 Some more txt/sql login server synchronization:
- removed the option to specify multiple IPs/subnets for 'ladminallowip'
- removed the @gm command and all associated management code
- removed the 'save unknown packets' code
- removed the lengthy TXT ipban code (which was essentially a copy of what's already handled by the socket layer/packet_athena.conf)
- implemented 'start_limited_time' in SQL (expiration for new accounts)
- applied some missing TXT changes from the last update

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12446 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-28 18:53:51 +00:00
zephyrus
b70caae42f - Fixing a bug in map_nick2sd. Also fixed on Stable.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12445 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-28 02:22:25 +00:00
ultramage
ea403a9f9a Added proper script constants and documentation for the 'checkcell' command. (topic:183035)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12443 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-27 18:27:22 +00:00
ultramage
ac90e8170e Fixed a mistake in r12223, where during warping between mapservers, a character's coordinates would get changed before removing the character from the map, producing an infinite loop if the character returned back to the original coordinates. (bugreport:1286)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12442 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-27 16:37:31 +00:00
ultramage
b1b356fb11 Partial rewrite of the login server's auth system.
* replaced the cyclic, size-limited auth_fifo data structure with the more appropriate DBMap-based alternative (stops some erratic behavior)
 * added code to simulate the pseudo-status "online on login server"
 * auth data will now expire after 30 seconds instead of persisting
 * better-than-aegis handling of login cancellation (the server will wipe all previous auth data instead of making you wait for it to expire)
 * proper status message - no more generic "rejected from server", now you'll get "the server still recognizes your last connection"
 * fixed a typo in r10110 which caused disconnect timer removal to fail
 * split off some parsing code to login_auth_ok() and login_auth_failed()
 * extended the auth confirmation packet so that the login_id1/2 values are sent along with the associated account id (stops charserver from making wrong choices if two incoming sessions have the same account id)
 * fixed a bug in the disconnect part of the main charserver parsing loop, where a non-authed client would erase the online db entry for a client that's already online, thus bypassing any dual-login checks
 * added code to stop the waiting_disconnect timer when the associated online entry is removed right away, instead of doing checks later
 * removed code that would periodically wipe the online status of clients that are in the auth process (producing yet more erratic behavior)
 * commented out some TXT-only reconnect prevention code (bugreport:1281)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12441 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-27 12:06:12 +00:00
ultramage
c6402e89c2 merged the charserver acc modification code cleanup to TXT (r11324)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12440 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-27 11:34:16 +00:00
ultramage
35de802ced Chagned trunk's default server->client PACKETVER to 9
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12439 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-27 09:23:04 +00:00
zephyrus
0c92c0f672 - Fixed a bug in map_nick2sd (sometimes we can have 3 chars with similar names, and the "perfect match" in the 3º slot... or more).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12437 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-27 03:25:51 +00:00
ultramage
94943b2b6a Adjusted eAthena code to compile cleanly in C++ mode.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12436 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-26 10:37:45 +00:00
ultramage
e2960e9af8 Partially fixed the mess in status.c.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12433 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-25 21:41:31 +00:00
ultramage
9c07918456 Added proper checks to adoption processing (followup to r12428).
Cleaned up some code / fixed some typos.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12432 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-25 09:56:18 +00:00
FlavioJS
66ba548612 * Added temporary code to track and prevent the multiple remove_map's that appear to be happening.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12430 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-24 23:18:08 +00:00
ultramage
49f1f4434d * Reorganized the contents of the mapserver's header files.
- map.h is no longer a generic dumping spot of all the shared structs, and instead, each such structure now resides in its logical component
- map.h now only holds mostly map-related things (needs more cleaning)
- there's still a lot of room for improvement (reorganization within individual header files, etc...)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12429 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-24 21:20:48 +00:00
zephyrus
ecbbb56d6c - Fixed a potential crash in Adoption. Reported by Yomanda.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12428 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-24 17:31:08 +00:00
ultramage
0e5bd6c09a Fixed a problem in the new trade window implementation (from r11830) where no trade acknowledgement messages would get sent (bugreport:1217).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12427 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-24 13:51:19 +00:00
ultramage
084961740f Cart Termination now bypasses Parrying and Energy Coat (bugreport:476)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12425 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-22 17:20:23 +00:00
ultramage
71ce130467 Mobs with no respawn information which don't have a master will not get unloaded by the dynamic mobs system.
This prevents script-spawned mobs (bio MVPs, Emperium/Guardians, ...) and dead-branched mobs from disappearing (bugreport:1246).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12424 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-22 11:57:57 +00:00
ultramage
42b5164970 Added a missing null-pointer check to the timed player pvp/gvg respawn function (mistake in r12232)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12423 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-22 11:34:47 +00:00
zephyrus
7899dc8e4f - Added status changes for netcafe premium items. Status Resist Potion and SP Reduction Potion.
* More Barricade stuff:
- Changed the way "Dir" works. Now it's just like NPC dir definition (from 0 to 7).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12414 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-21 17:12:52 +00:00
Lupus
c1d6abe5eb Added VS9 project files. Removed redundant map_getallusers() function
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-21 11:52:29 +00:00
zephyrus
fb7daea244 - Added SC_ARMOR_RESIST, used by Undead Scroll, gives you resistance against elements and it's can be used with Resist Potions.
- SC_ARMOR_RESIST and SC_BENEDICTIO ends if you change your armor. Tested on iRO.
- If you call SC_ELEMENTALCHANGE with val3 = 1 it will use the level in val 1, and not a random value.
* Barricades:
- Fixed a bug when @reloadscript. Barricades should be destroyed too.
- Unbreakable barricades are only wall type (not shootable) According to Doddler info.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12407 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-20 20:56:55 +00:00
ultramage
3d6f2af01c Changed the dynamic mobs system to also unload mobs that have respawn time but are already spawned - 22M less mem usage (bugreport:1197).
Also added a check to not respawn mobs on maps with no players (potentially unsafe operation, needs further inspection).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12402 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-19 22:02:26 +00:00
zephyrus
2c8b8a0715 - The last bug in Adoption system.
- Fixed a bug on trade, if you received a trade without accept it do logout... the other player cannot trade anymore 'til restart.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12396 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-19 00:12:35 +00:00
ultramage
e47466df40 inverted logic (followup to r12394)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12395 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 22:31:08 +00:00
ultramage
b2734e601e Fixed invited party members not displaying correctly (bugreport:1199)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12394 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 22:29:04 +00:00
zephyrus
96a72d9d84 - Changed the way SC_ARMOR_ELEMENT is called (Resistance potions)
- Now each val represent an element (1 = Water 2 = Earth 3 = Fire 4 = Wind)
- Fixed bug 1039 (Shadow Armor Scroll's Script Fails)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12393 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 17:09:12 +00:00
zephyrus
53c26b43fb - Sorry, fixing the last adoption step. It was too late ._.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 14:46:22 +00:00
ultramage
27f2a37fc4 Fixed OnPCLoginEvent not working correctly (bugreport:1182).
Cleaned up some code typos/engrish.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12391 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 08:44:27 +00:00
zephyrus
fa64cdae0d - Added the official adoption method.
( Parents need to create a party, invite a novice/first class, both equip the wedding rings and someone just right click the future baby ).
- Fixed a bug sometimes client don't show job's bonus stats.
- Removed the problematic adoption script.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12389 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-18 04:32:20 +00:00
zephyrus
a6e03e1102 - Clean up of calc_times function.
- Moved to timer.c/h because it's used in both map and char servers.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-17 15:03:03 +00:00
zephyrus
e87cef990d - Added support for offline divorce.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12379 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-16 20:33:01 +00:00
zephyrus
74692598a9 - Fixed a compilation error. ops :3
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12378 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-16 17:51:25 +00:00
zephyrus
2934ff8468 - Added De-adopt support when deleting a baby.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12377 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-16 17:27:19 +00:00
zephyrus
ee964f6623 - Optimized a little bit char deletion process with partner info.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12375 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-03-16 07:21:05 +00:00