4932 Commits

Author SHA1 Message Date
ultramage
170e322ccc Moved DBMap's string maxlen parameter translation (0 -> UINT16_MAX) to its initialization phase, so that it runs once instead of on every hash and compare step. This will slightly speed up most strdb operations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14854 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16 17:36:53 +00:00
ultramage
7861584d59 Fixed DBMap's db_dup_key to allocate only as much as necessary (bugreport:4969).
This reduces default eA's memory usage by about 400kB.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14853 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16 17:01:09 +00:00
flaviojs
ccb0bdde68 Fixed char-converter not being able to compile due to both char.h being included. (caused by last commit)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14852 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16 14:02:37 +00:00
flaviojs
b02133b422 * Merges from charmerge:
- Added DBMap::exists. (r14090)
- Added sv_parse_next, a stepped version of sv_parse (delim-separated parser). (r14100 r14104)
- Added missing fd check to do_close. (r14145)
- Normalized, refactored and restructured some code (in preparation for shutdown/reconnect code). (r14145 r14150)
- Changed the char select request code to allow the char-server to reject it. (player in map-server trying to go to char select) (r14150)
- Added shutdown support to the servers. (incomplete) (r14152)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14851 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16 10:22:35 +00:00
ai4rei
dd1cc7c836 * Fixed pet's equip would visually disappear when it's walk speed was changed while it was standing (related r14838).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14847 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-13 15:31:47 +00:00
ai4rei
36fd8bcf19 * Added support for new skill usage notification packet 0x7fb (ZC_USESKILL_ACK2).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14845 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-11 18:23:06 +00:00
ai4rei
bb48f685e7 * Fixed party invite packet 0xfe (ZC_REQ_JOIN_GROUP) using account id of the inviter rather than party id.
- Added support for new party invite packet 0x2c6 (ZC_PARTY_JOIN_REQ), introduction date guessed.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-11 16:08:44 +00:00
ai4rei
0eb61f5a95 * Fixed a crash in clif_parse_FriendsListAdd, when a player is added that is not online (bugreport:4947, since r14835).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14843 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-03 03:18:30 +00:00
Inkfish
213ff7ff38 Fixed a typo in buyingstore_create.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14842 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-31 11:43:19 +00:00
ai4rei
9e4d7a1beb * Fixed script command 'warpguild' looking for an attached player even when it is not needed (bugreport:4941, since r2674, related r14840).
- Documented special map names recognized by the command.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14841 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-30 19:24:02 +00:00
ai4rei
ce70d39dbc * Fixed script command 'warpparty' looking for an attached player even when it is not needed (bugreport:4359, since r14311, related r2674 and r5592).
- This also resolves an issue, where the command fails when the attached player is on a map that has noreturn or nowarpto mapflags set.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14840 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-30 19:00:43 +00:00
ultramage
dd22261936 Renamed clif_parse_ReqFeel to clif_feel_req (since r4352).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14839 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 18:30:23 +00:00
ai4rei
982ce2323c * Fixed pets' speed would not get updated to normal, after they finished running to their owner (bugreport:1304).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14838 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 16:07:22 +00:00
ai4rei
4356e5fdbc * Fixed NULL pointer in status_change_timer (SC_BERSERK), when the HP subtraction causes the HP drop below 100, but does not exceed remaining HP (bugreport:1150, related r8705, r11786 and r12061).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14837 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 13:43:51 +00:00
ai4rei
aa0bf03f74 * Updated script commands 'npcshopitem', 'npcshopadditem' and 'npcshopdelitem' to support cashshops as well (bugreport:4928).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14836 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 12:41:16 +00:00
ai4rei
8325f3518f * Fixed players could add themselves to their friendslist through their clones or WPE (bugreport:4909).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14835 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 12:31:12 +00:00
ai4rei
0bbca2a6aa * Fixed bonus 'bHPDrainValue' on left hand would work as right hand bonus, when specified with 'bonus' rather than 'bonus2' (bugreport:4939, since r6221).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14834 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29 12:09:02 +00:00
ai4rei
bfbac60c74 * Changed enumerating defines into enumerations (related topic:264007).
- Minor fixups on few macros.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14831 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-23 07:12:02 +00:00
brianluau
d3d4504d7f - Fixed a typo in eA Job System documentation.
- Fixed some bugs in Cursed Spirit quest. (bugreport:4914, bugreport:4917)
- Changed <dir> in movenpc to wrap around if the number is < 0 or > 7.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14830 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-22 18:05:23 +00:00
ultramage
1370e74073 Quick fix to Venom Splasher's Poison React bonus, 30% -> 20%, based on aegis (bugreport:230).
Initially eA used 20%, then it got removed in r10907 due to incorrect info, and was added back in r11494 as 30% (no idea where I got that number from >.>).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14829 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-18 20:34:13 +00:00
ai4rei
e769080fca * Fixed Super Novices could not be adopted (bugreport:4907, since r12389).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-17 15:46:30 +00:00
ai4rei
c5c6d83877 * Improved error reporting during monster database and spawn data reading.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14827 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-17 05:59:49 +00:00
Gepard
336680302f * Extracted calculations of the number of status points PC gets when leveling up to a function.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14825 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 17:04:46 +00:00
Gepard
5d8e2e76bb * Removed status point calculations (duplicate) from pc_resetstate function. It is now handled by pc_need_status_point.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14824 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 15:09:52 +00:00
ai4rei
5179a206ba * Merged pcdb_checkid update from renewal [14810/branches/renewal].
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15 05:14:29 +00:00
ai4rei
600e9e8320 * Moved bitfield 'boss' inside 'spawn_data' and 'mob_data' into the respective state struct (from r13813, follow up to r14795).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14818 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 12:07:33 +00:00
ai4rei
aaab80fb80 * Some NPC event related cleaning.
- Made event label deprecation message a warning rather than an error, as the scripts still work regardless of whether '::On' is used or not (since r6592).
- Introduced constant EVENT_NAME_LENGTH (51) for all event name struct fields to eliminate size inconsistency across all objects (was 50 and 51).
- Fixed event names, that are considered special attributes, were not wiped when the value was 0 (since r5707).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14817 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 11:04:30 +00:00
ai4rei
f34de92ef0 * Removed impossible condition in mob_parse_dataset as spawn_data::eventname was/is the same size as mob_data::npc_event (since r5707).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14816 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 10:45:27 +00:00
ai4rei
333c944cae * Fixed map-server printing deprecation message, when monster event label was used as transport for special attributes (small/large monsters etc.) in script command 'monster' and related commands (bugreport:1274, since r6592, related r5707).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14814 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 10:05:49 +00:00
ai4rei
9d505aed9b * Random accumulated bits and pieces.
- Added checks/warnings to pc_paycash and pc_getcash (follow up to r12264).
- Added missing packet_db.txt and packet length table entries for packet 0x0859 (follow up to r14799).
- Added set of map_id2xx wrappers for map_id2bl for most common map objects, which return NULL when the bl-type is not the expected one (also updated map_id2nd to behave this way).
- Fixed missing ',' in mob_skill_db.txt example (follow up to r14270).
- Updated mapcache with recent maps (up to que_lhz).
- Functions 'msg_txt' and 'job_name' now return a const pointer.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 03:15:51 +00:00
ai4rei
88785ac802 * Added settings 'cashshop_show_points' and 'mail_show_status', both disabled by default, as the messages they control are custom (follow up to r11548 and r12264).
- Moved custom cash point update messages to 'msg_athena.conf' (IDs 504~506).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14812 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14 01:25:09 +00:00
ai4rei
1eb3c83394 * Script command 'query_logsql' now throws a warning when SQL logs are disabled (related r11892).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14811 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-08 16:11:02 +00:00
ai4rei
0c22fcf28e * Updated/revised description of instance-related script commands (bugreport:4880).
- Fixed 'instance_create' would return -4 (party already instancing) when the requested party was not found.
- 'instance_create' return value -2 now means 'party not found' rather than 'missing parameter'.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14809 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-08 05:34:35 +00:00
ai4rei
6f5cd0921e * Removed functions 'decode_zip' (ancient) and 'encode_zip' (from r824) from grfio. These were outdated copies of zlib's 'uncompress' and 'compress' respectively (related r1530 and r5152).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14808 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-01 07:26:09 +00:00
ai4rei
e7e8d8b953 * Removed auto-add feature from mapindex code, as map indexes are used for save data, thus need to be constant across server starts (since r4726).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14807 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-01 05:55:06 +00:00
ai4rei
a5fb3f66cb * Fixed @makehomun not checking for existing homunculus properly and thus allowing to create a homunculus when one is already present but inactive (bugreport:4879, since r10272).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14806 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28 16:40:47 +00:00
ai4rei
e6a7748564 * Code cleaning and reformatting in functions responsible for sending guild expel information packets (follow up to r14718 and r14804).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14805 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28 16:17:09 +00:00
ai4rei
6e34da4c83 * Updated packet 0x163 (ZC_BAN_LIST) to reflect change in packet layout introduced with 2010-08-03aRagexeRE (bugreport:4881, follow up to r14718).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14804 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28 15:46:26 +00:00
ai4rei
5ae9f931de * Fixed formatted broadcast messages not working with 2010-11-24aRagexeRE and later (bugreport:4872, since r14120).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14803 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28 14:19:56 +00:00
ai4rei
40ec74d163 * Extended debugging code for bugreport:3504 (related r14599).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14801 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-21 15:58:13 +00:00
Gepard
e9be30aea1 * Fixed quest_check checking exactly 3 quest objectives instead of MAX_QUEST_OBJECTIVES (since r13959).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14800 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-20 03:06:40 +00:00
ai4rei
97eded0c3e * Updated packet for the view players' equip feature for 2010-11-24aRagexeRE+ and made it support robes (follow up to r14797).
- Fixed spawn/walking packets using wrong variable for shifting buffer reference (since r14797).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14799 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-18 02:10:38 +00:00
ai4rei
0e5b3ff65e * Fixed char-server missing some WFIFOHEAD (partially due to r10909 being reverted by r11245, follow up to r9307 and r14618).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14798 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-17 07:29:20 +00:00
ai4rei
847809a9e7 * Added support for visible garments/robes.
- For SQL apply upgrade_svn14797.sql to upgrade table `char`; for TXT no action is necessary, as it upgrades itself.
- This also fixes NPCs not being visible with clients 2011-01-11aRagexeRE+ (bugreport:4865).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14797 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-16 20:15:20 +00:00
ai4rei
dc6ae732e4 * Some cleanups related to player and monster states.
- Moved user_font and bg_id out of states as they are data, not states.
- Reordered members of state structs so that bitfields are packed together (less memory gets wasted).
- Other insignificant code tweaks.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14795 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-16 12:18:24 +00:00
ai4rei
84fcf0da35 * Added more packets for clients 2010-11-23aRagexeRE+ provided by Shinryo.
- Fixed missed updates for packet version bump in previous revision.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14792 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-10 19:13:58 +00:00
ai4rei
0641ed4d05 * Added support for clients 2010-11-23aRagexeRE+ and 2011-01-11aRagexeRE+.
- Servers that used packet db version 'default' until now need to be updated to use version '25'.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14791 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-10 17:52:47 +00:00
ai4rei
b3ec545cee * Fixed switching between musical weapons would cancel ongoing dance skills (bugreport:4756, since r3538).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14790 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-10 14:31:27 +00:00
ai4rei
40b140b335 * Fixed @changegm not updating guild window interface after changing the guild leader (bugreport:408, since r2622, related r3185).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14788 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-10 07:13:38 +00:00
ai4rei
a94aea7582 * Moved duel code into a separate file.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14785 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-09 12:07:58 +00:00