Commit Graph

  • 5c4212300a - corrected duration of sphere mines to be 30 secs regardless of skill level - Corrected duel_count/duel_list (you DON'T place variables in a .h file! That is what 'extern' is for) - Script command warpportal now places a warp in its initial state (as if a real warp portal was casted) - Updated dispell to also not remove the following effects: Hindsight, Inc Hit/Atk Rate (NPC_POWERUP), Nen, TK stances and tumble, warm and speedup1 (the other speed potion) - Chase-walking characters can now loot. - Hiding characters can't drop items now. skotlex 2008-01-09 16:08:57 +00:00
  • 5634b47f9e More official Cursed Abbey spawns Playtester 2008-01-08 20:52:27 +00:00
  • b3696e2e03 Added missing session auth checks to charserver. Packets from non-authed clients will now be discarded. ultramage 2008-01-08 14:30:28 +00:00
  • 9a2033c364 - Made the pc reg variables receive a const char* as the argument, since they duplicate the value anyway (and they were receiving const char* values from the setd function) - Fixed Wand of Hermod not starting the SC_HERMOD status change (which blocks spells) - Fixed a missing break in the cast cancel code. - Fixed additional def/mdef from vit/int bonuses being lost when a status change that affects def/mdef triggers (for homunculus) skotlex 2008-01-08 13:30:43 +00:00
  • 25aebd3e08 git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12031 54d463be-8e91-2dee-dedb-b68131a5f0ec reddozen 2008-01-08 00:29:33 +00:00
  • d3ff689c2b Added missing code to log main chat messages sent by whispering to main_chat_nick (bugreport:424) ultramage 2008-01-08 00:24:35 +00:00
  • 1dd15f45d7 Corrected "Enlarge Weight LImit R" typo (bugreport:647) ultramage 2008-01-07 23:10:39 +00:00
  • 38dd2f2fde - Fixed Overthrust's timer not being able to be refreshed when recasting it (conflict on what val2 should mean) - Changed the code in status_change_timer so that a null pointer no longer causes a crash but prints an error instead. - Corrected clones not copying over a player's skills properly. skotlex 2008-01-06 23:48:13 +00:00
  • 67cb0da56c Corrected a TXT compilation problem caused by r12023 (mail system code is not present in TXT builds). ultramage 2008-01-06 23:01:58 +00:00
  • 0848355f90 Extended the id range for npcs, now [400,700) will also be treated as NPC objects (see topic:170845 and bugreport:727). Silenced a compilation warning. ultramage 2008-01-06 22:08:23 +00:00
  • a4007e12d4 Expanded the poor "npc_touch_areanpc : some bug" with info about which cell exactly caused the problem. ultramage 2008-01-06 21:14:54 +00:00
  • 825d214242 - Fixed a visual itemdupple bug on mail system. - Fixed Overthrusth status cannot being recalled at same skill lvl. zephyrus 2008-01-06 16:43:02 +00:00
  • 144afd8189 Cleaned up mob_once_spawn() and mob_once_spawn_area(). - now they use mapid instead of mapname as input parameter - moved the responsibility to perform "this" -> mapid resolution to the caller - added a pair of swap() operations to prevent working with a negative-dimensioned area (fixes bugreport:87) ultramage 2008-01-06 16:37:06 +00:00
  • 65834585a8 Modified showmsg code to not attach a timestamp to MSG_NONE-type messages, generated by ShowMessage(). It now works exactly like printf(). Removed/replaced all printf calls in the code. Added a new flag to setting 'console_silent', for filtering debug messages. Silenced the "Broken pipe found" and "Server running in debug mode" messages. ultramage 2008-01-06 14:19:26 +00:00
  • b4a3935264 * Fixed a little Error with a label on Hall Of Fame. (bugreport:722) * Fixed another typo error in Novice Training Ground. (bugreport:740) * Fixed a typo error in duplicates of Mr.Smile Quest. (bugreport:749) samuray22 2008-01-06 05:43:21 +00:00
  • e9800cb4b1 * Added job_knt to nomemo, no return & noteleport mapflags. samuray22 2008-01-06 05:31:35 +00:00
  • f0038722a3 Corrected one place belonging to the no-stacking mod that I missed when doing the mapcell update (followup to r12003). Added info from newest clients to packet db. ultramage 2008-01-05 21:41:22 +00:00
  • be6df0dc11 * Updated Kunlun NPCs and warps. - Didn't update the Kunlun 'Power' npcs - Updated Lutie and Comodo warps. * Fixed some slight inconsistencies with the some script headers. L0ne_W0lf 2008-01-05 21:32:34 +00:00
  • 23e02001cf Fixed a bad allocation line, which in my case resulted in trashing several ingame objects when doing @reloadmobdb. ultramage 2008-01-04 19:39:02 +00:00
  • 51e05f0fcf Fixed a typo in r12008 causing server crashes when sending the fake npc packet. ultramage 2008-01-04 17:11:01 +00:00
  • 24ee182b90 Waterball code cleanup (see bugreport:707) ultramage 2008-01-04 16:57:53 +00:00
  • c29f4e1823 Fixed a mistake in r11991 that let knockback work through walls ultramage 2008-01-04 13:00:49 +00:00
  • e7bb626a80 Modified the map_setcell() code to to use a boolean flag instead of needing 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. ultramage 2008-01-04 12:41:49 +00:00
  • 416f151368 - Fixed clif_sendfakenpc not being updated for PACKETVER 9 skotlex 2008-01-04 09:47:39 +00:00
  • de7ce05609 - Fixed Music Lesson's effect on Assassin Cross of Sunset. - Fixed a possible crash in status_change_timer when debug mode is disabled. skotlex 2008-01-04 09:33:24 +00:00
  • 6bf267e60e Changes to reduce the number of map cell types - Pneuma now again works via status change (see r3969) - removed unused CELL_SAFETYWALL - removed custom CELL_REGEN, it just increased regen rate (r1192, r1518) ultramage 2008-01-03 23:27:22 +00:00
  • c2dfc595b1 Fixed npc unloading not clearing NPC touch cells (bugreport:595). Added a comment to npc_unsetcells(), pointing out that it's most likely not scanning for cells correctly. ultramage 2008-01-03 22:00:59 +00:00
  • 8fdc689343 Map cell mechanism rewrite - 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?) ultramage 2008-01-03 21:36:40 +00:00
  • 8f1eaa3d67 Moved extra junk from map_addblock/map_delblock to where it logically belongs (loadendack/unit_remove_map), removed flags and _sub macros ultramage 2008-01-03 20:56:20 +00:00
  • ca115ffc82 Removed map_data's block_count, as (quote Yor/ja2160), "Perhaps useful for debug, but uses memory AND CPU for nothing." (block lists are linked lists, they don't need count tracking) ultramage 2008-01-03 20:43:25 +00:00
  • a4f30626e4 * Corrected some delitems in Kyel Hyre Quest. (bugreport:690) * Corrected a Typo error in Yuno NPCs. (bugreport:716) * Corrected a Typo error in Novice Training Ground. (bugreport:728) samuray22 2008-01-01 17:30:51 +00:00
  • 7bc9d86651 * Fixed a crash in txt char-servers that the memory manager was hiding. online_char_db being used after being destroyed (since r4026) FlavioJS 2007-12-31 19:46:59 +00:00
  • 1c3b249328 * Added code to reject double logins in clif_parse_WantToConnection and 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. FlavioJS 2007-12-31 19:23:34 +00:00
  • b465fb5f30 * Fixed get_val2 not using the stack, which automatically frees the data, causing memory leaks for string variables since r11976. (bugreport:723 , part of bugreport:714 and part of bugreport:708) FlavioJS 2007-12-30 21:14:09 +00:00
  • 94ad564ec8 * Trully fixed the previous commits. (missing casts and incomplete sizes) FlavioJS 2007-12-30 06:36:50 +00:00
  • e535c63a84 Fixed a mistake of the previous commit (r11994). Was reading the size in the wrong place. FlavioJS 2007-12-30 06:10:20 +00:00
  • 382233178c * Made the memory manager set allocated memory to 0xCD and freed memory to 0xDD. The memory manager no longer 'hides' uses of freed memory. FlavioJS 2007-12-30 05:43:51 +00:00
  • 4c54d4923f * Fixed two missing @LDFLAGS@ in src/plugins/Makefile.in. FlavioJS 2007-12-29 23:18:20 +00:00
  • 470a56dbea Implemented THE official Steal skill equation and game mechanics (basically 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). ultramage 2007-12-29 22:30:29 +00:00
  • bad3a0c04e Knockback now works through cells where there is a diagonal path, but no horizontal+vertical alternative (like two perpendicular icewalls with a gap where they 'join'). Some dead code removal in path.c. ultramage 2007-12-29 20:12:46 +00:00
  • 88b874c259 * Updated MVP drops to 11.2 - also increased speed of Lord of the Death Playtester 2007-12-28 20:11:32 +00:00
  • bbf60788db * Fixed a memory leak in memitemdata_to_sql. FlavioJS 2007-12-28 18:53:56 +00:00
  • 548e1bfd28 * Reverted a bad modification in clif_produceeffect from r11290. FlavioJS 2007-12-28 14:43:15 +00:00
  • d75169014a Removed an incorrect range check and fixed a copypaste typo which caused script engine errors / crashes (see r11984) ultramage 2007-12-27 18:45:33 +00:00
  • f16dcdf4d5 Re-added a missing mob last_thinktime timer initialization when a mob spawns, causing mob AI to freeze (mistake in r11964) ultramage 2007-12-27 18:00:29 +00:00
  • bd11cdda7a * Changed the configure script: - refined the mysql test (wasn't detecting 64 libraries compiled without -m64) - added a test for clock_gettime in -lrt (required for Debian) FlavioJS 2007-12-27 12:08:07 +00:00
  • b6c11a8282 * Corrected description of scope and npc variables in script_commands.txt. * 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. FlavioJS 2007-12-27 05:47:50 +00:00
  • 4dcf5bb0b9 * Tweeked the declaration and initialization defines for vectors. * 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. FlavioJS 2007-12-27 03:35:57 +00:00
  • a91d8177c6 Fixed the incorrect interpretation of the map-cell height information stored 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. ultramage 2007-12-26 21:51:58 +00:00
  • 7906017662 Moved distance-related functions to path.c/h ultramage 2007-12-26 17:18:57 +00:00
  • 0beb6653f5 Removed typo (it's correct on stable for some reason) Playtester 2007-12-26 17:01:18 +00:00
  • 8fd63e158e More official Veins spawns Playtester 2007-12-26 16:18:55 +00:00
  • ff14a65c53 Fixed two bugs in mob_db Playtester 2007-12-26 15:40:32 +00:00
  • 214feac880 * Fixed string variables dereferencing directly to the value instead of dereferencing to a copy of the value. (fixes bugreport:684 bugreport:641) FlavioJS 2007-12-26 00:55:27 +00:00
  • 67088ee436 some minor cleaning of player variable loading/saving ultramage 2007-12-24 22:51:43 +00:00
  • 7d92eb8e27 - corrected skill_abra.txt so it no longer has entries for passive skills. skotlex 2007-12-24 18:41:06 +00:00
  • 808d290ab6 Fixed a line in eAAC Quest Warper causing crashes. Paradox924X 2007-12-23 18:44:07 +00:00
  • 70ca76a770 * Added a generic vector implementation (dynamic array) based on defines. FlavioJS 2007-12-23 18:05:29 +00:00
  • 1d73a777c6 - Fixed horrible handling of skill_abra_db which leads to memory corruption (depending on the contents of yor abra_db.txt file) skotlex 2007-12-23 16:32:45 +00:00
  • 81e5c08f4f - Fixed warning about unused variable - 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. skotlex 2007-12-23 11:06:58 +00:00
  • f9c52aa0aa Fixed droprate overflows when going over rate 2000x ultramage 2007-12-22 21:24:40 +00:00
  • 146ca072bb - Corrected mob spawn utilization of the delay1/delay2 values (one is 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) skotlex 2007-12-22 18:08:37 +00:00
  • e0611bf8b5 Fixed server not always sending the correct level values to the client. ultramage 2007-12-22 17:30:49 +00:00
  • 3d545fd51a Cleaned the script conf files (see topic:171384 for details) ultramage 2007-12-22 17:26:15 +00:00
  • 08980b13b3 Fixed non-skill splash attacks showing 'unknown skill' (bugreport:665) ultramage 2007-12-22 16:05:47 +00:00
  • 66e434316b Fixed some typos in skill_db.txt, caused by r11949 (bugreport:657) ultramage 2007-12-22 14:35:37 +00:00
  • 0d011cc9b2 forgot path.h ._. ultramage 2007-12-22 13:05:51 +00:00
  • b3b275f24f Path code cleaning... * 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. ultramage 2007-12-22 13:00:48 +00:00
  • db3db2c2e5 Fixed mob AI code iterating over non-mob objects without checking, when monster_ai flag 0x20 is set (caused by r11943) Cleaned up macros that wrap unit_stop_attack() (bugreport:357) ultramage 2007-12-22 09:00:57 +00:00
  • 9a8739d28e Fixed some formatting glitches in atcommand.c ultramage 2007-12-19 22:15:27 +00:00
  • 6730ae32cc Fixed yet another buffer overflow, in @adopt (caused by a conflict between a mass replace in r2207 and very dumb variable reuse in r1316) ultramage 2007-12-19 20:56:37 +00:00
  • f218726d7d * Changes to the configure script. - fixed the 'pointers can be stored in ints' test not working - fixed the linker trying to build 64 bit executables with 32 bit code on x86_64 (missing -m32 flag in LDFLAGS) - made MYSQL_CFLAGS be built from the --include option to be more portable - made --with-mysql check if the optional argument is an executable file - make --with-pcre check if the optional argument is a directory - other minor changes FlavioJS 2007-12-19 17:17:29 +00:00
  • c5415465da - Corected the SC_MIRACLE + Anger code using the wrong skill level to calculate damage bonus. - Corrected SC_MIRACLE to trigger Bless of the Stars on all defeated mobs. skotlex 2007-12-19 16:41:56 +00:00
  • a6875211ef - Fixed skill name for skill 39 (MC_PUSHCART) - 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. skotlex 2007-12-19 13:10:48 +00:00
  • f32a0b4355 Corrected mistakes in script_commands.txt (bugreport:373) - reformatted the file header (less junk more info) - corrected "$" variable description saying that it always uses save/mapreg.txt - added missing OnMinute: reference - corrected OnLoadMapEvent saying 'loadmap' is the mapflag to use (should be 'loadevent') - fixed getcharid() script example doing the opposite of what it said it was doing - corrected getmonsterinfo() saying its parameter was an 'item id' - corrected attachrid() saying "use character id as parameter" when RIDs are account ids - placed commands from the 'RoVeRT' block to where they logically belong - re-phrased the documentation to npc timers ultramage 2007-12-19 12:04:42 +00:00
  • ff2ae0fe05 Fixed a possible buffer overflow in @partyoption code. ultramage 2007-12-18 22:06:36 +00:00
  • 4703cc8e2e * Updated respawn time interpretation according to latest kRO update - this first time is the "min respawn time" - the second time is the "variance" which is added to the "min respawn time" Playtester 2007-12-18 21:22:29 +00:00
  • ece12b6e42 - Cleaned up a bit the format of skill_db.txt (that comma next to the skill 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. skotlex 2007-12-18 15:45:48 +00:00
  • ace81763bc - removed redundant clif_hominfo line in merc_hom_dead (it was sent already from hom_damage) - Item usage is now blocked while hidden. - Moved the bladestop/berserk check from clif_parse_EquipItem to pc_equipitem skotlex 2007-12-18 15:01:18 +00:00
  • 11f67e9099 Fixed a glitch where the TXT charserver would not unlock castle.txt after creating it, thus preventing it from being saved correctly. ultramage 2007-12-18 14:46:19 +00:00
  • acad1ac4dd minor code tweaking ultramage 2007-12-18 09:13:01 +00:00
  • 5790585d16 * Added flag.server to indicate interserver sockets - replaces the previous way (setting 'client_addr' to 0) ultramage 2007-12-17 13:23:34 +00:00
  • e5b0ee65bf Removed the 'create athena.txt' step from athena-start as the server does that automatically. Removed the 'kill -9' action from athena-start, as it prevents the server from shutting down cleanly. If your process gets stuck, kill it manually (or add a hard-stop option). Fixed one wrong revision number in changelog. ultramage 2007-12-17 07:09:10 +00:00
  • 23d79b9943 Touched up Merchant quest Biliban Kafra function - Will now return to the previous script execution if all conditions fail. L0ne_W0lf 2007-12-16 23:38:41 +00:00
  • f53f2a4d05 Updated Louyang NPCs, quests, and warps. L0ne_W0lf 2007-12-16 22:51:19 +00:00
  • 86b5e0c6f6 Replaced the 'map name' castle data variable with the equivalent 'map index'. Optimized the castle lookup functions (direct dbmap enumeration, and no redundant operations inside the searching loop). ultramage 2007-12-16 21:00:36 +00:00
  • 950e40ed47 Some more guild code reformatting (moved do_init_guild() to the end of guild.c, cleaned up and documented the castle/guild/member lookup functions, fixed a compilation warning...) ultramage 2007-12-16 13:50:50 +00:00
  • d68cc86799 Fixed one query that I missed when doing r11915 ultramage 2007-12-15 07:57:36 +00:00
  • 1e6922174e Guardian hp handling code removal (see bugreport:342) - 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...) ultramage 2007-12-14 23:38:11 +00:00
  • 71efbff724 * Commited the quick fix "emps not respawning if the emp breaker logs off". (from r11630 bureport:369) FlavioJS 2007-12-14 10:57:38 +00:00
  • a772e3699d Added a precise and consistent tick() function for freebsd (see bugreport:240) (TODO: apply it to multiple platforms using an appropriate configure script) ultramage 2007-12-14 10:52:51 +00:00
  • aa83de997f - corrected Option_Xmas value in const.txt - Wand of Hermode now dispells buffs only of allies. - Fixed some null pointer checks in status_change_end. - Corrected a crashy Warning message. skotlex 2007-12-14 02:57:54 +00:00
  • 10bec9ed67 Fixed Big Defense Potion 10ea Box. (was giving small def pot.) L0ne_W0lf 2007-12-14 01:16:31 +00:00
  • 6ee5ac12f6 Maheo in Ice dungeon quest now uses setnpcdisplay. L0ne_W0lf 2007-12-14 01:07:46 +00:00
  • da3f962b22 * Minor fixes, guild manager, and a couple others. - bugreport:579, attempt at fixing bugreport:581 - Fixed a typo in the hunter quest. (Not noticable really.) L0ne_W0lf 2007-12-14 00:58:20 +00:00
  • 1d4d4feee2 Updated Ayothaya NPCs, Quests, and Warps. - Should also fix bugreport:586 (Footprint2 error) L0ne_W0lf 2007-12-14 00:38:41 +00:00
  • 822ba1ddd7 Fixed a mistake in r11895 where guild invitation data was being cleared too soon, causing a check to fail when confirmation arrived from the charserver. ultramage 2007-12-13 23:29:41 +00:00
  • 9bfc5b4425 * Fixed possible segmentation faults in the script engine. - some strings that can be freed outside the script engine were being pushed into the stack as constant strings FlavioJS 2007-12-13 21:42:38 +00:00
  • ef54f5d793 * Disabled ers until recent crashes are fixed. - ers entries are being corrupted, probably by modifying them after they are released or by releasing something else FlavioJS 2007-12-13 18:50:48 +00:00
  • 02d21582a6 * Abstracted the windows socket code so that all fd's are in the range [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). FlavioJS 2007-12-13 16:32:58 +00:00