summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2011-02-06* Replaced 'nameid < 500' checks in script commands 'countitem', ↵ai4rei1-35/+52
'countitem2' and 'autoequip' with stricter ones. - This should stop meaningless itemdb_search warnings from said commands when an invalid item id is used. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14696 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-06* Fixed NPCs with closing parenthesis in their name could not be duplicated ↵ai4rei1-2/+7
(bugreport:3235). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14695 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-06* Fixed closing 'switch' curly not causing script EOL processing to trigger, ↵ai4rei1-1/+3
leading to the script line after the switch being handled as belonging to the curly-less statement block (bugreport:3273, since r3422). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14694 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-31* Inventory and Cart item arrays are no longer getting compacted on each ↵ai4rei1-37/+19
log-in/teleport/warp. - This also resolves yet another issue caused by r14685 (bugreport:2604). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14691 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-31* Various accumulated cleanups and fixes.ai4rei3-7/+15
- Improved the compile speed for files which include common/socket.h on windows builds (related r10471). - Moved FIFOSIZE_SERVERLINK define from common/mmo.h to common/socket.h (since it is a server connection FIFO size setting). - Fixed script command 'areamobuseskill' canceling monster's skill cast before it determined it's new target, which could be 'none' (bugreport:3272, since r13897). - Added a protection against attempts to read an empty backup / write to a full backup in skill_dance_switch as per TODO from r11347. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14690 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-30* Fixed equipped items' bonus no longer working after log-in until next ↵ai4rei1-0/+1
status recalc, due to missing pc_setequipindex which was previously called by pc_checkitem (bugreport:2604, since r14685). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14688 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-29* Removed @aw/@away which duplicates and collides with client's /am (away ↵ai4rei3-41/+0
message) (bugreport:1235, topic:163083, since r4351). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14686 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-29* Fixed a map-server crash when invalid items are deleted (option ↵ai4rei2-3/+1
'item_check') from a logging-in character (bugreport:2604). - This removes the pc_checkitem call from pc_authok, as the check is done in clif_parse_LoadEndAck as well, after first status calc has taken place. - Inventory list is now sent before pc_checkitem in clif_parse_LoadEndAck, so that deleted items do not show up as 'unknown item'. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14685 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-28* Fixed @accept not checking, whether or not a duel is already full ↵ai4rei1-0/+7
(bugreport:2740, since r4111). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14684 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-26* Fixed buyers, that are currently in a vending shop could be fooled into ↵ai4rei4-19/+45
buying an item at different price than they see by reopening the vending shop (bugreport:4728). - This implements the official vending shop unique id handling (previously mistaken for char id), made compatible with packets before it's introduction (follow up to r14234). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14682 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-23* Some cleaning here and there.ai4rei4-6/+4
- Fixed a typo in basejob_baseclass_upper sample script (since r3893). - Fixed (for sake of consistency) usage of 'sd' before corresponding nullpo check in party_invite (bugreport:2752). - Fixed atcommand config reading would not cap level for charcommands, when using atcommand level as fallback (bugreport:2961, since r13409). - Removed orphaned clif_mob_hp declaration from clif.h (bugreport:2788, since r2092). - Removed unnecessary look-up in itemdb_available macro, as dummy_item is considered unavailable. - Removed leftover shortlist linked-list struct (followup to r10507). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-19* Fixed solo dance/star gladiator warm AoE no longer following the owner and ↵ai4rei1-0/+1
cloaking wall rules no longer working (bugreport:4720, since r14671). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14677 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-16* Fixed a map-server crash, when a script attempts to call a local function, ↵ai4rei1-5/+26
which has only a forward declaration. Such functions now count as script parse error (bugreport:4009, since r3422). * Fixed definitions of local functions would set a label reference, even when their name was already taken (follow up to r14600, since r3422). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14675 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-15* Various accumulated insignificant fixes to documentation, examples and ↵ai4rei2-6/+2
comments. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14674 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-14* Removed unconditional redundant status change checks before ↵ai4rei5-122/+60
status_change_end calls (follow up to r12890). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14671 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-14* Replaced remaining occurences of '-1' with 'INVALID_TIMER', where ↵ai4rei15-436/+438
appropriate (follow up to r12998). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14670 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-13* Fixed mapflags 'restricted', 'nocommand', 'bexp' and 'jexp' still not ↵ai4rei1-5/+9
getting completely initialized upon @reloadscript (bugreport:4710, follow up to r14548). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14668 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-13* Removed ladmin (remote administration tool), all related support code and ↵ai4rei1-29/+2
the checkversion.pl tool with it's support code, which was shared with ladmin (topic:262934, related bugreport:1147, bugreport:1889, r9408 and r9610). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14667 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-13* Fixed chrif-packet processing considering free/unused packet IDs ↵ai4rei1-3/+3
incorrectly as variable length packets (-1 = variable length, 0 = disabled packet). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14666 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-13* Reformatting and minor cleanups to console-plugin related code.ai4rei1-21/+35
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14664 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-10* Fixed script command 'cleararray' setting 1 element more, than it is told ↵ai4rei1-7/+7
to (bugreport:2047, since r12253). - Fixed 'inaccessible element 127' issue in 'cleararray', 'setarray' (since r10813) and 'copyarray' (since r14608) script commands (bugreport:864, related r12253, follow up to r14608). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14663 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-10* Fixed monster level not getting updated in monster name (option ↵ai4rei1-0/+5
'show_mob_info'), when a monster levels up (option 'mobs_level_up') (follow up to r8644, related r187). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14662 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-10* Made script command 'charisalpha' always return 1 when 'isaplha' is true, ↵ai4rei1-1/+1
rather than to return the return value of 'isalpha' which is only defined as zero/non-zero and can be different from 1 (bugreport:2024, related r2003). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14661 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-09* Fixed packet_len entry for packet 0x289 (ZC_PC_CASH_POINT_UPDATE) not ↵ai4rei1-1/+1
matching the actual size used in clif_cashshop_ack (bugreport:4701, since r14639, follow up to r12264). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14660 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-08* Fixed script command 'progressbar' resuming fails on second invocation, ↵ai4rei1-1/+3
when there was no script pause between the first and second call (bugreport:4698, since r14024). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14659 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-08* Fixed kill steal protection result in skill casting (unit_skilluse_id2) ↵ai4rei1-2/+3
not getting evaluated (bugreport:1808, since r12203). - Moved kill steal protection in skill casting to be only executed, after the actual target has been determined and validated (since r12203). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14658 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-08* Applied fix provided by Valaris to make /pvpinfo actually work. ↵ai4rei1-5/+6
(bugreport:1785, since r1602). - Filled-in missing packet fields and documented the packet. Note, that this command does not show anything outside of PvP maps (client-side limitation). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14657 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-08* Fixed @homlevel usage message stating, that deleveling is possible, ↵ai4rei1-5/+4
although it is not (bugreport:1485, since r10272). - The command now fails, if it is given a zero or negative value. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14656 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-08- Removed extra slashes in item_db.txt (bugreport:4686)brianluau1-1/+1
- Removed punctuation from Time2Str script function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14655 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-07* Fixed @alootid using 'autolootitem' (internal name) in it's usage message ↵ai4rei1-4/+4
(bugreport:1445, since r12203). - Reworded the turn off message of @alootid. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14654 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-06* Fixed script command 'deletearray' deleting incorrect amount of array ↵ai4rei1-1/+2
elements from arrays with empty elements (bugreport:4628). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14652 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-05* Fixed ends of statement blocks missing script EOL processing, thus causing ↵ai4rei1-9/+35
'next line' label (-) to misbehave in statement blocks without additional curly braces (bugreport:4417, since r3422). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14651 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-01* Pending trade requests no longer prevent a character from trading someone ↵ai4rei1-1/+2
else instead (official). - This fixes trade window displaying wrong name when attempting to deal multiple characters (bugreport:344). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14645 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-30* Fixed improper use of itemdb_search. It does not return NULL but a dummy ↵ai4rei6-13/+14
item, if the item id is invalid. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14642 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-30* Made remaining csv databases (guild, castle, homunculus, itemdb, ↵ai4rei4-541/+348
mercenary) use sv_readdb, where applicable (follow up to r14524, r14526 and r14532). - Few databases remain unchanged, which have either a custom layout or are otherwise incompatible with sv_readdb. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14640 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-29* Collection of random insignificant changes.ai4rei4-11/+39
- Added progress indication on map-server shutdown when objects are removed from maps, as it takes significant amount of time to complete. - Moved ers_free in db_obj_vclear, so that the node pointer is not used for comparison after it has been freed. - Some documentation of shop packets. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14639 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-27* Fixed skill_can_produce_mix not checking, whether or not the produced ↵ai4rei1-0/+5
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* Cleaned up script command checkweight.ai4rei2-33/+66
- 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 ↵ai4rei2-4/+5
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 ↵ai4rei6-11/+11
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.ai4rei1-39/+49
- 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, ↵ai4rei1-4/+1
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.ai4rei1-121/+189
- 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* Added support for new /remove and /recall packets for 2010-08-03aRagexeRE ↵ai4rei3-4/+119
and newer. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14620 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-23* Fixed server processing the sell list (deleting items and giving zeny) for ↵ai4rei1-62/+104
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 ↵ai4rei1-2/+8
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.ai4rei5-11/+12
- 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 ↵ai4rei1-2/+2
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 ↵ai4rei3-9/+54
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