summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-12-29* Fixed 'console' plugin not working on Windows, due to NULL passed to ↵ai4rei19-3/+1833
CreateThread instead of required pointer to thread id variable. - Fixed 'console' plugin causing delete_timer error when it fails to load, due to uninitialized variable. * Renamed plugin.def to sample.def and added 'sample' plugin exports into it, as it's purpose is nothing than a sample right now. - Also added .def files for 'gui' and 'pid' plugins as MSVC does not export everything automatically and missing event export cause the plugins silently failing. - Added VS6, VS8 and VS9 projects for compiling plug-ins, which can be used on Windows. * The plug-in system will now report, if it cannot import an event function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14638 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-29* Fixed char-server making assumptions about RFIFO data length in character ↵ai4rei5-8/+7
deletion packet (since r10909). * Fixed login-server discarding RFIFO data, when the length is 1 byte; minimum packet size is 2 bytes (since r5027). - Fixed login-server not skipping packet 0x2728's data on failure (since r12043). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14637 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-28* Removed unmaintained and broken 'adduser' tool (topic:262284).ai4rei4-113/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14636 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-27* Fixed skill_can_produce_mix not checking, whether or not the produced ↵ai4rei2-0/+6
goods can actually be stored (bugreport:4674). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14633 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26- Added missing script_pushint() in 'checkweight' that were forgotten in r14629.brianluau1-0/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14631 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26* Reverted r14565, as the database version is already properly commented in ↵ai4rei2-1/+1
source and is overwritten upon first sync of account.txt anyway. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14630 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26* Cleaned up script command checkweight.ai4rei3-33/+70
- Replaced some code parts with calls to pc_checkadditem and pc_inventoryblank (follow up to r13735). - Fixed item id not getting checked for validity properly. * Moved MAX_AMOUNT check in pc_checkadditem to the top of the function, to prevent unnecessary inventory scan before it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14629 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26* Fixed opening other player's vending terminating currently running NPC ↵ai4rei3-4/+7
conversation. Vending is now unavailable when talking to an NPC (bugreport:2208). * Fixed vending not accepting 0 Zeny as sell price. The client asks for confirmation when you attempt to sell items at 0 Zeny (bugreport:2595, since r918 and r11344). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14628 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26* Fixed items, that get dropped at 100% chance, being reported in @iteminfo ↵ai4rei7-11/+12
as 'available in the shops only' (since/replaces r3482). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26* Updated commands @delitem/#delitem.ai4rei2-39/+54
- No longer deletes stackable items one by one (bugreport:1914). - Fixed pets not getting deleted when a pet egg was deleted. - Fixed outdated usage message (since r13403). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14626 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26* Fixed two-hand weapons not getting recognized as such upon equipping, ↵ai4rei2-4/+2
causing respective one-hand weapon's base ASPD values being used instead (bugreport:4659, related r12599). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14624 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-25* Updated script commands delitem and delitem2.ai4rei2-122/+194
- Items are now deleted only if there is enough of them (as per r14395, related r13368). - Not equipped items are now actually prioritized over equipped ones (related r200). - Fixed item id not getting checked for validity. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14623 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-25* Fixed a compile error in txt-converter-char caused by 'save_log' being ↵ai4rei2-3/+2
declared by both SQL and TXT (bugreport:4671, since r14619). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14622 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-25* Made SQL char-server options 'chars_per_account' and 'char_del_level' work ↵ai4rei3-1/+29
on TXT as well (follow up to r1063 and r8420). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14621 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-25* Added support for new /remove and /recall packets for 2010-08-03aRagexeRE ↵ai4rei5-4/+124
and newer. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14620 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-25* Synchronized TXT/SQL char-server code a bit.ai4rei5-231/+273
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14619 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-24* Fixes to char-server.ai4rei3-112/+106
- Removed unnecessary #includes from TXT and synchronized them with SQL. - Fixed TXT having start Zeny of 500 instead of 0 by default (follow up to r4409 and r8420). - Fixed TXT using 1024 instead of NAME_LENGTH for 'unknown_char_name' (follow up to r2191). - Fixed SQL potentionally attempting to disconnect a player for account_id == 0 in changesex packet. - Fixed SQL looking for option 'db_path' in 'inter_athena.conf' instead of 'char_athena.conf'. - Fixed char select not sending a reply packet, when selected character was not found. - Made use of safestrncpy instead of strcpy, strncpy and memset for copying strings where appropriate. - Removed unused function 'chardb_final' in TXT (since r4878). - Removed unnecessary WFIFOHEAD in char deletion in SQL (since r11245, related r9307 and r10909). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14618 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-23* Fixed server processing the sell list (deleting items and giving zeny) for ↵ai4rei2-62/+107
script-controlled shops (OnSellItem), causing the controller script to fail (bugreport:4656, since r6557). - This also makes the server first check the sell list and only continue, if all items can be processed, thus no longer causing incomplete deals and the need for client disconnection in such case (since r6557). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14617 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-22* NPC shop buy list received from the client is now validated for scripted ↵ai4rei2-2/+9
shops (OnBuyItem), before the control is transfered to the script, as well (bugreport:3680, since r5841, related r8525). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14616 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-22* Resolved random compiler warnings.ai4rei8-14/+16
- Silenced pointer size mismatch gcc warning for variables passed to script_setarray_pc (bugreport:4661, since r14613). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14615 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-22* Fixed sql mapreg loading code specifying output buffer size for ↵ai4rei2-2/+4
SqlStmt_BindColumn without zero-terminator, leading to truncations of variable names and/or their values when using the maximum length (bugreport:1939, since r11245). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14614 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-21* Added script_setarray_pc for setting temporary character array variables ↵ai4rei4-9/+56
outside of script.c without requiring them to use script-interal code (add_str and reference_uid). - Applied script_setarray_pc to assignment of dynamic shop arrays (related r5841). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14613 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-21* Replaced in-place generation of uid of script array elements with ↵ai4rei2-21/+22
reference_uid macro (follow up to r10813). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14612 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-21* Fixed dynamic shop arrays @bought_nameid, @bought_quantity, @sold_nameid ↵ai4rei4-0/+47
and @sold_quantity not getting reset to zero before use, thus providing attached script with wrong/old data, if it did not clear them by itself in previous call (bugreport:1574, since r5841). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14611 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-21* Removed 'strsignal' forward-declaration from 'sig' plugin to prevent ↵ai4rei2-11/+5
random gcc distributions from failing to compile due to mismatched declaration already present in <string.h> (bugreport:4644, topic:262284, follow up to r14591). - Removed WIN32 conditions in non-WIN32 code in 'sig' plugin (follow up to r4380). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14610 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-19* Fixes to the dynamic shop sample script (first part of dynamic shop fixes).ai4rei2-4/+10
- Fixed wrong check in ::OnSellItem, causing not-enough-items condition not getting detected (since r11829). - Fixed an exploit in ::OnSellItem, causing Zeny to be given to the player, even if the items fail to delete (since r5842). - Fixed missing 'close' in ::OnSellItem (since r5842). - Replaced 'end' with 'close' in ::OnBuyItem (since r5842, followup to r11829). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14609 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-19* Replaced maximum script array size literals with a define (constant).ai4rei2-11/+17
- Fixed an off-by-one mistake in copyarray, allowing to copy 1 element more into the target array, than allowed (since r10813). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14608 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-18* Renamed item array in 'struct guild_storage' from 'storage_' to 'items' to ↵ai4rei5-38/+39
match 'struct storage_data' (related r12933). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14607 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-18* Bunch of intif_parse_LoadGuildStorage fixes.ai4rei2-4/+5
- Fixed guild storage not being sorted, when the storage had to be requested first (follow up to r14605). - Fixed missing check, whether or not the character has already an open storage (follow up to r4562). - Fixed missing GM trust check, whether or not the player is allowed to use guild storage (follow up to r3481). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14606 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-18* Fixed character storage no longer being sorted (bugreport:1982, since r12950).ai4rei5-11/+21
- Guild storage is now sorted before being displayed rather than after being saved... - Merged storage_gsortitem into storage_sortitem. - Added option 'client_sort_storage' to control storage sorting. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14605 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-18* Updates to handling of hair color/style and cloth color of characters.ai4rei6-23/+34
- Moved limit shortcut defines from mmo.h to battle.h, as they are only required in files, which include battle.h (since pre-svn 2004/10/15). - Moved hair style/color validation from char-server to map-server. This enables use of non-default limits as specified in battle config, rather than being restricted to hard-coded ones (bugreport:150). - Cleaned up related capping of values in pc_changelook (related r1708). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14604 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-18* Fixed usage of literals for map name length in character list packet ↵ai4rei3-2/+4
(since r14368). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14603 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-18* Made the 'player not attached' script error also report the function it ↵ai4rei2-0/+40
occured in, if available. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14602 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-17* Fixed a crash, when script command 'doevent' is called without an attached ↵ai4rei2-1/+9
player (bugreport:3973). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14601 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-17* Fixed label definitions silently overwriting built-in script functions ↵ai4rei2-2/+3
(bugreport:2806, follow up to r8027). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14600 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-17* Added temporary check to skill_delunitgroup to prevent crashes when ↵ai4rei4-3/+18
'group' is NULL and added some debug messages to track down the source of the crash (bugreport:3504). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14599 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-17* Spellchecked script_commands.txt.ai4rei2-174/+177
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14598 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-17* Random script engine clean-ups that have accumulated over time.ai4rei2-8/+30
- Resolved unnecessary script_getnum re-evaluation in a loop in script command 'npcshopdelitem' (since r7120). - Script commands 'menu', 'select' and 'prompt' now warn, when there are more menu options, than the client can handle correctly (TODO from r10316). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14597 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-17* Added missing pet db documentation for fields 'attack_rate', ↵ai4rei3-0/+12
'defence_attack_rate', 'change_target_rate', 'pet_script' and 'loyal_script' based on the one provided by frenzmu06 (bugreport:4636, follow up to r13752). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14596 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-16* Reverted r14525 (introduction of SV_READDB_MAX_FIELDS) because it causes ↵ai4rei2-10/+10
confusion to certain group of users and depends on MAX_LEVEL since r14526. - Made sv_readdb be able to process any amount of columns instead. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-16* Fixed a mistake in sv_split, causing CR being recognized as EOL character, ↵ai4rei2-1/+3
even when only LF was specified (since r12459). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14594 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-15* Corrected type of second argument of script command 'setbattleflag' from ↵ai4rei2-2/+3
string to number (bugreport:4640, topic:261833, since r5407, related r14577). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14593 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-15* Fixed missing check in cooking, causing cooking kit requirement could be ↵ai4rei2-0/+7
bypassed by sending 0x25b (CZ_REQ_MAKINGITEM) directly (bugreport:4642, since r13628). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14592 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-13* Fixed plugin 'sig' not being compilable on Mac OS X, due to different ↵ai4rei2-0/+6
return value type of 'strsignal' (bugreport:4637). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14591 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-13* Added pet_db2.txt to make it apparent, that pet db has support for customs ↵ai4rei3-2/+60
as well. - Fixed typo 'HungeyDelay' into 'HungryDelay' in pet database description (bugreport:4636, since r13752). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14590 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-12* Fixed homunculus_autoloot not working with skill/item granted drops and ↵ai4rei2-5/+6
loot (bugreport:4452, since r12203). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14589 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-12* Fixed killed monsters were assumed to be killed by homunculus only, if no ↵ai4rei2-5/+13
damage log entries were elligible for exp distribution, even when no homunculus took part in damage dealing (bugreport:4452, since r12203). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14588 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-12* Added enumeration for monster damage log field 'flag'.ai4rei5-12/+22
* Corrected wording of the setting homunculus_autoloot (since r12203). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14587 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-12* Removed disabled backup of script command 'isequipped' (since r1605).ai4rei2-62/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14586 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-12* Made script engine's DEBUG_DISASM block use script_op2name, rather than ↵ai4rei2-37/+13
hardcoding operator names as per TODO from r13083 (related r9569, follow up to r10667). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14585 54d463be-8e91-2dee-dedb-b68131a5f0ec