6247 Commits

Author SHA1 Message Date
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
492650729a Synced the charservers' init procedure.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11697 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-08 10:50:08 +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
skotlex
ea9b71e78b - Fixed not all objects spawning within your range of sight when you warp/relog if CIRCULAR_AREA is defined.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11694 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-08 08:43:28 +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
ed0f069c10 Applied knc's fix to let authorized GMs use @go on 'nogo'-flagged maps.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11691 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-07 08:34:10 +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
535df984a3 Patching a gcc compilation problem...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11689 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 19:27:55 +00:00
L0ne_W0lf
9bceb2855e Fixed Aesprika's item ID.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11686 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 17:40:26 +00:00
L0ne_W0lf
c5b41e20b8 Another Luina guild manager fix (In an I never updated that worked fine before.)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11685 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 17:36:41 +00:00
L0ne_W0lf
c187942eee Corrected aldeg_cas02 treasure room coordinates. Fixed bugreport:359
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11678 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 05:13:03 +00:00
L0ne_W0lf
071c8b7f13 Fixed errors in the Halloween 2006 event script.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11677 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 04:59:35 +00:00
L0ne_W0lf
036c21af79 Added the Halloween 2006 event script.
Updated drops for Event Lude.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11676 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 04:47:24 +00:00
L0ne_W0lf
ecd6efc675 Added the Christmas 2005 event script.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11675 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-06 02:10:35 +00:00
L0ne_W0lf
45d6a3922e Updated some of the 12.1 armor, added Brynhildr and ASepirka.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11673 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-05 23:32:47 +00:00
Playtester
b4a2a2c9fc Updated sql files
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11669 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-05 20:18:04 +00:00
Playtester
793b56b374 Fixed Imp using a too high level of Firebolt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-05 20:15:01 +00:00
Playtester
569e4029ba Updated DEF and MDEF of Moscovia mobs
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11667 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-05 19:38:28 +00:00
L0ne_W0lf
d1074145f0 Fixed a bug in Orange Potion creating. Copy&Pasting = bad.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-05 15:53:09 +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
ultramage
f7d4427c1a Changed the skill_db.txt skill names in comments into actual columns, now the server reads these instead of a hardcoded array (see topic:170438).
Corrected skill db loading code which was using a totally wrong column count in sevreal cases (or didn't do any checks at all).
Cleaned up skill db lookup code
 * added some well-behaved functions to replace macros (skill_get_index)
 * used skill_get_index() to replace often occuring blocks of code that did the skill_id -> skilldb_index calculation in-line

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11657 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-05 08:59:19 +00:00
Playtester
ac61217898 Updated Thor Volcano spawns
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11655 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-04 21:30:31 +00:00
L0ne_W0lf
8c1aaf6aaf Fixed a bug in sage job quest.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11653 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-04 17:32:35 +00:00
Playtester
d8a73e6f5f * Adjusted drop bug according to special information...
- this will be changed further in the future

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11652 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-04 12:06:37 +00:00
Playtester
2aae5965dc * Implemented official drop rate estimation
- estimation is rounded on 2 positions after decimal point
- this will effectively raise drop rates below 50% by 0.01%

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11651 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-04 10:47:33 +00:00
ultramage
17eb2f7764 Added script function 'strnpcinfo', for increased npc awareness (originally from jAthena).
Updated script reference doc.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11650 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-03 22:07:47 +00:00
L0ne_W0lf
e63e86fb83 Corrected an typo in the guild flag function.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11649 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-03 21:52:17 +00:00
ultramage
59b9654397 Tried to make sense out of timer.c ... and failed
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11647 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-03 12:35:34 +00:00
L0ne_W0lf
b95f742af8 Fixed some NPC headers in the custom scripts.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11646 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 22:38:33 +00:00
L0ne_W0lf
98f7de7a57 * Some NPC and CONF file clean up. More duplicate removal.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11645 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 22:02:39 +00:00
ultramage
d3d23aa363 Corrected Whirlwind/Violent Gale to give a numeric flee bonus instead of percentual (bugreport:329)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11644 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 20:29:22 +00:00
L0ne_W0lf
ebabbe3b63 Bug fixes in rogue skill quest resolved bugreport:351
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11643 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 18:30:25 +00:00
ultramage
98a809813b AGAIN corrected the sql charserver query that broke TXT->SQL conversion (fixed in r10835, reverted in 11245...)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 18:01:58 +00:00
L0ne_W0lf
195265961d * Minor fixes/updates to various items.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11641 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 17:09:12 +00:00
ultramage
989a557598 Removed some long-unneccessary debug messages (from r1105).
Removed function skill_count_target() because it's a duplicate (see topic:169337).
Renamed skill_get_pl to skill_get_ele (because it retrieves element ids).
The block_list structure now uses the BL_ enums instead of 'unsigned char'.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11640 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 15:54:27 +00:00
Playtester
b2aeae0dcc * Added trap mode to Firepillar
- tell me if it breaks something

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 12:30:19 +00:00
ultramage
9c9859a1c5 Fixed one wrong return value in buildin_getcharid (bugreport:33)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11638 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 12:07:37 +00:00
ultramage
45cf77f464 Moved the BUILDIN_DEF() block to the end of script.c.
Removed the big list of BUILDIN_FUNC() declarations in script.c, as they are not needed anymore and no code utilizes them => file size-= 11 kB.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11637 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 11:42:36 +00:00
L0ne_W0lf
831ea50ba8 * Fixed an incorrect answer in the blacksmith quiz. (Trojal)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11635 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 02:15:42 +00:00
skotlex
856a3dc17c - Modified trap related code so it behaves as explained by Playtester: Traps trigger on everyone in their 'effect range' (skill_db's splash) for every target that lies within its trigger range at trigger time (range and interval in the skill_unit_db).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11634 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 01:19:38 +00:00
L0ne_W0lf
675f48c26f * Rather large update to the WoE scripts.
- Eliminated unofficial map-broadcasts (opening treasures/guardian death.)
- Fixed several errors in guardian spawning (script-wise.)
- Treasure spawning itself is done weird... What exactly is the last paramater for anyway? Near as I can see it's ALWAYS 1. Why is it used? what does it do? Why is it undocumented? Mysteries and more!
- Updated dialog and restructured several NPCs.
* Created a unique function for novice WoE as the new manager does not support it.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-02 01:15:07 +00:00
skotlex
071bb12ffc - Corrected a few equip_job fields for times that are equippable by all classes and all classes except novice (they really should be 0xFFFFFFFF and 0xFFFFFFFE)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11632 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-01 23:22:52 +00:00
ultramage
65ad6362c5 Fixed silly copy-paste typo in r11607 preventing #-commands from working...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11631 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-01 21:41:32 +00:00
ultramage
78dd6eda46 Removed code that queues OnAgitEliminate after the Emperium is broken, this is now done properly by the gvg script instead (partially deals with bugreport:342).
If you have any extra castles, update your scripts accordingly.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11630 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-01 16:34:21 +00:00
ultramage
b45c651770 Reverted the part of r11625 where MAP_NAME_LENGTH_EXT was changed (to allow .gat in commands)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11629 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-01 09:38:52 +00:00
L0ne_W0lf
c9fba28365 Fixed reward option in Arena giving potato.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11628 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-31 19:22:55 +00:00
ultramage
26166c5dc6 Commented out msg_athena.conf strings disabled in r11625.
Reverted changes in r11625 that used enum sc_type where it shouldn't have been used.
Removed leftover npc/other/arena.txt.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-31 16:37:16 +00:00