summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2011-07-10* Changed limit definitions used in WBUF* and WFIFO* to the intended fixed ↵flaviojs1-35/+35
size alternatives. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14899 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-09* Added script command 'getmercinfo' for retrieving information about a ↵ai4rei1-0/+57
mercenary of an online character. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14894 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-09* Removed duplicate entries for Gunslinger and Ninja in msg_athena.conf ↵ai4rei1-6/+2
(since r5506). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14892 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-07* CMake: normalized variable names, added ability to create a package/installer.flaviojs2-8/+10
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14890 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-06* CMake: src/common builds static libraries common_base/common_sql, that are ↵flaviojs3-104/+179
used as dependencies by the other targets. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14889 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-06* Merged decode_zip/encode_zip from eapp's grfio to replace our direct use ↵flaviojs1-1/+1
of zlib's uncompress/compress. * Fixed strict-aliasing warning in mapcache's GetFloat. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14888 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-05* CMake: split txt and sql variants of login-server and map-server.flaviojs3-112/+117
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14886 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-03* Corrected npcdb_checkid to exclude border constants 400 (JT_NEW_NPC_START) ↵ai4rei1-1/+1
and 1000 (JT_MON_BEGIN) (since r4425 and r12025, related r4537). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14882 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-02* More instancing updates.ai4rei2-19/+34
- Improved instance_id validity checking. - Fixed instance name being copied with memcpy rather than safestrncpy (since r13901). - Removed unused instance data field 'progress_timeoutval' (since r13901). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14879 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-02* Random updates to instance system.ai4rei4-11/+22
- Introduced a constant for instance name length. - Corrected comments related to instance packets 0x2cb (ZC_MEMORIALDUNGEON_SUBSCRIPTION_INFO) and 0x2ce (ZC_MEMORIALDUNGEON_NOTIFY). - Moved instance finalization out of map.c into instance.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14878 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-07-01* CMake: marked executables as different components and other miscellaneous ↵flaviojs1-2/+12
changes. [FlavioJS] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14877 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-30Removed extra guards around cbasetypes.h include lines, since they give no ↵ultramage1-2/+0
performance improvement. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14876 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-30Replaced custom type 'intptr' with standard 'intptr_t'.ultramage28-106/+106
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14873 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-29* Added experimental support for CMake. (for now: basic build, no extras, ↵flaviojs1-0/+140
only tested with VS10 and cygwin) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14872 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-27* Added common/random and 3rdparty/mt19937ar to project files, makefiles and ↵flaviojs1-10/+20
configure script. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14870 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-26* Fixed @mobinfo displaying mvp rewards with 'AegisName' although normal ↵ai4rei1-2/+2
drops use 'Name' item db column (bugreport:4981, follow up to r6346). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14868 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-26Fixed quest index memory corruption when adding new quests (since r14039, ↵ultramage1-1/+1
bugreport:4982). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-25Slightly cleaned up some ancient Brandish Spear code:ultramage2-52/+56
* remove helper 'struct square' from common/mmo.h * moved skill_castend_nodamage_id's case ML_BRANDISH to separate function git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14866 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-23* Made chrif_save always call pc_makesavestatus. (no reason to prevent the ↵flaviojs1-3/+2
call, and was interfering with multi map-server; fixes bugreport:1400) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-22Plagiarized skills are now removed on jobchange (bugreport:4973).ultramage1-0/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14862 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-22Added enum e_skill_flag to represent the values of struct s_skill's ↵ultramage6-55/+64
complicated 'flag' field. Reordered the enum values so SKILL_FLAG_REPLACED_LV_0 goes last and arithmetic can be done on it safely (for storing skill level values). This also adds support for skill levels higher than 10. Fixed several places where SKILL_FLAG_TEMPORARY was not handled properly, and instead was considered as one of the saved skill level values (resulting in skill level -1). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14861 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-18* Fixed using @refresh while having vending or buyingstore open would stuck ↵ai4rei1-0/+5
the character (bugreport:156 , since r1307). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14857 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16* Merges from charmerge:flaviojs7-55/+119
- Added DBMap::exists. (r14090) - Added sv_parse_next, a stepped version of sv_parse (delim-separated parser). (r14100 r14104) - Added missing fd check to do_close. (r14145) - Normalized, refactored and restructured some code (in preparation for shutdown/reconnect code). (r14145 r14150) - Changed the char select request code to allow the char-server to reject it. (player in map-server trying to go to char select) (r14150) - Added shutdown support to the servers. (incomplete) (r14152) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14851 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-13* Fixed pet's equip would visually disappear when it's walk speed was ↵ai4rei1-0/+6
changed while it was standing (related r14838). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14847 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-11* Added support for new skill usage notification packet 0x7fb ↵ai4rei2-24/+35
(ZC_USESKILL_ACK2). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14845 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-11* Fixed party invite packet 0xfe (ZC_REQ_JOIN_GROUP) using account id of the ↵ai4rei5-24/+36
inviter rather than party id. - Added support for new party invite packet 0x2c6 (ZC_PARTY_JOIN_REQ), introduction date guessed. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14844 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-03* Fixed a crash in clif_parse_FriendsListAdd, when a player is added that is ↵ai4rei1-5/+5
not online (bugreport:4947, since r14835). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14843 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-31Fixed a typo in buyingstore_create.Inkfish1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14842 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-30* Fixed script command 'warpguild' looking for an attached player even when ↵ai4rei1-7/+6
it is not needed (bugreport:4941, since r2674, related r14840). - Documented special map names recognized by the command. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14841 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-30* Fixed script command 'warpparty' looking for an attached player even when ↵ai4rei1-7/+6
it is not needed (bugreport:4359, since r14311, related r2674 and r5592). - This also resolves an issue, where the command fails when the attached player is on a map that has noreturn or nowarpto mapflags set. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14840 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29Renamed clif_parse_ReqFeel to clif_feel_req (since r4352).ultramage3-6/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14839 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29* Fixed pets' speed would not get updated to normal, after they finished ↵ai4rei1-0/+1
running to their owner (bugreport:1304). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14838 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29* Fixed NULL pointer in status_change_timer (SC_BERSERK), when the HP ↵ai4rei1-1/+1
subtraction causes the HP drop below 100, but does not exceed remaining HP (bugreport:1150, related r8705, r11786 and r12061). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14837 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29* Updated script commands 'npcshopitem', 'npcshopadditem' and ↵ai4rei1-3/+3
'npcshopdelitem' to support cashshops as well (bugreport:4928). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14836 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29* Fixed players could add themselves to their friendslist through their ↵ai4rei1-0/+10
clones or WPE (bugreport:4909). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14835 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-29* Fixed bonus 'bHPDrainValue' on left hand would work as right hand bonus, ↵ai4rei1-2/+2
when specified with 'bonus' rather than 'bonus2' (bugreport:4939, since r6221). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14834 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-23* Changed enumerating defines into enumerations (related topic:264007).ai4rei8-93/+117
- Minor fixups on few macros. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14831 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-22- Fixed a typo in eA Job System documentation.brianluau1-1/+1
- Fixed some bugs in Cursed Spirit quest. (bugreport:4914, bugreport:4917) - Changed <dir> in movenpc to wrap around if the number is < 0 or > 7. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14830 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-18Quick fix to Venom Splasher's Poison React bonus, 30% -> 20%, based on aegis ↵ultramage1-1/+1
(bugreport:230). Initially eA used 20%, then it got removed in r10907 due to incorrect info, and was added back in r11494 as 30% (no idea where I got that number from >.>). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14829 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-17* Fixed Super Novices could not be adopted (bugreport:4907, since r12389).ai4rei1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14828 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-17* Improved error reporting during monster database and spawn data reading.ai4rei2-20/+25
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14827 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15* Extracted calculations of the number of status points PC gets when ↵Gepard3-13/+21
leveling up to a function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14825 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15* Removed status point calculations (duplicate) from `pc_resetstate` ↵Gepard3-35/+50
function. It is now handled by `pc_need_status_point`. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14824 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-15* Merged pcdb_checkid update from renewal [14810/branches/renewal].ai4rei1-1/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14820 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14* Moved bitfield 'boss' inside 'spawn_data' and 'mob_data' into the ↵ai4rei5-8/+8
respective state struct (from r13813, follow up to r14795). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14818 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14* Some NPC event related cleaning.ai4rei9-43/+47
- Made event label deprecation message a warning rather than an error, as the scripts still work regardless of whether '::On' is used or not (since r6592). - Introduced constant EVENT_NAME_LENGTH (51) for all event name struct fields to eliminate size inconsistency across all objects (was 50 and 51). - Fixed event names, that are considered special attributes, were not wiped when the value was 0 (since r5707). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14817 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14* Removed impossible condition in mob_parse_dataset as spawn_data::eventname ↵ai4rei1-5/+1
was/is the same size as mob_data::npc_event (since r5707). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14816 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14* Fixed map-server printing deprecation message, when monster event label ↵ai4rei4-5/+22
was used as transport for special attributes (small/large monsters etc.) in script command 'monster' and related commands (bugreport:1274, since r6592, related r5707). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14814 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14* Random accumulated bits and pieces.ai4rei8-18/+82
- Added checks/warnings to pc_paycash and pc_getcash (follow up to r12264). - Added missing packet_db.txt and packet length table entries for packet 0x0859 (follow up to r14799). - Added set of map_id2xx wrappers for map_id2bl for most common map objects, which return NULL when the bl-type is not the expected one (also updated map_id2nd to behave this way). - Fixed missing ',' in mob_skill_db.txt example (follow up to r14270). - Updated mapcache with recent maps (up to que_lhz). - Functions 'msg_txt' and 'job_name' now return a const pointer. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-14* Added settings 'cashshop_show_points' and 'mail_show_status', both ↵ai4rei4-7/+21
disabled by default, as the messages they control are custom (follow up to r11548 and r12264). - Moved custom cash point update messages to 'msg_athena.conf' (IDs 504~506). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14812 54d463be-8e91-2dee-dedb-b68131a5f0ec