summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2011-03-05* Fixed possible crash in script_reportdata, when a script string becomes NULL.ai4rei1-1/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14731 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-04* Fixed recursive map_quit invocation when a buying store is auto-closed ↵ai4rei1-8/+13
(login when @autotrade/logout) (bugreport:4796, since r14724). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14730 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-02* Updates to the super novice's guardian angel prayer effect and related ↵ai4rei2-52/+24
handling code. - Removed the server-side chat tracking code (since r492) responsible for invoking the effect, since this functionality is handled by the client (invocation also processed by the server). This also fixes the missing 7 lines requirement on the server-side handling (bugreport:4786). - Updated the checks in the client-invoked code part and documented the packet. - Now only the prayer in client-side data\msgstringtable.txt (lines 791~794) applies. - The prayer is no longer blocked by noskill-restrictions. - Exp at 0% and 100% no longer causes the effect to trigger. - Fixed the exp percent check to also check one digit after the decimal point (requirement is 10.0% not 10%). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14729 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-01* Fixed packet 0x839 (new guild member expel notification) was expected on ↵ai4rei1-2/+2
clients 2010-06-08aRagexeRE~2010-07-30aRagexeRE, although those do not implement it (bugreport:4789, since r14718, related r14368). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-23* Updates to various custom stuff that buying stores might/are expected to ↵ai4rei3-3/+32
support (follow up to r14713). - Buying store no longer works on novending maps/cells (bugreport:4778). - MANNER_NOROOM mute flag now affects buying stores as well (like vending). - Enabled @autotrade for buying stores. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14724 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-23* Fixed whispering to NPCs (::OnWhisperGlobal) not working for NPCs whose ↵ai4rei1-1/+1
unique name is different from the display name (bugreport:4776, since r2624). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14723 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-21* Fixed SP regen not stopping when Maximize Power (BS_MAXIMIZE) is in effect.ai4rei1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14720 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-20* Updated guild expel notification packet 0x15c (ZC_ACK_BAN_GUILD) for ↵ai4rei1-3/+10
clients 2010-06-08aRagexeRE and newer to 0x839. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14718 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-19* Removed '.txt' from log config info messages, as the values already have ↵ai4rei1-7/+7
an extension (since r197, related r196). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14717 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-19* Fixed buying stores could be opened and sold to regardless of distance ↵ai4rei1-0/+11
between seller and buyer (since r14713). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14715 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-19* Fixed 'feature.conf' not getting loaded and a typo buying store feature ↵ai4rei1-1/+1
setting name (follow up to r14713). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14714 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-19* Implemented buying store system (aka. reverse vending, purchase shop) ↵ai4rei18-20/+807
together with related skill and items, without NPCs. - For SQL apply upgrade_svn14713_log.sql to upgrade tables `picklog` and `zenylog`; for TXT no action is necessary. - Requires 2010-04-20aRagexeRE or later and can be disabled in 'conf/battle/feature.conf'. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14713 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-17* Merged enumeration update from renewal [14699/branches/renewal] for a ↵ai4rei2-10/+414
future commit. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14709 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-15* Added support for client GM command /check (related r12076).ai4rei3-6/+63
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14707 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-14* Fixed drop list of map flag 'pvp_nightmaredrop' not getting cleared upon ↵ai4rei1-0/+1
@reloadscript (bugreport:4282, follow up to r14668). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14706 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-14* Fixed GMs with GM level equal to 'lowest_gm_level' being treated as normal ↵ai4rei1-2/+2
players in 'gm_can_party' check (bugreport:4162, since r13143). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14705 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-14* Fixed a crash when script 'npctalk' is given too long string ↵ai4rei2-7/+25
(bugreport:4759, related r2145). - Fixed related buffer overflows in message related clif functions (since r1182, r14270). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14704 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-09* Fixed script command 'bpet' (Pet Incubator) displaying an empty egg list ↵ai4rei2-9/+12
when attempting to hatch a pet while already having one out (bugreport:3313). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-08* Moved script constant manipulation code into separate functions ↵ai4rei2-10/+40
script_get_constant / script_set_constant. [Ai4rei] - Added protection against overwriting existing names in script constant creation code. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14701 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-08* Updates to various client packets.ai4rei5-82/+77
- Renamed clif_set0199 and clif_send0199 to clif_map_property and clif_map_property_mapall respectively and added an enumeration for currently known map properties. - Renamed clif_set01D6 to clif_map_type and added an enumeration for currently known map types. - Resolved undocumented field of packet 0x22e (ZC_PROPERTY_HOMUN) to attack range. - Fixed aspd field of packet 0xbd (ZC_STATUS) getting filled with karma value. - Removed commented clif_skillinfo (duplicate of clif_item_skill). - Other minor comment updates and 'FIXME' assignments. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14698 54d463be-8e91-2dee-dedb-b68131a5f0ec
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