summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2007-12-23- Fixed horrible handling of skill_abra_db which leads to memory corruption ↵skotlex4-18/+22
(depending on the contents of yor abra_db.txt file) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11970 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-23- Fixed warning about unused variableskotlex5-16/+12
- Made the kaahi heal timer function uncrashable. - Fixed pc move item to cart function checking against the wrong max index. - Fixed initialization of sd issue in map_addblock - Removed redundant reinitialization when parsing item pickup. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11968 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-22Fixed droprate overflows when going over rate 2000xultramage1-3/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11966 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-22- Corrected mob spawn utilization of the delay1/delay2 values (one is ↵skotlex4-31/+22
respawn delay base, the second is random variance added on top of it). Cleaned up related code. - Changed abit map_add_block to prevent adding a player object which is invalid (not authed, waiting to be disconnected) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11964 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-22Fixed server not always sending the correct level values to the client.ultramage1-4/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11963 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-22Fixed non-skill splash attacks showing 'unknown skill' (bugreport:665)ultramage1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11961 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-22forgot path.h ._.ultramage1-0/+16
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-22Path code cleaning...ultramage9-152/+125
* Added map/path.h, moved path-related function headers to path.h. * Removed the macroed _real() path functions. * Modified some functions to use boolean return values instead of 1/0 or 0/-1. * Modified path_search_long() to allow a NULL output pointer (in which case a temporary local buffer will be used instead). * Removed an unused ->path_half member variable from struct walkpath_data. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11958 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-22Fixed mob AI code iterating over non-mob objects without checking, when ↵ultramage9-21/+25
monster_ai flag 0x20 is set (caused by r11943) Cleaned up macros that wrap unit_stop_attack() (bugreport:357) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11957 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-19Fixed some formatting glitches in atcommand.cultramage1-61/+61
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11956 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-19Fixed yet another buffer overflow, in @adoptultramage1-6/+7
(caused by a conflict between a mass replace in r2207 and very dumb variable reuse in r1316) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11955 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-19- Corected the SC_MIRACLE + Anger code using the wrong skill level to ↵skotlex2-9/+8
calculate damage bonus. - Corrected SC_MIRACLE to trigger Bless of the Stars on all defeated mobs. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11950 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-19- Fixed skill name for skill 39 (MC_PUSHCART)skotlex1-4/+4
- Corrected some formatting in a few entries in skill_db (TODO: if you really want to format the file to have file names aligned, spaces should be used instead of tabs, like it was done for GD/HLIF skills!) - Corrected placement of leveled up mobs bonus exp - Fixed a possible crash when parsing MSC_MASTERATTACKED mob skills. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11949 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-18Fixed a possible buffer overflow in @partyoption code.ultramage1-7/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-18* Updated respawn time interpretation according to latest kRO updatePlaytester1-4/+5
- this first time is the "min respawn time" - the second time is the "variance" which is added to the "min respawn time" git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11946 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-18- Cleaned up a bit the format of skill_db.txt (that comma next to the skill ↵skotlex4-8/+23
name looks ugly if you ask me) - Corrected skill_db reading to properly trim the skill name/descs. - Added a mobid_db in map.c to handle mob lookups faster. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11943 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-18- removed redundant clif_hominfo line in merc_hom_dead (it was sent already ↵skotlex3-7/+3
from hom_damage) - Item usage is now blocked while hidden. - Moved the bladestop/berserk check from clif_parse_EquipItem to pc_equipitem git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11942 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-18Fixed a glitch where the TXT charserver would not unlock castle.txt after ↵ultramage1-2/+2
creating it, thus preventing it from being saved correctly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11941 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-18minor code tweakingultramage5-8/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11936 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-17* Added flag.server to indicate interserver socketsultramage12-45/+50
- replaces the previous way (setting 'client_addr' to 0) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11930 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-16Replaced the 'map name' castle data variable with the equivalent 'map index'.ultramage2-23/+14
Optimized the castle lookup functions (direct dbmap enumeration, and no redundant operations inside the searching loop). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11918 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-16Some more guild code reformatting (moved do_init_guild() to the end of ↵ultramage4-128/+113
guild.c, cleaned up and documented the castle/guild/member lookup functions, fixed a compilation warning...) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11917 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-15Fixed one query that I missed when doing r11915ultramage1-3/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11916 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-14Guardian hp handling code removal (see bugreport:342)ultramage10-240/+103
- removed guardian hp from the castle data structure, database, savefiles and various script functions (use upgrade_svn11914.sql) - removed guardian hp calculation and manipulation from the castle manager npc, now the hp values are updated by the server itself (glitch: when castle defense changes, all guardians are healed to full) - tweaked script function 'guardianinfo' to provide some data needed by the manager npc (currently available are hp, maxhp and visibility); also, it doesn't need a player attached to execute anymore The whole thing is experimental, use at your own risk (seems to work though...) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11915 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-14Added a precise and consistent tick() function for freebsd (see bugreport:240)ultramage1-1/+5
(TODO: apply it to multiple platforms using an appropriate configure script) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11912 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-14- corrected Option_Xmas value in const.txtskotlex3-9/+6
- Wand of Hermode now dispells buffs only of allies. - Fixed some null pointer checks in status_change_end. - Corrected a crashy Warning message. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11910 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-13Fixed a mistake in r11895 where guild invitation data was being cleared too ↵ultramage1-5/+9
soon, causing a check to fail when confirmation arrived from the charserver. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11902 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-13* Fixed possible segmentation faults in the script engine.FlavioJS1-19/+23
- some strings that can be freed outside the script engine were being pushed into the stack as constant strings git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11901 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-13* Disabled ers until recent crashes are fixed.FlavioJS1-1/+1
- ers entries are being corrupted, probably by modifying them after they are released or by releasing something else git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11900 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-13* Abstracted the windows socket code so that all fd's are in the range ↵FlavioJS1-92/+244
[1,FD_SETSIZE[. (bugreport:604) - The socket of a fd is forgotten when executing sClose, so things that depend on the socket (like sFD_CLR) must be executed before closing. * Replaced the fd_set of the short list with a custom implementation (works like the linux fd_set). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-12Some more tweaks to the guild codeultramage2-249/+295
- unrolling of foreach()/_sub() pairs using db iterators - usage of ARR_FIND instead of for()/break; - old function header adjustment git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11896 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-12* Some preparations for the guild script updateultramage16-502/+488
- cleaned up npc event execution code - cleaned up guild data loading/saving code; to be improved later - removed dummy 'account name' expulsion list management code - removed columns 'rsv1' and 'rsv2' from guild member data - removed columns 'rsv1' 'rsv2' 'rsv3' and 'acc' from guild expulsion data - added upgrade_svn11895.sql for SQL git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11895 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-12Removed the badly designed/unfinished guild_check_conflict() data integrity ↵ultramage5-68/+1
check (that wasn't actually being used up 'till now). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11894 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-11- Added query_logsql script command to perform sql commands using the log db ↵skotlex1-12/+31
connection. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11892 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-11- Status change start will now fail when invoked on players that are ↵skotlex1-1/+4
disconnecting. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11891 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-11Fixed TXT charserver attempting to do a guild master change instead of an ↵ultramage1-1/+1
integrity check whenever a new guild member gets added. See revisions r3185 and r3719 on how the code arrived into such a state... git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11890 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-11Fixed a mistake in r11876 that prevented the login server from doing auth ↵ultramage2-2/+2
correctly due to an incorrect IP being used in the process. The whole thing should be reverted when there is a proper flag to identify interserver connections. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11888 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-10- The interserver outgoing buffer now gets flushed when it reaches 512KB of ↵skotlex1-1/+6
data stored on it. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11886 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-10- Cleaned up clif_setdisguise and fixed it for PACKETVER>=9. I was kinda ↵skotlex1-36/+12
right in my last assumption afterall :V git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11884 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-10- Reverted last change, I was wrong in my assumption o_O;skotlex1-5/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11883 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-10- Fixed the disguise packet sent in clif_moveskotlex1-2/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11882 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-10- Cleared up npc shop id when warping a player.skotlex3-2/+3
- Added missing range/skill-mask info to reflected damage (fixes autospells not triggering on it) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11880 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-09* Modified npc_parsesrcfile to parse the line as a 'tab-separated values' ↵FlavioJS1-15/+47
string and added data truncation warnings. - enforces a stricter adherence to the format (no multiple tabs) - avoids sscanf matching spaces, new lines and carriage returns when '\t' is used in the format string git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11879 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-09* Added a generic 'delimiter-separated values' string parser to strlib.c/h.FlavioJS2-0/+373
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11878 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-09Changed Cloaking to not show an animation when it fails (thanks to Harbin ↵ultramage3-49/+56
for pointing it out). And while at it, also tweaked skill_check_cloaking() to use a more readable boolean logic instead of the previous zero-nonzero. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11877 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-09small fix to the server's packet parsing code to display server IPs correctly.ultramage3-11/+13
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11876 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-09- Cleaned up a bit the code for HVAN_CHAOTICskotlex1-4/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11875 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-08- Fixed a 'variable may be used uninitialized' error.skotlex2-4/+5
- Removed 'type' being passed to skill_trap_splash since it was not used at all. - Fixed Land Mine doing nothing. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11872 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-08- Changed the chaotic delay from block to delay since it just a secskotlex3-4/+2
- Fixed the longing for freedom check in unit_can_move - Corrected a check while parsing refine_db.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11870 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-07- Fixed ensembles skills.skotlex2-5/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11869 54d463be-8e91-2dee-dedb-b68131a5f0ec