3349 Commits

Author SHA1 Message Date
eathenabot
bef21f4f2f * Merged changes up to eAthena 15033.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15098 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-13 22:44:01 +00:00
eathenabot
1810f2efcc * Merged changes up to eAthena 15032.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15065 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-11 21:06:25 +00:00
brianluau
146e136ad5 Welcome to RAthena! http://rathena.org/board/topic/53704-rathena-the-fork/
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15001 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-11-29 18:51:50 +00:00
ai4rei
da76d5f271 * Fixed novending cell check using misleading error message (bugreport:2592, since r11572 and r14724, related r11580).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-11-28 20:25:33 +00:00
ai4rei
05673d2336 * Fixed removing item scripts through script command *setitemscript not working the way it is stated in script_commands.txt (related r9831).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14999 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-11-28 20:24:43 +00:00
ai4rei
92733f48bd * Fixed wrong damage numbers being displayed when the damage source was disguised (bugreport:5093, since r14979).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14996 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-11-19 09:49:31 +00:00
ai4rei
d0aafe2fdc * Added a check to WFIFOSET to detect zero-length 'sets' of packets, that could cause memory corruption (through code after WFIFOHEAD(fd,packet_len(cmd)) where the length is 0).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14995 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-11-17 23:41:13 +00:00
ai4rei
d9c8d6b25a * Fixed natural expiration of GM mute printing the unmute message twice (since r12169).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14994 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-11-16 16:39:51 +00:00
ai4rei
f204e8aa09 * Fixed npc class HIDDEN_WARP_NPC (139) being sent to the client, causing client crashes in poring war. It's a server-side "sprite" only.
- Updated Aegis NPC ID constants from current npcidentity.lub (569~603).
- Reintroduced HIDDEN_WARP_NPC script constant, which was removed by accident (since r14679).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14993 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-11-12 08:08:19 +00:00
ai4rei
b2dca094c3 * Organized items in VS2010 projects into groups like in other projects (follow up to r14562).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14988 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-11-03 09:22:59 +00:00
ai4rei
d3d918211e * Random documentation of database files.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14986 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-28 12:37:16 +00:00
ai4rei
95775b10ae * Fixed db/packet_db.txt reading not checking for max. amount of positions.
* Introduced MAX_GUILD_SKILL_REQUIRE to fix inconsistency in amount of prereq. guild skills.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14985 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-28 12:33:30 +00:00
ai4rei
9ae81c84e8 * Fixed a mistake in RID description in doc/script_commands.txt (since r2402).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-26 14:19:53 +00:00
ai4rei
831027c3fb * Revised packets related to auction system.
- Added packet documentation and corrected existing one.
- Removed an impossible condition in clif_parse_Auction_setitem (since r12301).
- Updated backet db definitions and removed a duplicate entry (entries from older packet versions carry over to newer).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14981 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-23 11:03:24 +00:00
flaviojs2005
761b02ed7d * Remove 'hack code' in party_member_added causing crashes since r14968. (bugreport:5069)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14980 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-17 19:11:10 +00:00
ai4rei
f87e0c0adf * Added support for new act/damage packet 0x2e1 (ZC_NOTIFY_ACT2) for clients 2007-11-13Sakexe and newer.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14979 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-16 15:35:29 +00:00
ai4rei
b13243b678 * Added a message indicating how many concurrent connections the server was compiled to support.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14978 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-16 09:56:30 +00:00
ai4rei
7b4a76f4bd * Added field for the change slot feature to character select list packet for 2011-09-28aRagexeRE and newer.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14977 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-16 09:06:42 +00:00
ai4rei
ddd5609af3 * Changed function-like macros into inline functions where it seemed appropriate (topic:264007).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-16 06:46:57 +00:00
ai4rei
256fd34dab * Fixed public/guild chat message packets sending strings without zero-termination causing recent clients to display trailing junk on such messages (bugreport:5068).
- Changed memcpy to safestrncpy in message packets where overlong messages are truncated (thus loose zero-termination).
- Replaced dynamic allocation in clif_guild_message with buffer from stack.
- Fixed clif_disp_message not checking whether the message fits into provided buffer.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14975 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-16 06:26:40 +00:00
ai4rei
d86eaff5e6 * Some readme clean-ups (related r14711).
- Normalized whitespace and made the html files validate properly.
- Moved faq-content content to faq.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-15 12:48:11 +00:00
flaviojs
c5832ca11e * Add correct reply when player invited to party isn't found.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14970 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-10 17:25:15 +00:00
flaviojs
7b1ca6d8b3 * Rework some party code.
- add leader argument to party_fill_member
- add party_getmemberid
- add requester char_id to packets 0x3021 and 0x3821 (party info)
- diff members when replacing party info
- remove fixup all-player-iteration when receiving a party for the first time
- send 'party info' before 'party created'
- send 'party info' before 'party member added'
- update empty party_id when checking the player of a party

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-09 13:19:06 +00:00
flaviojs
dd51e5d71a * Remove fds from the shortlist before processing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14966 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-10-07 11:09:12 +00:00
L0ne_W0lf
d25e1c287b * Applied map flag update patch provided by Daegaladh. Will mess with custom restricted items.
- Adds a reset mapflag which is checked when using the Neuralizer.
- Syncronizes the item_noequip_db bitmasks with with skill_nocast_db.
- Updates mapflags, and both skills and items which are restricted.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14961 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-20 23:46:48 +00:00
ai4rei
38210eebbd * Fixed CR_SLIMPITCHER passing item requirement index to itemdb_search when used by a monster (bugreport:5021, since r6791).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-18 15:12:05 +00:00
ai4rei
2a28207ffd * Rental items no longer expire in cart and storage. The packet does not support this and rentals cannot be put in on official either (since r14082, related r14083).
- Corrected packet 0x299 (ZC_CASH_ITEM_DELETE) missing inventory index field (since r13370).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-17 12:44:33 +00:00
ai4rei
61395a6003 * Fixed missing edits for cash shop support for clients 2007-07-10aSakexe and older (follow up to r14932).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14957 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-17 11:02:00 +00:00
flaviojs
9703374f8a * Fix C++ compilation issues.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14955 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-08 19:47:26 +00:00
flaviojs
36bac9f797 * Restrict intif_quest_save to sql only. txt char-server doesn't support the packet and disconnects the map-server.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-06 03:45:03 +00:00
flaviojs
967eaaa7a5 * Add consistency checks to the shortlist.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14953 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-05 16:18:27 +00:00
Skotlex
1a369e2eb5 - Fixed @reloadmobdb wiping out monster spawn information
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14951 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-09-02 07:31:33 +00:00
Skotlex
4fed311425 - Updated mmo_char_tosql and memitemdata_to_sql to keep a count of errors while saving a character. If there are any errors, the in-memory copy (cp) will not be updated. Should fix dupes that can happen when a intermediary save fails because of sql access being down.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14949 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-30 20:16:23 +00:00
Skotlex
5b4c84d286 - Rewrote/updated the SC_COMBO logic. Got rid of state.combo and added usage of packet 0x7e1 (PACKET_ZC_SKILLINFO_UPDATE2) to report skill inf changes.
- Cleaned up a bit the function clif_setlevel (these functions should be as lightweight as possible...)
- Fixed the server sending twice the skill tree during login.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14939 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-23 17:30:08 +00:00
ai4rei
7662f1e897 * Fixed monsters above Lv99 displaying a Lv99 aura (bugreport:3986).
- The server no longer caps the level sent to the client by default.
- Servers that require the aura to be displayed at a level different from lv99, either have to alter the client or adjust the 'client_limit_unit_lv' setting.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14938 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-21 23:24:50 +00:00
ai4rei
9b7854c898 * Added quick validation of guild emblems' bitmap format to prevent forged emblems, that cause the client to crash, from being accepted (thx to sinya for a sample).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14937 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-20 06:10:43 +00:00
ai4rei
deb770e053 * Added -fno-strict-aliasing detection to configure.in (-fstrict-aliasing is added through -O2), since the code is not aliasing safe and causes warnings with gcc.
- This also fixes a missing line in the pre-built configure script (since r14870).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14935 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-16 17:09:27 +00:00
Skotlex
a3d1ad027f - Fixed the add_drop code breakage which ocurred after adding support for SP_ADD_CLASS_DROP_ITEM. There's probably a bugreport for this, but the website is also broken currently :3
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14933 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-11 15:50:44 +00:00
ai4rei
d162c70ef5 * Added support for cash shop packets without kafra points for clients 2007-07-10aSakexe and older (bugreport:4701, related r10888 and r11548).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14932 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-11 02:56:17 +00:00
Skotlex
ac41a46e44 - added sending a dummy 0x08b9 packet in the char-server, required to support clients from this year.
- added a fix to status_heal to take into account that -int_max == int_max in some architectures, which leads to an infinite loop (bugreport:3410)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14930 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-10 16:53:47 +00:00
Skotlex
b7ad7aa055 - Commiting a bunch of cleanups piled up from the past few weeks/months/years.
- Updated unitwarp so that an id of "0" causes the script's rid to be warped.
- Updated the Brasilis ontouchNPC warp command to use unitwarp instead.
- Signum Crucis's duration is now specified in the skill_cast_db file
- Updated @warp/@jump commands so that when an invalid tile is specified, a nearby cell is chosen (rather than using a map-wide random value)
- The if(req.weapon) code was broken, since req.weapon is never "0" for a skill. Updated the code so that the requirement of '99' (any weapon) is stored as 0, in order to make the checks effective.
- Cleaned up the code for script command warpparty
- Fixed the define itemdb_canrefine()
- Cleaned up some the status_damage() function
- Fixed map_random_dir(), which at times would pick cells that didn't preserve the required distance.
- Some aesthetic code cleanups.
- Fixed some possible crashes for skills where the code assumes the caster is a player.
- Fixed a bunch of idiotic code-snippets that should have embarrassed whoever was responsible for them.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14929 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-10 15:52:59 +00:00
ai4rei
367ab9727d * Added missing fields to guild belong info packet 0x16c (ZC_UPDATE_GDID).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14925 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-08-06 15:43:17 +00:00
ai4rei
bb9d066877 * Fixed quest saving checking only the first 3 objectives for changes regardless of MAX_QUEST_OBJECTIVES (follow up to r14800, since r13973).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14924 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-31 08:34:51 +00:00
flaviojs
a39699098f * CMake: Added options BUILD_TXT_SERVERS, BUILD_SQL_SERVERS, BUILD_MAPCACHE.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14921 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-22 14:54:37 +00:00
flaviojs
bdfa11d86e * CMake: Only install template files if they don't already exist.
* CMake: Added plugin targets.
* CMake: Added options BUILD_* to build the converters and individual plugins. (default=OFF)
* CMake: Added option WITH_CPACK for package creation. (default=ON)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14918 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-21 06:47:12 +00:00
flaviojs
b8704518db * Made GCOLLECT use it's debug functions.
* Turned off garbage collection for GCOLLECT since there's nothing to do with explicit frees.
* Added malloc_verify_ptr/malloc_usage code for all memory libraries.
* Added malloc_memory_check for debug purposes, tests memory for errors and memory leaks.
* Added explicit memory check on malloc_final.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-20 22:23:13 +00:00
flaviojs
a7f392b812 * CMake: added option ENABLE_EXTRA_DEBUG_CODE.
* CMake: added option ENABLE_PROFILER.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-19 06:35:09 +00:00
flaviojs
e52305234c * CMake: added option ENABLE_MEMMGR. (builtin memory manager)
* CMake: added option ENABLE_MEMORY. (memory library)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14914 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-19 04:18:39 +00:00
flaviojs
4369fa70e9 * Made NO_MEMMGR only be set as a default value, allowing for simultaneous use with the memory libraries.
* Moved memory library selection to malloc.c to avoid poisoning the namespace of the rest of the code.
* Removed BCHECK code since it's unneeded. (bcheck is an external batch tool that runs on top of the dbx debugger)
* Fixed GCOLLECT usage. (missing init and final memory leak check)
* Fixed DMALLOC usage. (missing options on CYGWIN and verify memory)
* Renamed malloc_verify to malloc_verify_ptr to avoid conflict with DMALLOC.
* Changed itemtype from inline to static inline to avoid error with the SunOS compiler.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14913 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-19 04:12:30 +00:00
flaviojs
cf819cc321 * CMake: added tests for big endian, typecast to union and monotonic clock.
* CMake: added 'have function' tests for setrlimit, strnlen, getpid and gettid.
* CMake: added option ENABLE_RDTSC.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14908 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-15 06:27:35 +00:00