4932 Commits

Author SHA1 Message Date
ai4rei
97f148678c * Fixed pets derived from immobile monsters not being able to walk (bugreport:3377, since r13789).
- This also fixes pets using original monster walk speed, instead of the one defined in pet db.
- Fixed pets not being able to attack (pet_attack_support and pet_damage_support) when derived from a monster, which is not able to attack.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14512 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 12:09:29 +00:00
ai4rei
a5326bd2b6 * Fixed a crash uncovered with r14501, caused by outdated local variables when a script is about to suspend or terminate (bugreport:4577).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14511 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 02:02:30 +00:00
ai4rei
2c88023b3d * Fixed a crash when using food status bonuses with cash food status bonuses (bugreport:4582, since r14437).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14510 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 01:32:28 +00:00
ultramage
81420ce9cd Reverted r14504, the old value is correct due to how the equation works.
Fixed an ancient off-by-one mistake in the statpoint calc equation, details are in bugreport:4575.
This will affect players with levels above 99, now giving them one stat point a level later.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14508 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-26 16:08:09 +00:00
ultramage
74872445ff Changed 'killerrid' and 'killedrid' from player vars to player params (bugreport:3249).
Now stored in player session data, so they don't get saved on logout anymore.
Added sql upgrade script 'upgrade_svn14507.sql' to remove the now unused player variables.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14507 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-26 14:03:41 +00:00
ai4rei
5042f8262c * Fixed base and job exp not getting reset on (de)leveling through commands (bugreport:85).
- Fixed level up related functions not updating client-side exp information, causing the exp percent value display random values.
- Fixed party system not getting notified of level-ups through parameter changes.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14505 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-26 07:44:35 +00:00
ai4rei
f483bfedc3 * Fixed auto-generated statpoint table missing 3 status points (since r1107).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14504 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-26 07:10:38 +00:00
ai4rei
10396bbbbf * Too large client packets, which would otherwise cause the client to crash, are now dropped and reported (bugreport:4391).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14503 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-25 23:06:06 +00:00
ai4rei
3541b61e5e * Fixed a crash when an unknown map is encountered during parsing a 'script' npc and the script has mismatched curly braces (bugreport:4423, since r11502).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14502 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-25 20:59:50 +00:00
ai4rei
db5357a6e0 * Fixed script commands attachrid and detachrid not updating the attached character's information about currently running script, causing errors with dialog-based scripts or preventing characters from walking (bugreport:4571).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14501 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-25 15:44:44 +00:00
ai4rei
68168bbf6d * Fixed party booking search not interpreting level 0 as 'all levels' and using level as upper rather than lower bound (bugreport:4537, since r14412).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14500 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-25 00:49:50 +00:00
Paradox924X
8b08fa4241 Display a message showing the user where to change MAX_ITEMDELAYS when they have too many entries in the item_delays db. Follow-up to r14455.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14499 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-24 23:42:57 +00:00
ai4rei
d19aa50b9e * Fixed calls to pc_delautobonus assuming map_session_data::autobonus2 and map_session_data::autobonus3 arrays having the same size as map_session_data::autobonus (since r13915).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14497 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-24 23:31:14 +00:00
ai4rei
d503330ed8 * Fixed pets with player sprites causing the client to crash while looking for non-existing resources (topic:260895, follow up to r14488).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14496 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-24 23:15:11 +00:00
ai4rei
f4cf08b311 * Fixed script command getusers causing map server to crash when called with type 0 without attached character (bugreport:4565).
- Lack of character is now reported like other script commands do. Additionally invalid types are reported as well.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14495 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 15:11:22 +00:00
ai4rei
338b3ad2d4 * Labels longer than 23 characters will no longer cause the server to exit immediately (bugreport:4563, since r1213).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14494 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 11:56:44 +00:00
ai4rei
4ffaed9527 * Various small cleanups.
- Fixed truncation warnings in @statuspoint, @skillpoint and @str/@agi/@vit/@int/@dex/@luk (since r14436).
- Fixed data type inconsistency in @statuspoint and @skillpoint (since r5762, related r13541).
- Silenced truncation warnings in CR_ACIDDEMONSTRATION damage calculation and cardfix application (since r13700).
- Reformatted unit_blown to make it look cleaner (follow up to r14492).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14493 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 11:13:49 +00:00
ai4rei
1b9c1fc3d1 * Added script command pushpc, which is required by newer scripts.
- Moved knockback-part of skill_blown into unit_blown, to allow unconditional knockback required by pushpc without copy-pasting code.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14492 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 09:26:00 +00:00
ai4rei
3d66b0309b * Fixed map-server displaying 'PK Mode' notice only for pk_mode 1 (since r8402).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 00:49:12 +00:00
ai4rei
6688ea5e2c * Fixed Rogue skill Steal Coin working on boss monsters (bugreport:2442).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14489 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 20:28:18 +00:00
ai4rei
29f9e79242 * Fixed disguising as player clone causing the client to crash while looking for non-existing NPC sprites (bugreport:4428, since r14387, related r14383).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14488 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 19:43:19 +00:00
ai4rei
53fd4cef96 * Fixed guild and guild member exp truncation issue (bugreport:4130, since r14242).
- Fixed guild member position, hair, hair color, gender, class and level could potentially become corrupted due to shorts being read as ints (partially since r2986).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14487 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 16:52:46 +00:00
ai4rei
4a8ab94031 * Fixed saving/loading errors with compilers (such as VC6, MinGW), which do not recognize %ll format (since r14242).
- This also fixes guild leader name being displayed and saved as "(null)" in the guild member list.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14486 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 16:00:03 +00:00
ai4rei
c43e2699ee * Fixed map server getting notified of hair, hair color, gender, class and level changes from a char server (TXT only) twice (since r2986).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14485 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 15:38:43 +00:00
ai4rei
c56477a9fc * Fixed a crash when shutting down char-server (TXT only), after it failed to load storage save data (since r1275).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 10:48:57 +00:00
ai4rei
3c92cf8047 * mail_deliveryfail no longer attempts to log (since r12910) and give items (since r11855), when there is no item attached to the mail (bugreport:3239).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14482 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 09:09:01 +00:00
ai4rei
103e46fdab * Added enumeration RC2_* for mob data 'race2' (bugreport:4561).
- Fixed race2-related bonus arrays using RC_MAX, rather than race2 maximum (since r6221, related r1277).
- Fixed bSubRace2 lacking bounds check (since r1257).
- Fixed bSubRace2 being documented as bSPSubRace2 (since r1257).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-21 16:20:26 +00:00
ai4rei
f91b018810 * Added 64-bit variants of the socket and buffer I/O macros.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14479 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-21 14:10:59 +00:00
ai4rei
e82c68b8bc * Added msinttypes (rev. 26, http://msinttypes.googlecode.com/svn/trunk/) portability framework for Visual C++ compilers (related bugreport:4059).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14478 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-21 13:44:10 +00:00
ai4rei
bf02bec085 * Made atcommand declarations use ACMD_FUNC macro (bugreport:4252, related r11607).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14477 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 11:38:53 +00:00
ai4rei
4776f57e86 * Fixed login-server account engine initialization not getting checked, whether it succeeds or not (bugreport:4361, since r12700, related r13000).
- Failure to retrieve account engine and initializing it is now considered fatal and causes the server to exit immediately.
- Fixed two data type inconsistencies, while being at it.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14476 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 10:10:11 +00:00
ai4rei
35e99e93a8 * Fixed @doom and @doommap spamming packets for the visual effect on invoker unnecessarily over whole map and server respectively. The effect is now displayed on each killed character (bugreport:871, since r311).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14475 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 08:19:44 +00:00
ai4rei
f04df69c14 * Fixed a crash when SqlStmt_ShowDebug is given NULL pointer as statement handle (since r10753, related r10818).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14473 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 01:39:28 +00:00
ai4rei
ab52f3ecc5 * Removed ; from INTPTR_* defines (since r13449).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14472 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 01:28:50 +00:00
ai4rei
665388edff * Fixed pc_marriage not checking spouse character job for baby class.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14471 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 01:09:31 +00:00
ai4rei
c0d9aa1c02 * Made script command getmapxy print a warning, if an invalid type is supplied (related r69, r8459).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14470 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 00:44:46 +00:00
ai4rei
c038d41ecc * Fixed WFIFOL being used instead of WFIFOW for a short field of packet 0x2710 (bugreport:2819).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14468 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-19 22:57:01 +00:00
ai4rei
9f66787edb * Fixed plug-in version getting checked against itself and a wrong operator being used for the check (bugreport:3952, since r9631).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14467 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-19 22:06:33 +00:00
ai4rei
68fda95c60 * Various VC6-related fixes and tweaks. [Ai4rei]
- Fixed a typo in VC6 project files, that prevented login-server from compiling (bugreport:4061, since r12727).
- Fixed usage of 'long long' in Sql_P_BindSqlDataType preventing SQL VC6 projects from compiling (bugreport:1741, since r10779).
- Fixed usage of 'long long' in strtoull preventing VC6 projects from compiling (bugreport:4059, follow up to r14245).
- Made strtoull default to base 10 and actually process base 8, to match the normal behavior of this function (bugreport:4059, follow up to r14245).
- Fixed functions in db.c not being returned as pointer, causing warnings on VC6.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14466 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-19 21:25:30 +00:00
Paradox924X
f3217a0ad7 Added a missing argument to a warning containing a format specifier.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14465 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-17 02:16:13 +00:00
Paradox924X
906945e1da Follow-up to r14456. Default initialize atk_rate to 0 instead of 100 to match new effect of bonus bAtkRate.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14464 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-16 02:01:19 +00:00
L0ne_W0lf
f85ce66792 * Updated quest_read_db. Might need reviewing. ;-;
- Reports entries when read by server at start up like other DBs.
- Will now skip blank lines instead of reporting false errors.
- Will report when entries are > MAX_QUEST_DB.
* Updated quest and item DB with Eden Group information.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14463 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-14 22:26:26 +00:00
brianluau
f61f849488 - Fixed a typo in abra_db.txt (bugreport:4548)
- Fixed a weight check in Level 4 Weapon Quest. (bugreport:4533)
- Removed a duplicate if() in battle.c, follow up to r14381. (bugreport:4549)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14461 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-13 18:23:35 +00:00
Paradox924X
502194d7a6 Changed the check prior to adding to the attack rate so it ensures the value is non-zero instead of not 100.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14457 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-10 20:46:18 +00:00
Paradox924X
46802cab31 Made bAtkRate add the rate rather than setting it. (bugreport:4499)
Warning: This will break backwards compatibility for item scripts which rely on the previous effect for this (although most people assumed it added, as described in the bonus doc).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14456 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-10 20:32:31 +00:00
Paradox924X
7944dc71a8 Added an item_delay database usable for item-specific use delays.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-10 18:57:14 +00:00
Paradox924X
9c672be638 Use packet 0xe7 instead of 0x1f5 within clif_tradestart() when there is no trade_partner (or an invalid one) specified even for PACKETVER >= 6. (bugreport:4544)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-10 03:55:52 +00:00
Paradox924X
3d238234d4 Follow-up to r14368. Load last_map from SQL on char load so the information is available during char select for PACKETVER > 20100721. Patch based on Ai4rei's. (bugreport:4429)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14453 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-09 20:17:56 +00:00
Paradox924X
7cf0394d6c Notify players involved in a trade that it has been canceled when one player changes maps/logs out or otherwise becomes unable to participate in the trade.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14452 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-08 23:28:11 +00:00
Paradox924X
527041fb58 Send the actual level of the person you're trading with rather than limiting it by the max_lv/aura_lv settings.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-08 22:21:03 +00:00