8502 Commits

Author SHA1 Message Date
ai4rei
c1bd43aef6 * 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/branches/renewal@14495 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 15:11:22 +00:00
ai4rei
b0089b0edc * 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/branches/renewal@14494 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 11:56:44 +00:00
ai4rei
09968c0815 * 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/branches/renewal@14493 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 11:13:49 +00:00
ai4rei
f91260ea57 * 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/branches/renewal@14492 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 09:26:00 +00:00
ai4rei
778f130de9 * 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/branches/renewal@14491 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 00:49:12 +00:00
L0ne_W0lf
85a4250060 * Added quest log support for the following quests.
- Factory Quest, Murder Quest, Cursed Spirit Quest, Juno Remedy Quest, Airship Ticket Quest, How the Airship Works, Ice Necklace Quest, Siblings Quest, Thor Volcano Base Quest, Muff's Loan, Broken Diamond, and the Z-Gang Quest


git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14490 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-23 00:42:25 +00:00
ai4rei
004835214a * Fixed Rogue skill Steal Coin working on boss monsters (bugreport:2442).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14489 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 20:28:18 +00:00
ai4rei
8136997bd0 * 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/branches/renewal@14488 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 19:43:19 +00:00
ai4rei
980ffd5887 * 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/branches/renewal@14487 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 16:52:46 +00:00
ai4rei
1a8d26e888 * 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/branches/renewal@14486 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 16:00:03 +00:00
ai4rei
f5f3949e4b * 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/branches/renewal@14485 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 15:38:43 +00:00
ai4rei
67820415f5 * Batch files (Windows) now detect whether the server crashed, aborted or shutdown cleanly (Ctrl+C or @mapexit) and print appropriate message, instead of always assuming, that the server crashed (bugreport:3476, since r1818).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14484 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 12:36:39 +00:00
ai4rei
9849471a84 * 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/branches/renewal@14483 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 10:48:57 +00:00
ai4rei
9938ca73a3 * 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/branches/renewal@14482 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-22 09:09:01 +00:00
ai4rei
e1f53f04ec * Changed party_share_level from 10 to 15 as per kRO maintenance from 2010/04/14.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14481 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-21 19:14:26 +00:00
ai4rei
27d81db9f4 * 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/branches/renewal@14480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-21 16:20:26 +00:00
ai4rei
5b425d4941 * Added 64-bit variants of the socket and buffer I/O macros.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14479 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-21 14:10:59 +00:00
ai4rei
10aab49306 * 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/branches/renewal@14478 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-21 13:44:10 +00:00
ai4rei
068e6685bb * Made atcommand declarations use ACMD_FUNC macro (bugreport:4252, related r11607).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14477 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 11:38:53 +00:00
ai4rei
baf4794012 * 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/branches/renewal@14476 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 10:10:11 +00:00
ai4rei
6d1b42b85f * 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/branches/renewal@14475 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 08:19:44 +00:00
L0ne_W0lf
42c1887afc - Fixed equip locations and view IDs for some headgears. (bugreport:4336)
- Corrected the value of hit given by Military Ration C. (bugreport:4369)
- Updated bonus for items that increase attack by class. (bugreport:4387)
  These 'fixes' should be considered a temporary fix until proper bonuses can be added to emulate aegis.
