summaryrefslogtreecommitdiff
path: root/src/map/mob.h
AgeCommit message (Collapse)AuthorFilesLines
2020-04-05Increase MAX_MOB_DB to 22000Kenpachi Developer1-1/+1
Increased MAX_MOB_DB to 22000 to support new mobs/pets with IDs 20000+. (For example NIGHTMARE_TERROR_H (20373) and WANDER_MAN_H (20420).) This also eliminates the conflict between job IDs and clone IDs. (Issue #303)
2020-02-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer1-4/+5
(non-permanent monster spawns) [Issue #2530] Mobs spawned by NPC will be removed on @reloadnpc, @unloadnpc, and @unloadnpcfile. Additionally OnNPCUnload NPC label was added, to revert other changes made by NPC. For example set/removed mapflags or added mob drops.
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2019-12-15Merge pull request #2572 from Asheraf/mobviewdatadbHaru1-1/+2
Add support for overriding default view data in mob database
2019-10-30Drop the usage of mob_availAsheraf1-1/+1
2019-10-30Add support for overriding default view data in mob databaseAsheraf1-0/+1
2019-10-22Fix Steal accidentally being able to steal cards from certain mobsHaru1-1/+0
Cards are now blocked by item type rather than item drop slot position, since cards no longer have a fixed position in the drop list (regression in ed72a947a6c97804c1eef5b80bfa49d99f7d7586) Signed-off-by: Haru <haru@dotalux.com>
2019-10-18Make slave mobs react to master's chase targetskyleo1-0/+1
This fixes slaves not chasing after master's chase target, when master was immobilized by an Ankle Snare for example midway.
2019-07-28Merge pull request #2510 from Emistry/mobdb_dmg_taken_rateHaru1-0/+2
Update mob_db - DamageTakenRate field
2019-07-24Update mob_db - DamageTakenRate fieldEmistry Haoyan1-0/+2
- adjust the damage taken by monster. (default = `100 = 1x`) - ref: https://github.com/idathena/trunk/commit/e267d2e2dada6196b479a6f2f35e9d25291ef22b
2019-07-10Update atreloadmob to update living mobsEmistry Haoyan1-0/+1
- fix living mobs aren't updated by latest mob_db upon updated. from https://github.com/rathena/rathena/issues/3783
2019-04-20Moved mob drop data to its own structureGuilherme G. Menaldo1-2/+11
2019-04-20Added support for mobs to drop items with Random OptionsGuilherme G. Menaldo1-3/+43
2019-02-11Change type for class variables from short to intAndrei Karas1-1/+1
2018-07-19Add new constant MAX_ITEM_ID for maximum allowed item id.Andrei Karas1-0/+8
For clients older than 2018-07-04 Re maximum supported and enabled id is 65535 (0xffff). For newer clients miximum id is 2147483648. Enabled by default 131072 (0x20000)
2018-05-312012-2018 !Maytichai Saowa1-1/+1
2018-05-01Replace "--ja--" and "--en--" with constants (source only)Haru1-0/+3
- Use `DEFAULT_MOB_NAME` instead of a literal "--en--" - Use `DEFAULT_MOB_JNAME` instead of a literal "--ja--" Signed-off-by: Haru <haru@dotalux.com>
2018-04-19Convert mob_skill_db into libconf formatAsheraf1-1/+3
2018-04-08Added delay to tomb spawnGuilherme G. Menaldo1-0/+2
2018-01-25Implementation of Official Clan SystemMurilo Pereti Tavares1-0/+1
All official features work including the autokick for inactive members And the system is completely customizable.
2017-12-23Show item drop effects only if monster dropping non looted items.Andrei Karas1-0/+1
2017-10-30Add monster spawn boss flag for miniboss: miniboss_monsterAndrei Karas1-1/+7
also fix boss_monster flag for works as mvp and not like mini boss. unhide boss flag if hp bar disabled.
2016-10-28Fixed copyright year for 2016Lemongrass31101-1/+1
2016-02-28Changed mob mode field to 32 bit, for future expansionHaru1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-02-17Removed unnecessary typedefs from libconfigHaru1-8/+8
Signed-off-by: Haru <haru@dotalux.com>
2016-01-29Modified Mob DB loader to behave like the Item DB loaderHaru1-6/+8
- Separated load and validation logic. - The load/validation functions now return the loaded mob ID Signed-off-by: Haru <haru@dotalux.com>
2016-01-09Corrected various zero-argument function definitionsHaru1-1/+1
- Functions should always specify their arguments, even if they take none. In C, not specifying arguments is different than specifying (void). Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Poring to the mob_id enumHaru1-0/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Zanzou mob ID to the mob_id enumHaru1-0/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Summon Legion-related monsters to the mob_id enumHaru1-0/+4
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Alchemist-related monsters to the enum mob_idHaru1-0/+17
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Added Splendide, Manuk and Mora mobs to the mob_id enumHaru1-0/+27
Signed-off-by: Haru <haru@dotalux.com>
2015-12-28Standardized (source) mob_id enumHaru1-3/+79
- MOBID_ constant names now follow the Mob DB spritenames. - The following names were changed: * MOBID_EMPERIUM => MOBID_EMPELIUM * MOBID_TREAS01 => MOBID_TREASURE_BOX1 * MOBID_TREAS40 => MOBID_TREASURE_BOX40 * MOBID_BARRICADE1 => MOBID_BARRICADE * MOBID_BARRICADE2 => MOBID_BARRICADE_ * MOBID_GUARIDAN_STONE1 => MOBID_S_EMPEL_1 * MOBID_GUARIDAN_STONE2 => MOBID_S_EMPEL_2 * MOBID_FOOD_STOR => MOBID_OBJ_A * MOBID_BLUE_CRYST => MOBID_OBJ_A2 * MOBID_PINK_CRYST => MOBID_OBJ_B2 * MOBID_TREAS41 => MOBID_TREASURE_BOX41 * MOBID_TREAS49 => MOBID_TREASURE_BOX49 - Added several missing items Signed-off-by: Haru <haru@dotalux.com>
2015-12-23Update:Jedzkie1-3/+3
- Rename BLUE_CRYST and PINK_CRYST to BLUE_CRYSTAL and PINK_CRYSTAL - Rename FOOD_STOR to FOOD_STORAGE - Rename TREAS01, TREAS40, TREAS41, TREAS49 to TREASURE_01, TREASURE_40, TREASURE_41, TREASURE_49
2015-12-15Added GPL-compliant header to all sources and build scriptsHaru1-4/+20
Signed-off-by: Haru <haru@dotalux.com>
2015-12-14Added official effect of Mora Berry.Jedzkie1-5/+6
Signed-off-by: Haru <haru@dotalux.com>
2015-10-22Removed support for the deprecated SQL item, mob, mob_skill databases.Haru1-1/+0
Follow-up to 84e02ac28fbb15c58d0a0f8a916b49663198b05b Signed-off-by: Haru <haru@dotalux.com>
2015-10-20Fixed an issue preventing the mob_db2 from being loadedHaru1-1/+1
Follow-up to 3feef93 (thanks to kyeme) Signed-off-by: Haru <haru@dotalux.com>
2015-10-19Add support for mob_db in conf format.Andrei Karas1-3/+9
2015-10-11Cleanup of the HPluginData implementation (second part)Haru1-6/+2
- Changed the hplugin_data_store's array into a VECTOR. Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Cleanup of the HPluginData implementation (First part)Haru1-5/+4
- Several explicit casts are removed, to have a slightly better type-checking at compile time. - A destructor function is provided, to remove code duplication. Signed-off-by: Haru <haru@dotalux.com>
2015-08-15HPM compatibility improvementsHaru1-5/+5
Improved compatibility, portability and standards conformance. - Since it is not possible to portably and reliably re-use the core's symbols in plugins, symbols are no longer exported unless explicitly required, in the UNIX builds. This mimics the Windows behavior and adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas for making this possible. - For convenience, it is no longer necessary to call GET_SYMBOL, since the plugin will automatically import all the available symbols when it's loaded, depending on the included headers. - Plugins are now supposed to include the "common/hercules.h" header before including anything else. Incluing common/HPMi.h, common/cbasetypes.h or conf/core.h is no longer necessary, as those are guaranteed to be automatically included by hercules.h. - HPM API version bumped to 1.1. Signed-off-by: Haru <haru@dotalux.com>
2015-06-19Cleaned up some #includesHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-06-19Removed ".." from include directivesHaru1-5/+5
- Include directives are now directory-independent. - This will allow building plugins from other directories in future. Signed-off-by: Haru <haru@dotalux.com>
2015-06-01Replaced some of the hardcoded values with constants (map)Haru1-13/+20
- Replaced several hardcoded values with the appropriate enums. - Added documentation for some hardcoded values that haven't been replaced by enums (yet) - Minor code legibility improvements. Signed-off-by: Haru <haru@dotalux.com>
2015-01-12Blocked compilation of plugins that use unavailable functionsHaru1-0/+2
- Rather than failing at runtime, plugins that try to access non-interfaced, unavailable functions or variables, will now show an error at compile-time. Signed-off-by: Haru <haru@dotalux.com>
2014-12-21Move mob_db deletion into separate function.Andrei Karas1-0/+1
2014-12-19Add struct item_data, mob_db and mob_data for pluginsAnnieRuru1-0/+8
http://hercules.ws/board/topic/7161-plugin-missing-hook-to-struct-item-data-and-mob-data/
2014-11-24* 1st Transcendent Spirit, monster position lag fixesMichieru1-0/+9
- 1st Transcendent Spirit will now work as on official servers (#116) * The max total stat that is granted by the skill is now BaseLevel-10 with a maximum of 50 instead of always 50 * It will now work as Marionette Control and calculate the bonus at cast time rather than overwrite all existing bonuses * Agi Up and Blessing will now cancel the soul link - Fixed various problems that caused position lags on the client (#118) * Added a define ACTIVEPATHSEARCH in mob.c; if active (default and official), monsters will only grab targets if the walk path to the target is shorter or equal their search range; search range depends on whether the monster is moving or not (range2 for standing monsters and range3 for walking monsters); this requires a lot of CPU load, if it causes trouble, just comment the define for old behavior * Fixed a bug that made monsters display "irregular movement with position lag" continuously when a status change ended that changed their walk speed * OFFICIAL_WALKPATH now also applies to monsters * If the path search fails while a unit is already moving, we will now issue of fixpos packet so that the unit does not only stop moving on the server, but also on the client * Direction fixes - Updated the config setting attack_direction_change from 15 to 0 (official value); that means that a unit's direction will no longer change when it attacks; knock-back effects from e.g. Firewall will depend on the last direction the target walked into instead (bugreport:1322) - Ensured that the default direction of a monster is always "north", so that immobile monsters will now always be knocked back to the south by e.g. Firewall on default settings, unless a skill like e.g. Backstab changes their direction (bugreport:1322) - Fixed a bug that stopped characters server-sided and caused position lag when closing a skill menu * Magnum Break damage fixed - Targets two cells away will now only take 100%+10%*level damage (#108)
2014-11-16Whitespace cleanup (no code changes)Haru1-6/+6
This includes, and is not limited to: mixed or wrong indentation, excess whitespace (horizontal and vertical), misalignment, trailing spaces. Signed-off-by: Haru <haru@dotalux.com>