3739 Commits

Author SHA1 Message Date
L0ne_W0lf
b03a01ee95 Fixed a typo in /map/clif.c (acount_id -> account_id)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12219 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-19 21:11:27 +00:00
FlavioJS
e8c226e1f3 * Forgotten update to the definition of script command 'input'.
* Enabled DEBUG_MEMMGR only in DEBUG mode. 
* Made autotrading characters be kicked instead of reporting double login.
* Made create_session initialize session_data to NULL.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12218 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-19 16:55:13 +00:00
FlavioJS
1c3f5fe7e4 * Fixed db_obj_get not handling deleted nodes correctly. (bugreport:999)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12217 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-19 16:02:16 +00:00
skotlex
419106681a - added LK's concentration +1 MDEF.
- Corrected delay-consume items being consumed when used while casting or being unable to act.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12216 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-18 18:58:14 +00:00
skotlex
dc789293be - Updated Eye of Hellion to use the new format of the input command.
- corrected login_fd/char_fd being uninitialized in the char servers.
- Changed a bit around how status_base_atk works to avoid overflows.
- Added a check to prevent using consume-delay items when you cannot use skills, since that opens an exploit if the item also has non-skill-casting components to its script.



git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12214 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-17 22:36:02 +00:00
ultramage
3934f11180 Reverting r12212. As expected, Linux is incompatible.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12213 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-17 19:11:02 +00:00
ultramage
8ae50f44b4 Made unix interface enumeration work with dynamic sockaddr lengths (BSD, for example). Complain if it doesn't compile. (bugreport:765)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12212 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-17 13:10:20 +00:00
ultramage
bcac761953 Removed some useless svn:ignore properties.
Fixed a compilation problem.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12211 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-16 20:10:25 +00:00
skotlex
0c61a73f33 - Fixed S. Novice bonus not dispelling when at the moment you die once.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12207 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-15 16:19:44 +00:00
ultramage
8c92106315 some compilation warning fixes
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12206 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-15 12:22:03 +00:00
zephyrus
b8cbeb24b8 - Some optimizations to @noks (now using a Status Change timer).
- Added support to Self|Party|Guild options.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12205 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-14 20:54:25 +00:00
ultramage
2d67424eb1 Removed/replaced all calls to map_getallusers (followup to r12195).
Trashed @whozeny (from r269).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12204 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-14 19:11:11 +00:00
zephyrus
69ae4766ce - Added some new config settings: homunculus_autoloot, idle_no_autoloot, max_guild_alliance.
- Added a code to activate a Kill Steal protection and the required mapflags.
* (I will explain this later on forums).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12203 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-14 01:18:19 +00:00
FlavioJS
e3bcc90775 * Changes to memory manager: [FlavioJS]
- fixed blocks that are fully used not being detected (and not freed) in memmgr_final (unfill_prev is NULL for unused blocks and full blocks)
- fixed memmgr_final giving the wrong address to _mfree (for small blocks)
- added the pointer address to most error messages (and log)
- made it append to the log file instead of rewriting it
- implemented a function to verify if a memory location is active
- other minor changes

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12200 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-13 18:05:56 +00:00
zephyrus
8b151df5c7 - Some fixes to mail system.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12199 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-13 17:55:32 +00:00
ultramage
1f34d119d9 Merged memory manager updates from old jA revisions (bugreport:663)
Produces less memory overhead and has better overflow detection.
Caution, experimental / not fully tested code! (seems to work though...)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12198 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-13 09:41:20 +00:00
ultramage
7d22579be3 Fixed SQL charserver not logging char deletion correctly (see bugreport:944)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12197 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-12 21:32:23 +00:00
ultramage
07e2bbfa4a Fixed a typo in #item preventing it from working (see r12195).
Cleaned up #item, now uses a common function for item giving.
GM min/max level drop restrictions now apply to #item (see bugreport:396).
Item trade restrictions now apply to #item.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12196 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-12 21:26:36 +00:00
ultramage
b24b80c5c9 Getting rid of map_getallusers(), part 1
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12195 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-11 17:46:31 +00:00
skotlex
224a459acf - Applied some cleanups to party.c/guild.c to ensure that direct pointers to sd are only done for valid sd states.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12194 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-11 14:11:41 +00:00
skotlex
7d317be8dd - 'Forget me Not' no longer blocks ASPD bonuses from working or prevents their re-casting, they are simply dispelled when the effect takes place.
- Fixed a possible crash when a player logs out before their create-party request is accepted.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12193 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-11 13:11:15 +00:00
FlavioJS
549684872d * Expanded the script command 'input': (bugreport:811)
- two new optional arguments 'min' and 'max'
- return value indicating if it's in the correct range
- config variables for the default value of the arguments: 'input_min_value' and 'input_max_value' in script_athena.conf

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12192 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-11 10:40:52 +00:00
ultramage
7aee90fe03 Added two missing opt2 values, for Angelus and Bleeding status.
Cleaned up pc_statusup and pc_statusup2.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12190 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-10 22:43:22 +00:00
ultramage
c12125ed84 Fixed Warp Portal code sometimes producing errors/crashes in the case where a priest enters his/her own warp (bugreport:270)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12189 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-10 22:40:50 +00:00
ultramage
c2a02f48bd Fixed wrong message in item group loading code (bugreport:936)
Fixed 'charisalpha' not working for the first char (bugreport:940)
Disabled signed/unsigned warnings for visual studio 2005

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12186 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-08 10:23:24 +00:00
skotlex
96684da892 - Fixed Freezing Trap doing no damage (changed type from misc to weapon)
- Changed suiton's element to water (apparently fixes not being able to use water-based skills on it)
- Fixed Landmine doing no damage (decreased trigger range to 0 to match its splash range)
- Fixed the disguise commands using the wrong variable when attempting to disguise as an npc.
- Fixed a compilation warning on CELL_CHKNODAMAGE (which is a totally bad-ripoff of basilica cells anyway)
- Corrected and optimized npc_remove_map's npc array cleanup (@reloadscripts no longer report 'too many npcs per map and related dangling pointer crashes are fixed)
- Removed suspicious, yet totally unused npc_data variable 'n'
- HP loss item scripts can no longer kill you.
- Corrected the item-drop-rate check to avoid duplicate entries in @whodrops after a @reloadmobdb
- Cleaned up and optimized map_addnpc (there are never any gaps in the npc array so npc_num always points to the last valid entry)


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12180 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-07 00:07:47 +00:00
zephyrus
53ebef57e5 - Enabled ERS System in trunk (Let's make JetVictor dreams come true!)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12176 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-04 18:34:19 +00:00
zephyrus
c4fb4f4361 - Some code cleanups.
- Added new Cell types (NoChat and NoDamage)
- Added JobChangeLevel and FreeSKPoints to #stats
- Added a Crash protection in clif_send with invalid fd values.
- Merged a missing update in TK Mission.
- Added script command 'getmapflag'
- Merged some new Status Change to Stable.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12175 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-04 18:23:57 +00:00
ultramage
127d1feaab Fixed one IRC module crash when trying to send messages when disconnected.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12174 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-04 17:24:49 +00:00
skotlex
9b8b53b7cf - Fixed a 'typo' which made my last commit actually not fix anything (Plagiarize can no longer copy skill levels beyond their max skill_db value)
- Corrected Diablo's Robe equip-level and weapon-level columns being exchanged.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12172 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-04 10:18:56 +00:00
ultramage
2ef6778696 Fixes to Devotion (see topic:153345)
- removed totally fake Devotion packet from Marionette Control code (see r3934)
- fixed one devoted chars array management code bug which caused chars to be included in the array multiple times, producing various problems (also see r3934)
- the link will now re-display when coming into view range
- the link will no longer break if the devotee walks away, but instead, if he receives damage while being out of range of Devotion

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12171 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-03 23:26:00 +00:00
FlavioJS
0594a1a350 * Added an iterator to map.h/c.
Will be used instead of map_getallusers, which has problems with dangling pointers (returned array isn't updated).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12170 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-03 19:20:42 +00:00
ultramage
5ce5cdb524 Added a missing client update when the mute status is manually cancelled by a GM
(followup to r12079)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12169 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-03 17:30:53 +00:00
ultramage
8d811654b9 Fixed npc reloading crash (bugreport:889)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12166 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-02 08:16:53 +00:00
ultramage
ee0667c3eb Added a missing script On-events index refresh operation after a npc is unloaded using @unloadnpc (bugreport:9)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12160 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-01 08:05:54 +00:00
ultramage
fb85ff7006 Fixed sql charserver crashing when mapserver is disconnected and someone does a double login (bugreport:870)
- it was a typo in r11410

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-02-01 07:22:17 +00:00
ultramage
8a926e83de Added back the GRF_PATH_FILENAME variable and commandline parameter.
Removed confusing /tool/mapcache/ configuration directory, changed code to use /conf for this purpose.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-30 16:25:47 +00:00
zephyrus
e3ee239077 - Fixed a serious zeny exploid on scripts. Please update!!
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12153 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-30 09:14:58 +00:00
skotlex
52b3140f90 - Plagiarize can no longer copy skill levels beyond their max skill_db value.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12151 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-29 19:26:18 +00:00
skotlex
220fb381a2 - Modified pc_dead so that the src is passed on to the master when it is a pet or homunculus.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12150 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-29 13:17:15 +00:00
skotlex
e727c51605 - Added some error reporting when a player is not found inside its guild/party while logging out.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12148 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-29 12:49:30 +00:00
skotlex
96dfe6b827 - Cleaned socket.c to use flag.server when detecting inter-server connections.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12147 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-29 11:04:21 +00:00
ultramage
6eec5a3eb7 Fixed a coding mistake I made in r12142.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12145 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-28 15:03:08 +00:00
FlavioJS
b605b6d722 * Small update to the dgbhelpplug plugin:
- fixed only half of wide character strings being printed
- fixed the memory validity check in Dhp__PrintDataValue being optimized out in release mode

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12143 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-27 00:34:24 +00:00
ultramage
b6520cbfd6 Added an out-of-bounds crashfix for map_delobject and map_delobjectnofree.
Added missing EOL to the 'hack on namerequest' console message.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12142 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-26 15:18:32 +00:00
ultramage
c53f4f1955 Some random cleaning
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12141 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-26 09:44:10 +00:00
skotlex
cb9dc50f84 - Fixed pc_setrestartvalue not correctly setting your SP when sending to save to the char-server while dead.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12136 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-23 23:19:47 +00:00
skotlex
78e24d1e09 - Removed hom_setting&02 (ignore skill range) as this was fixed by Gravity some time ago.
- Moved pc_delinvincibletimer from unit_removemap to unit_free as the previous method has a logic glitch that could cause an on-place event to trigger after the on-left event. 


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12130 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-22 13:13:57 +00:00
ultramage
8591686b27 Fixed/cleaned r12114 and 12117.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12119 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-21 11:02:21 +00:00
ultramage
6c10763883 Fixed battle config loading not applying the side-effects of battle_adjust_conf() side-effect if an import: operation fails.
This is what caused the odd slowdown reported in bugreport:260.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12118 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-21 10:24:33 +00:00