- Added bonus increase_agi autocast to Krieger_shoes01. (bugreport:4406)
- Added EXP script to Miracle and Secre Medicine items. (bugreport:4416)
- Corrected weight of Some_of_Report to 0, as per desc. (bugreport:4541)
- Corrected typos in skill name column in abra_db.txt. (bugreport:4557)
- Corrected what jobs can use the Weihna and Krieg. (bugreport:4558)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14474 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 03:49:44 +00:00
ai4rei
bb4dce5aa1 * 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/branches/renewal@14473 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 01:39:28 +00:00
ai4rei
32a31768bb * Removed ; from INTPTR_* defines (since r13449).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14472 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 01:28:50 +00:00
ai4rei
9c50c4006b * Fixed pc_marriage not checking spouse character job for baby class.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14471 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 01:09:31 +00:00
ai4rei
8acc97c446 * 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/branches/renewal@14470 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-20 00:44:46 +00:00
ai4rei
1aeb3224db * Fixed packet layout of wanttoconnection for packet_ver 16 and 22 (bugreport:3359, since r9958).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14469 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-19 23:15:49 +00:00
ai4rei
fb6ef52210 * 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/branches/renewal@14468 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-19 22:57:01 +00:00
ai4rei
eacbf99c39 * 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/branches/renewal@14467 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-19 22:06:33 +00:00
ai4rei
fb7617d575 * 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/branches/renewal@14466 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-19 21:25:30 +00:00
Paradox924X
1c0fef5343 Added a missing argument to a warning containing a format specifier.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14465 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-17 02:16:13 +00:00
Paradox924X
8f8d25a76d 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/branches/renewal@14464 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-16 02:01:19 +00:00
L0ne_W0lf
fa7003afd3 * 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/branches/renewal@14463 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-14 22:26:26 +00:00
L0ne_W0lf
0c14edaeb0 * Updating spawns as a precursor for Eden group quests.
* Updated spawns for Juno fields to Renewal.
* Updated spawns for Umbala fields to Renewal.
* Updated spawns for Comodo fields to Renewal
* Updated spawns for Mjolnir fields to Renewal.
* Updated spawns for Payon fields to Renewal.
* Updated spawns for Morroc fields to Renewal.
* Commented out repeatable EXP quests.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14462 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-14 20:07:55 +00:00
brianluau
a7ef583dcb - 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/branches/renewal@14461 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-13 18:23:35 +00:00
L0ne_W0lf
f04fb1ccfc Whoops. Actually deleted exp2.txt this time.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14460 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-11 19:25:06 +00:00
L0ne_W0lf
fc4c5902e9 Updated known EXP values, and deleted exp2.txt.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14459 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-11 19:23:54 +00:00
L0ne_W0lf
0644a4e491 * Added some items with enforced delays to the item_delay_db!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14458 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-10 21:07:04 +00:00
Paradox924X
a9c0bc7924 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/branches/renewal@14457 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-10 20:46:18 +00:00
Paradox924X
45826cbbc5 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/branches/renewal@14456 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-10 20:32:31 +00:00
Paradox924X
840f04f41f Added an item_delay database usable for item-specific use delays.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14455 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-10 18:57:14 +00:00
Paradox924X
9ab7bdfc12 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/branches/renewal@14454 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-10 03:55:52 +00:00
Paradox924X
9730bc0139 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/branches/renewal@14453 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-09 20:17:56 +00:00
Paradox924X
187aa99cbf 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/branches/renewal@14452 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-08 23:28:11 +00:00
Paradox924X
975ab5e504 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/branches/renewal@14451 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-08 22:21:03 +00:00
Gepard
a5762f27ff 'Exp gained' packets are now sent regardless of @showexp. @showexp can be enabled regardless of PACKETVER.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14450 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-07 11:08:06 +00:00
Gepard
35feae1e5c Applied clif_equiplist fix by Ai4rei to prevent client crash when equipment is broken/repaired and PACKETVER >= 20100629. Follow-up to r14368. (bugreport:4459)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14449 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-07 10:44:16 +00:00
L0ne_W0lf
3a3e2cde66 * Just a couple Bug fixes. :P
- Added a missing close in quests_13_2.txt. (bugreport:4520)
- Corrected 'IProntera' typo in quests_prontera.txt (bugreport:4522)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14448 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-05 02:02:53 +00:00
L0ne_W0lf
6e8f281f4c Adding back a / that got removed in nowarpto.txt. THIS IS FOR YOU REDMAGEJOE. GOD SPEED.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14447 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-04 23:45:33 +00:00
L0ne_W0lf
7926aea297 This one's for you RedMageJoe! God speed!
Fixing some typos in the comments in the unused database I just added :3

git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/renewal@14446 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-04 23:17:12 +00:00