summaryrefslogtreecommitdiff
path: root/src/map/mob.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-08Change returning error-code in unit->walktoxy to obey code-style guidelinesskyleo1-3/+3
2020-02-09Merge pull request #2622 from Kenpachi2k13/mob_viewdata_fixHaru1-0/+4
Make mob DB field ViewData->HairStyleId defaulting to 1 instead of 0.
2020-02-09Added an initial dmg_taken_rate value to clone spawns.Kenpachi Developer1-0/+1
Mobs, spawned by mob_clone_spawn() function were invulnerable, because their dmg_taken_rate was never set and thus became 0. Now, dmg_taken_rate will be set 100 to remove that invulnerability.
2020-02-09Applied code style and added some minor code improvements to src/map/mob.c.Kenpachi Developer1-337/+472
2020-02-09Applied code style and some minor improvements.Kenpachi Developer1-19/+25
* Added new message 1517 (Script could not be unloaded.) * Applied code style to several functions I touched. * Added some minor improments to the function where I applied code style.
2020-02-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer1-10/+11
(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-02-01Make mob DB field ViewData->HairStyleId defaulting to 1 instead of 0.Kenpachi Developer1-0/+4
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-38/+74
Add support for overriding default view data in mob database
2019-11-17Merge pull request #2567 from MishimaHaruna/steal-fixesHaru1-0/+8
Fix some issues in the Steal skill
2019-11-03Fix unintended nullpo errorsskyleo1-7/+6
Follow up to 6608308
2019-10-30Drop the usage of mob_availAsheraf1-38/+7
2019-10-30Add support for overriding default view data in mob databaseAsheraf1-0/+67
2019-10-22Fix Steal not showing HP bar right away but only when the target ↵Haru1-0/+8
leaves/enters sight range Signed-off-by: Haru <haru@dotalux.com>
2019-10-20Merge pull request #2550 from skyleo/cliff_aggro_ranged_no_attack_fixHaru1-7/+9
Fix aggressive ranged mobs not attacking from above a cliff
2019-10-20Merge pull request #2547 from guilherme-gm/201910-dehardcode-dbHaru1-3/+1
Dehardcode DB files path
2019-10-19Merge pull request #2561 from skyleo/slave_anklesnare_fixHaru1-36/+64
Make slave mobs react to master's chase target
2019-10-18Remove trailing whitespaceskyleo1-15/+15
2019-10-18Make slave mobs react to master's chase targetskyleo1-21/+49
This fixes slaves not chasing after master's chase target, when master was immobilized by an Ankle Snare for example midway.
2019-10-05Dehardcodes db files base path so the db folder can be easily movedGuilherme Menaldo1-3/+1
2019-10-05Fix aggressive ranged mobs not attacking from above a cliffskyleo1-7/+9
Signed-off-by: Haru <haru@dotalux.com>
2019-10-02Moved hardcoded messages from source to messages.confDastgir1-2/+2
Fixes #1282
2019-08-26Prevent players from getting stuck when an MVP respawns while talking to its ↵Haru1-0/+8
tombstone Signed-off-by: Haru <haru@dotalux.com>
2019-07-30Fix missing file path in console.Emistry Haoyan1-3/+3
- show file path
2019-07-28Merge pull request #2510 from Emistry/mobdb_dmg_taken_rateHaru1-0/+7
Update mob_db - DamageTakenRate field
2019-07-28Merge pull request #2505 from Emistry/autoloot_adjustHaru1-1/+1
Added battle config autoloot_adjust
2019-07-24Update mob_db - DamageTakenRate fieldEmistry Haoyan1-0/+7
- adjust the damage taken by monster. (default = `100 = 1x`) - ref: https://github.com/idathena/trunk/commit/e267d2e2dada6196b479a6f2f35e9d25291ef22b
2019-07-14Added battle config autoloot_adjustEmistry Haoyan1-1/+1
Added battle config autoloot_adjust that allows autoloot to take player drop penalties and bonuses into account.
2019-07-10Update atreloadmob to update living mobsEmistry Haoyan1-0/+25
- fix living mobs aren't updated by latest mob_db upon updated. from https://github.com/rathena/rathena/issues/3783
2019-05-30Adds Option DB and Option Drop Groups DB to be loaded on minimal modeGuilherme Menaldo1-1/+2
2019-05-06Fixes a nullpo on MVP dropsGuilherme Menaldo1-1/+2
2019-04-20Moved mob drop data to its own structureGuilherme G. Menaldo1-5/+1
2019-04-20Added support for mobs to drop items with Random OptionsGuilherme G. Menaldo1-8/+349
2019-04-07Rename clif_charnameack into clif_blname_ackAndrei Karas1-4/+4
2018-11-20Change short group to bool is_group in s_add_dropskyleo1-2/+2
current checks for empty entries assumed that if id and group is 0 that it is empty, while in fact ITMCHAIN_ORE has group 0 as value, for easier checks and more aesthetic code short group has been replaced, id's are now always written into short id and bool is_group decides if it's an item or a group.
2018-09-02Fixed issue #2201Dastgir1-1/+2
Killing clone will not trigger achievement
2018-08-27Fix some issues reported by gcc-8's address sanitizerHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2018-07-30always set the type when doing script->add_strgumi1-2/+2
2018-07-24Implementation of the official Achievement System.smokexyz1-0/+7
Source: http://ro.gnjoy.com/news/update/View.asp?seq=163&curpage=1 Script Commands - ``` achievement_progress(<ach_id>,<obj_idx>,<progress>,<incremental?>{,<char_id>}); ``` Includes an achievement_db.conf generator that reads from the item_db, mob_db (server side) and achievement_list.lub files to determine valid achievement entries based on item/monster availability. Achievements containing unsupported entries are commented out. This feature, although renewal-only in official servers, is capable of being used in pre-renewal mode on Hercules. Does not include the title system yet. A big thanks to - @MishimaHaruna for constantly reviewing. @4144 for all the support. @Asheraf for a lot of official information. Co-authored-by: "Dastgir" <dastgirp@gmail.com>
2018-07-19Add new constant MAX_ITEM_ID for maximum allowed item id.Andrei Karas1-11/+64
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-07-01Change functions to static where possible (Part 4 - map)Haru1-110/+153
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
2018-06-02Merge pull request #2055 from trojal/patch-1Haru1-1/+1
Don't overwrite mob.range with Inherit:true
2018-05-31Don't overwrite mob.range with Inherit:truetrojal1-1/+1
Using mob_db2 and Inherit: true shouldn't override the base mob's range if it's not included.
2018-05-312012-2018 !Maytichai Saowa1-1/+1
2018-05-15fix a wrong iterator used for mob skill db parsingAsheraf1-4/+4
2018-05-01Replace "--ja--" and "--en--" with constants (source only)Haru1-11/+10
- 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-208/+177
2018-04-08Added delay to tomb spawnGuilherme G. Menaldo1-2/+48
2017-12-23Show item drop effects only if monster dropping non looted items.Andrei Karas1-4/+9
2017-12-23Add support for new drop packet 0xadd for zero clientsAsheraf1-2/+2