2456 Commits

Author SHA1 Message Date
FlavioJS
8e58ea8df8 * Fixed fake_nd not being exported correctly and being unloaded when reloading scripts. (probably fixes bugreport:444)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11816 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-27 07:12:30 +00:00
FlavioJS
7bfaec4529 * Normalized makefiles:
- 3 sections: variables, public targets, private/support targets
- object files always in a *_OBJ variable
- header files always in a *_H variable
- object files always generated to an obj* subfolder
- all Makefiles can be executed individually, calling other makefiles if necessary
- generic object targets when possible

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11812 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-26 22:36:30 +00:00
FlavioJS
83fb3336e7 * Fixed buildin_query_sql using Sql_Query instead of Sql_QueryStr, wrongly processing all %f,%d,... (fixes bureport:218)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11809 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-26 18:14:06 +00:00
ultramage
6e3396f84c Fixed guild expulsion not working correctly.
Corrected explusion -> expulsion typo.
Added packets from 2007-11-20a sakexe; there are some changes but can't test them yet, so they're left commented out.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11808 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-26 15:14:52 +00:00
FlavioJS
78571e990c * Fixed a memory leak in mail_savemessage (src\char_sql\int_mail.c).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11807 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-26 03:25:34 +00:00
L0ne_W0lf
69b5d5a8c0 Giant Fly Wings are now blocked on noteleport maps and duels.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11804 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-25 21:44:34 +00:00
ultramage
a0f115351a Fixed a crash when Slim Pitcher is cast (due to one unconverted piece of code)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11796 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-24 19:49:20 +00:00
ultramage
cd3307a4bc Fixed a crash when a taekwon hits a wall while Sprinting (bugreport:483)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11795 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-24 17:11:02 +00:00
ultramage
a74d339eab Added support for latest official client/server packet changes.
Enable by setting PACKETVER to 9. Note that this breaks older clients.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11792 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-24 08:17:38 +00:00
skotlex
ddf923dba5 - Changed the status_change structure to use dynamic rather than static memory to hold the individual status changes, this should have a noticeable impact on the server's memory consumption.
- Had to add a few 'ugly' flags to status_change since now you can't track SC related information while said SC is not active (happens only for Storm Gust, Joint Beat and Magic Power).
- Since I am unable to fully test, watch out for any bugs~


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11786 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 23:52:58 +00:00
FlavioJS
69be534c6f * Moved the reset of references to after the empty script checks in parse_script. (fixes bugreport:222 and bugreport:449)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11782 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 19:00:39 +00:00
FlavioJS
508ffb82d9 * Renamed fakenpcname to setnpcdisplay, fixed and extended it.
- See doc/script_commands.txt for information on how to use it

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11779 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 16:06:39 +00:00
ultramage
e9e5d6276d * Modified mapserver login procedure to make clients from may 2007 and newer not crash when entering mapserver (bugreport:468)
- this changes PACKETVER to 8, causing incompatibility with old clients
- this makes the "Login" hex obsolete; please stop using it as it causes a conflict with this update and may have negative sideeffects

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11776 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 00:16:37 +00:00
FlavioJS
c7fad50342 * Fixed Sql_SetEncoding not setting the encoding of the connection properly. (fixes bugreport:30)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11774 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 18:15:05 +00:00
FlavioJS
f9f42984e2 * Added backward compatible target 'conf' to the Makefile.
(run ./configure again to update the Makefile)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11773 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 18:12:34 +00:00
ultramage
5f3c387a37 * Homunculi now reset their can-act delay on call/resurrect/mapchange (allows bypassing delays by doing rest/call instead of relog) [ultramage]
* Changed Lif's Emergency Avoid to just get a normal skill delay (blocks all skills, cancelled by mapchange / re-summon) instead of getting a persistent block on only this one skill (bugreport:13)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11766 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-21 08:44:08 +00:00
skotlex
e96015d64b - Implemented SL_SUPERNOVICE erasing the death record 1% of the casts.
- Implemented current exp being capped to the exp required to level up from the previous level when we are at max level (required for some S. Novice buffs)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11764 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-20 15:14:51 +00:00
FlavioJS
7e9f1e929c * Nullpo's disabled on release builds.
* Added timestamps to the log of memory leaks.
* Moved definition of __func__ to cbasetypes.h.
* Configure script updated:
- added option to select the memory manager
- added option to enable MAPREGSQL
- added option to enable DEBUG
* common's Makefile deleting svnversion.h on 'clean' target.

