summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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-18* Fixed missing strlib.h include for compilers without own 'strnlen' ↵ai4rei1-0/+1
implementation (since r14853). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14855 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16Moved DBMap's string maxlen parameter translation (0 -> UINT16_MAX) to its ↵ultramage2-19/+6
initialization phase, so that it runs once instead of on every hash and compare step. This will slightly speed up most strdb operations. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14854 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16Fixed DBMap's db_dup_key to allocate only as much as necessary (bugreport:4969).ultramage1-8/+8
This reduces default eA's memory usage by about 400kB. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14853 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16Fixed char-converter not being able to compile due to both char.h being ↵flaviojs2-0/+4
included. (caused by last commit) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14852 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-06-16* Merges from charmerge:flaviojs20-336/+993
- 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
2011-05-08* Script command 'query_logsql' now throws a warning when SQL logs are ↵ai4rei1-0/+7
disabled (related r11892). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14811 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-08* Updated/revised description of instance-related script commands ↵ai4rei2-9/+8
(bugreport:4880). - Fixed 'instance_create' would return -4 (party already instancing) when the requested party was not found. - 'instance_create' return value -2 now means 'party not found' rather than 'missing parameter'. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14809 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-01* Removed functions 'decode_zip' (ancient) and 'encode_zip' (from r824) from ↵ai4rei4-73/+7
grfio. These were outdated copies of zlib's 'uncompress' and 'compress' respectively (related r1530 and r5152). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14808 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-05-01* Removed auto-add feature from mapindex code, as map indexes are used for ↵ai4rei2-13/+0
save data, thus need to be constant across server starts (since r4726). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14807 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28* Fixed @makehomun not checking for existing homunculus properly and thus ↵ai4rei1-1/+1
allowing to create a homunculus when one is already present but inactive (bugreport:4879, since r10272). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14806 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28* Code cleaning and reformatting in functions responsible for sending guild ↵ai4rei2-24/+27
expel information packets (follow up to r14718 and r14804). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14805 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28* Updated packet 0x163 (ZC_BAN_LIST) to reflect change in packet layout ↵ai4rei1-5/+14
introduced with 2010-08-03aRagexeRE (bugreport:4881, follow up to r14718). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14804 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-28* Fixed formatted broadcast messages not working with 2010-11-24aRagexeRE ↵ai4rei1-5/+0
and later (bugreport:4872, since r14120). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14803 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-21* Extended debugging code for bugreport:3504 (related r14599).ai4rei3-4/+28
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14801 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-20* Fixed quest_check checking exactly 3 quest objectives instead of ↵Gepard1-12/+8
MAX_QUEST_OBJECTIVES (since r13959). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14800 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-18* Updated packet for the view players' equip feature for ↵ai4rei1-27/+37
2010-11-24aRagexeRE+ and made it support robes (follow up to r14797). - Fixed spawn/walking packets using wrong variable for shifting buffer reference (since r14797). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14799 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-17* Fixed char-server missing some WFIFOHEAD (partially due to r10909 being ↵ai4rei2-0/+8
reverted by r11245, follow up to r9307 and r14618). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14798 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-16* Added support for visible garments/robes.ai4rei8-20/+109
- For SQL apply upgrade_svn14797.sql to upgrade table `char`; for TXT no action is necessary, as it upgrades itself. - This also fixes NPCs not being visible with clients 2011-01-11aRagexeRE+ (bugreport:4865). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14797 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-16* Some cleanups related to player and monster states.ai4rei10-120/+122
- Moved user_font and bg_id out of states as they are data, not states. - Reordered members of state structs so that bitfields are packed together (less memory gets wasted). - Other insignificant code tweaks. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14795 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-10* Added more packets for clients 2010-11-23aRagexeRE+ provided by Shinryo.ai4rei1-1/+1
- Fixed missed updates for packet version bump in previous revision. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14792 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-10* Added support for clients 2010-11-23aRagexeRE+ and 2011-01-11aRagexeRE+.ai4rei3-2/+11
- Servers that used packet db version 'default' until now need to be updated to use version '25'. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14791 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-10* Fixed switching between musical weapons would cancel ongoing dance skills ↵ai4rei1-1/+1
(bugreport:4756, since r3538). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14790 54d463be-8e91-2dee-dedb-b68131a5f0ec