9745 Commits

Author SHA1 Message Date
ai4rei
b870941ee0 * Insignificant code tweaks: removal of excess function declarations and self assignments.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14520 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-29 11:28:13 +00:00
ai4rei
c82e8e36f1 * Added an option to re-roll the /dice emotion server-side, to prevent cheats during events (bugreport:4194).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14519 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 23:08:42 +00:00
ai4rei
93e376eac5 * Added emotion_type enumeration for clif_emotion constants.
- Made clif_parse_Emotion use clif_emotion, rather than having it's code inlined.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14518 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 22:43:10 +00:00
ai4rei
5d1bbf6c2a * Added clr_type enumeration for vanish effect constants.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 21:41:38 +00:00
ai4rei
8b5c0c742b * Resolved multiple issues with the party booking system (bugreport:4573, since r14412).
- Fixed recruitments were limited to party leaders.
- Fixed recruitment index was party id instead of an auto-increment value, causing sorting by age not working.
- Fixed search result packet being sent on recruitment creation (probably to work-around next problem).
- Fixed packet 0x0805 not getting sent, because of commented entries in packet_db.txt (packet ver. restriction of clif_send).
- Fixed recruitment creation notice being sent to the recruiter only.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14516 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 21:06:17 +00:00
ai4rei
7a092c2aca * Removed 'negative clrtype is used for skipping unauthed objects from saving' introduced in r9975, as it is no longer required/used (follow up to r12223).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14515 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 17:12:22 +00:00
ai4rei
4d73f8ab86 * Made the party booking search pass results as array of pointers, rather than array of indexes, which require further lookup.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14514 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 13:44:23 +00:00
ai4rei
c13027baf7 * Replaced literal constants related to the party booking system with defines.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14513 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28 12:41:26 +00:00
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
ai4rei
81a1e993cc * Fixed description of bCriticalAddRace having 'race' and 'crit' parameters interchanged (bugreport:4383, since r1116 and r1382, related r12804).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14509 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-26 16:16:30 +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
6354bf0a0c * Some updates and fixes to script command documentation. [Ai4rei]
- Fixed small inaccuracy in description for homevolution (bugreport:125).
- Added ~AnnieRuru~'s fixes to item scripts, variables, and commands addtimer and addnpctimer (bugreport:373).
- Fixed documentation for function command in regard of passed arguments and return value. (bugreport:373).
- Simplified description for getusers, by hiding internal mechanics of the command, which are irrelevant to a scripter (bugreport:2545).
- Added description for setfont and mercenary-related commands (bugreport:3034).
- Added documentation for ?: operator and "global" labels provided by Gepard (bugreport:3650).
- Added documentation for operators -, ~ and ! (bugreport:3650).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14506 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-26 11:37:45 +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
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
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
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
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
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
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
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
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
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
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
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
L0ne_W0lf
6f62ea2499 * 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/trunk@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
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
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
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
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
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
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
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
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
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
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
611892db22 * 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/trunk@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
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