(run ./configure again to update your Makefile)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11760 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-19 03:05:16 +00:00
skotlex
cf2d63d285 - Implemented a small change that was long overdue: Displaying the char-select screen now uses a single SQL query instead of up to 9.
- Fixed a bug in the update to prevent setting cell types on unwalkable cells.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11757 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-18 21:32:24 +00:00
ultramage
9ea5b9c76c * Replaced jA's way of allocating npc shop data with a simple dynamic array that gets allocated during loading and freed on unload
- automatically fixes bugreport:404, which would otherwise require manipulating the npcname_db (the original author didn't, hence the bug)
- now a supporting variable 'count' is used for tracking the length instead of an extra dummy entry at the end of the shop list
- partially removed the MAX_SHOPITEM restriction (if this was written properly, the system could support an unlimited amount of entries)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11753 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-18 10:36:09 +00:00
ultramage
560005b13e Removed battle_config.error_log as console_silent already handles this
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11751 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-17 20:51:25 +00:00
ultramage
90b75ed816 Made OnTouch zone dimensions be stored as radius instead of diameter.
Cleaned up some overly complicated area calculations.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11750 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-17 20:03:29 +00:00
zephyrus
e5fd2c8ab4 - Added 2 new status changes for Life and Regeneration Potions [Zephyrus]
- Fixed some items boxes giving wrong tamings.
- Fixed another item giving 48 gladius[3]

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11738 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-15 04:29:05 +00:00
ultramage
7b0200e6dc Added error messages when trying to place objects on invalid map coordinates (quick patch for bugreport:419)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11737 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-15 03:42:10 +00:00
ultramage
3c4c7617e1 Fixed Divine Protection working against players (bugreport:410)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11735 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-15 01:49:11 +00:00
ultramage
b5cf6976a2 Fixed some homunculus skill offset calculation mistakes (bugreport:363)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11731 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-14 09:31:47 +00:00
ultramage
e12b04e850 Added error reporting for invalid rows in skill db files.
Fixed skill_castnodex_db.txt not being parsed correctly.
Fixed a search&replace typo in skill_db.txt.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-13 07:48:44 +00:00
ultramage
2d71189702 Added error reporting to buildin_warp when it fails.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 21:06:49 +00:00
ultramage
804edb29f7 Fixed homunculus skills having unlimited range instead of being capped to view_distance+1 (for details see bugreport:376)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11723 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 11:19:24 +00:00
zephyrus
9145b0167f - Added SC_INCMDEFRATE, used in Mdef Potions.
- Added the effects of the fireworks items.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11722 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 09:13:29 +00:00
zephyrus
0cf565292d - Important fix to Mail System allowing (by a low change) items duple.
- Added picklog to mail.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11721 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 08:55:36 +00:00
FlavioJS
f90edd96a6 * Fixed @addwarp crashing the map server (bugreport:390).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11719 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-12 04:15:18 +00:00
ultramage
1b56a795b9 * The Forget-me-not dance now behaves like Decrease AGI
- doesn't cancel Impressive Riff, Wind Walker, True Sight (bugreport:187)
- additionally, it doesn't cancel Cart Boost

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11718 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 20:46:00 +00:00
skotlex
39b8a6f75a - Added missing include npc.h to map.c
- Now when job changing to another class tree, status changes from skills that belong to your previous class are cleared.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11716 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 11:02:53 +00:00
ultramage
a5b2c3b30c Applied Rayce's improvements to the npc script parser (see bugreport:387 for details).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11715 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 10:59:41 +00:00
skotlex
a65db8120c - Cleaned up pc_calc_weapontype
- made on-touch areas work with walking npcs. Note that the implementation is performance may not be optimal, but I am not sure if it can be done in any better way.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11713 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-11 10:12:58 +00:00
ultramage
ffd150e6f0 Fixed a bug in r11384 letting you bypass requirements for some skills (see bugreport:219).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11710 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-10 21:26:12 +00:00
ultramage
5eda6c0e57 Replaced several 'int' variables with enums that they represent.
Expanded weapon_type enum with dual-wield constants (bugreport:384).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11704 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-09 22:42:56 +00:00
ultramage
376a1f68ba * Re-worked the login-char-map packet spam mechanism
- mapserver no longer sends entire user list to charserver every 10 seconds; similar change done to the char-login connection
- user count updates are only sent when the value actually changes instead of servers polling each other every few seconds
- the servers now prevent interserver connection timeout explicitly by sending ping/ack packet pairs instead of relying on the usercount polling to do so; keepalive is sent every 'stall_time'-2 seconds
- removed the @refreshonline command as refresh happens automatically every 5 seconds

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11703 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-09 21:44:29 +00:00
ultramage
0f6d747991 Fixed socket.c using time() incorrectly, causing stall timer desynchronization (bugreport:394)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-09 21:23:02 +00:00
FlavioJS
58aba77ff3 * Added a database iterator to db.c/db.h.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11701 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-09 20:59:20 +00:00
zephyrus
bec0f75b57 - Added a new setting 'guild_skill_relog_delay' to activate the guild skills delay on Guild Master relog.
- The official setting is 'No', but this is an option for game masters.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11699 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-08 17:39:40 +00:00
FlavioJS
9d2688ad87 * Changed EXIT_SUCCESS back to 0 in console.c to avoid an unnecessary include.
* Fixed gm_account_db not being deallocated in login-converter.c.
* Refactoring names and documentation in db.h/db.c:
  - changed 'struct dbt' to 'struct DBMap' and 'DB' to 'DBMap*'
  - changed 'struct db' to 'struct DBMap_impl' and 'DB_impl' to 'DBMap_impl*'
  - changed COUNT to DB_COUNTSTAT and made it's existence not depend on DB_ENABLE_STATS
  - removed some @see links and corrected small typos in the documentation

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11698 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-08 14:08:32 +00:00
ultramage
1fb3859183 Synced charserver char creation creation code
* removed most of the creation failure messages printed to console
 * fixed sql charserver letting you use control chars in char names
 * new chars will not start with the 'Knife' and 'Cotton Shirt' equipped anymore (charserver blindly placed magic values into the equip field)
Fixed a glitch where all packets immediately after the map->char login packet would get discarded and the mapserver disconnected.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11696 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-08 10:17:44 +00:00
FlavioJS
a7c2a09d23 * Updated configure script:
- small correction to the help text of --with-mysql and --with-pcre
  - added the -Wno-switch compiler option to suppress the "enumeration value '%s' not handled in switch" warnings

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11695 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-08 09:26:46 +00:00
zephyrus
3575f9ad9a - Added separated packets for get and set attachment on mail system.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-07 20:45:16 +00:00
zephyrus
009ce06822 - Some updates on the mail system packets [Zephyrus]
- Corrected the mail database structure on main.sql
- TODO: find what happens when you cannot receive an emailed item due to weight problems.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11692 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-07 17:16:53 +00:00
ultramage
f47413c0fa Fixed a crash caused by a mistake in r11657 (bad macro -> function code conversion)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11690 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 22:43:15 +00:00
ultramage
9d59dba910 Corrected the max. allowed skill name length, and optimized code that works with skill names according to latest changes.
Changed skill db loading code to work similarly to how itemdb/mobdb is loaded (generic file loader + specialized function to process rows).
 * all skill db files are now checked for inconsistencies the same way.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11659 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-05 14:45:13 +00:00
Playtester
9f7a8cb1e5 * Reverted official drop rate estimation
- although it really exists we don't have enough information about it
- if server owners really want it they can implement it themselves (it's just a one-line fix anyways)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11658 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-05 11:21:08 +00:00