summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-01-04Fixed a mistake in r11991 that let knockback work through wallsultramage2-2/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12010 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04Modified the map_setcell() code to to use a boolean flag instead of needing ↵ultramage11-177/+182
SET_ / CLR_ pairs of defines (topic:174323). Also removed script object 'setcell', added script function 'setcell'. - Now you can manipulate cell information without needing @loadnpc - You can also manipulate the terrain ('gat') type itself, using the new cell_walkable, cell_shootable and cell_water constants (currently the implementation uses bit flags too, so to get the type you want, you need to adjust the flags one by one) - This breaks current scripts, so please adjust places that use setcell (also be sure to _only_ use predefined constants, not direct numbers) - Details can be found in the script reference. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12009 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04- Fixed clif_sendfakenpc not being updated for PACKETVER 9skotlex1-7/+13
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12008 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-04- Fixed Music Lesson's effect on Assassin Cross of Sunset.skotlex3-2/+6
- Fixed a possible crash in status_change_timer when debug mode is disabled. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12006 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-03Changes to reduce the number of map cell typesultramage7-51/+23
- Pneuma now again works via status change (see r3969) - removed unused CELL_SAFETYWALL - removed custom CELL_REGEN, it just increased regen rate (r1192, r1518) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12005 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-03Fixed npc unloading not clearing NPC touch cells (bugreport:595).ultramage2-14/+3
Added a comment to npc_unsetcells(), pointing out that it's most likely not scanning for cells correctly. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12004 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-03Map cell mechanism rewriteultramage6-198/+280
- defined a data structure for map cells (replaces 3 various cell arrays) - both terrain (gat) and dynamic (cell) information is now stored as C-style bit flags instead of #defines and bitmasks - added map_gat2cell() and map_cell2gat() for terrain type conversions - changing terrain information via 'setcell' is temporarily disabled - mapserver startup now takes longer, as it needs to adapt mapcache data to internal representation, cell by cell (new mapcache format anyone?) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12003 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-03Moved extra junk from map_addblock/map_delblock to where it logically ↵ultramage5-49/+63
belongs (loadendack/unit_remove_map), removed flags and _sub macros git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12002 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-03Removed map_data's block_count, as (quote Yor/ja2160), "Perhaps useful for ↵ultramage5-203/+104
debug, but uses memory AND CPU for nothing." (block lists are linked lists, they don't need count tracking) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12001 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-01* Corrected some delitems in Kyel Hyre Quest. (bugreport:690)samuray224-8/+16
* Corrected a Typo error in Yuno NPCs. (bugreport:716) * Corrected a Typo error in Novice Training Ground. (bugreport:728) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-31* Fixed a crash in txt char-servers that the memory manager was hiding. ↵FlavioJS2-4/+6
online_char_db being used after being destroyed (since r4026) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11999 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-31* Added code to reject double logins in clif_parse_WantToConnection and ↵FlavioJS5-15/+46
added debug messages to detect possible double logins that escaped. * Isolated accounts that are waiting for the quit ack. The rest of the game logic no longer has access to them though the id2sd/charid2sd dbs. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11998 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-30* Fixed get_val2 not using the stack, which automatically frees the data, ↵FlavioJS2-8/+20
causing memory leaks for string variables since r11976. (bugreport:723 , part of bugreport:714 and part of bugreport:708) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11997 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-30* Trully fixed the previous commits. (missing casts and incomplete sizes)FlavioJS2-4/+5
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11996 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-30Fixed a mistake of the previous commit (r11994). Was reading the size in the ↵FlavioJS1-1/+1
wrong place. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11995 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-30* Made the memory manager set allocated memory to 0xCD and freed memory to ↵FlavioJS2-1/+22
0xDD. The memory manager no longer 'hides' uses of freed memory. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11994 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-29* Fixed two missing @LDFLAGS@ in src/plugins/Makefile.in.FlavioJS2-2/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11993 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-29Implemented THE official Steal skill equation and game mechanics (basically ↵ultramage6-17/+20
version from /stable plus a few tweaks) (see topic:116540). Added missing bAddStealRate reference to doc/item_bonus.txt. Removed skill_steal_rate, as it was never used in the code (see r231). Removed skill_steal_type, it's just a one-liner source mod (see r231). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-29Knockback now works through cells where there is a diagonal path, but no ↵ultramage2-56/+26
horizontal+vertical alternative (like two perpendicular icewalls with a gap where they 'join'). Some dead code removal in path.c. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11991 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-28* Updated MVP drops to 11.2Playtester2-6/+9
- also increased speed of Lord of the Death git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11990 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-28* Fixed a memory leak in memitemdata_to_sql.FlavioJS2-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11989 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-28* Reverted a bad modification in clif_produceeffect from r11290.FlavioJS2-2/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11988 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-27Removed an incorrect range check and fixed a copypaste typo which caused ↵ultramage2-6/+3
script engine errors / crashes (see r11984) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11987 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-27Re-added a missing mob last_thinktime timer initialization when a mob ↵ultramage2-0/+3
spawns, causing mob AI to freeze (mistake in r11964) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11986 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-27* Changed the configure script:FlavioJS3-2369/+3212
- refined the mysql test (wasn't detecting 64 libraries compiled without -m64) - added a test for clock_gettime in -lrt (required for Debian) (run ./configure to update the Makefiles) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11985 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-27* Corrected description of scope and npc variables in script_commands.txt.FlavioJS6-40/+65
* Made temporary character string variables not have a limited length. (now all temporary string variables don't have limited length) * Made temporary character variables reuse free positions. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11984 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-27* Tweeked the declaration and initialization defines for vectors.FlavioJS6-19/+50
* Made do_sockets leave the for loop as soon as the readable number of sockets returned by select is found. * Made all posix compliant systems that support it and FreeBSD >= 5.1 (implements it but doesn't have the posix defines) use the precise and consistent tick() implementation. * Minor tweek to HEAP_SEARCH (same variable can be used in from and to). * Fixed the map server not exiting when make_listen_bind fails and returns -1. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11983 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-26Fixed the incorrect interpretation of the map-cell height information stored ↵ultramage3-33/+39
in .gat files; this was causing an overall of 20000 cells to be treated as water when officially they aren't. A full mapcache rebuild is needed to apply this change. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-26Moved distance-related functions to path.c/hultramage11-59/+64
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11981 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-26Removed typo (it's correct on stable for some reason)Playtester1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11980 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-26More official Veins spawnsPlaytester3-52/+96
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11978 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-26Fixed two bugs in mob_dbPlaytester2-3/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11977 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-26* Fixed string variables dereferencing directly to the value instead of ↵FlavioJS2-8/+20
dereferencing to a copy of the value. (fixes bugreport:684 bugreport:641) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11976 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-24some minor cleaning of player variable loading/savingultramage1-84/+75
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11975 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-24- corrected skill_abra.txt so it no longer has entries for passive skills.skotlex1-59/+59
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-23Fixed a line in eAAC Quest Warper causing crashes.Paradox924X2-1/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-23* Added a generic vector implementation (dynamic array) based on defines.FlavioJS2-0/+287
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-12-23- Fixed horrible handling of skill_abra_db which leads to memory corruption ↵skotlex5-18/+25
(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 2000xultramage2-3/+7
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 ↵skotlex5-31/+26
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-22Cleaned the script conf files (see topic:171384 for details)ultramage12-158/+9
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11962 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-22Fixed some typos in skill_db.txt, caused by r11949 (bugreport:657)ultramage1-6/+6
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11960 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...ultramage15-152/+147
* 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 ↵ultramage10-23/+27
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 @adoptultramage2-6/+8
(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