summaryrefslogtreecommitdiff
path: root/src/map/mob.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-14* Replaced remaining occurences of '-1' with 'INVALID_TIMER', where ↵ai4rei1-12/+12
appropriate (follow up to r12998). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14670 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-08- Removed extra slashes in item_db.txt (bugreport:4686)brianluau1-1/+1
- Removed punctuation from Time2Str script function. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14655 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-26* Fixed items, that get dropped at 100% chance, being reported in @iteminfo ↵ai4rei1-2/+2
as 'available in the shops only' (since/replaces r3482). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14627 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-12* Fixed homunculus_autoloot not working with skill/item granted drops and ↵ai4rei1-4/+4
loot (bugreport:4452, since r12203). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14589 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-12* Fixed killed monsters were assumed to be killed by homunculus only, if no ↵ai4rei1-5/+12
damage log entries were elligible for exp distribution, even when no homunculus took part in damage dealing (bugreport:4452, since r12203). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14588 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-12* Added enumeration for monster damage log field 'flag'.ai4rei1-11/+11
* Corrected wording of the setting homunculus_autoloot (since r12203). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14587 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-07* Reverted r14563, due to multiple issues which render the source ↵ai4rei1-11/+11
malfunctioning or uncompilable. To be redone later (bugreport:4627). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14567 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-07Changed almost all instances of sprintf() to snprintf().Paradox924X1-11/+11
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14563 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-02* Added support for IT_CASH to @iteminfo, logging filters and item drop rate ↵ai4rei1-0/+1
adjustment. Added 'show_picker.item_type'-specific IT_CASH value to it's description (follow up to r14549). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14550 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-02Monsters spawned with mob-generating items now have MD_ANGRY applied to them.L0ne_W0lf1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14540 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-01* Fixed NPC_TALK message being displayed with EOL character attached ↵ai4rei1-1/+19
(bugreport:4596, since r14270). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14535 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-01* Reverted change from r14533 and restored the 3rd field of mob_avail.txt ↵ai4rei1-2/+2
being optional (bugreport:4599, since r14532). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14534 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-01* Monster database reading now utilizes sv_readdb.ai4rei1-232/+99
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14532 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-30* Added a define for star gladiator feel/hate info array length (follow up ↵ai4rei1-2/+2
to r8721 and r11840). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14523 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-29* Insignificant code tweaks: removal of excess function declarations and ↵ai4rei1-1/+0
self assignments. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14520 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-28* Added clr_type enumeration for vanish effect constants.ai4rei1-8/+8
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14517 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-26Changed 'killerrid' and 'killedrid' from player vars to player params ↵ultramage1-3/+3
(bugreport:3249). Now stored in player session data, so they don't get saved on logout anymore. Added sql upgrade script 'upgrade_svn14507.sql' to remove the now unused player variables. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14507 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-21* Added enumeration RC2_* for mob data 'race2' (bugreport:4561).ai4rei1-1/+1
- Fixed race2-related bonus arrays using RC_MAX, rather than race2 maximum (since r6221, related r1277). - Fixed bSubRace2 lacking bounds check (since r1257). - Fixed bSubRace2 being documented as bSPSubRace2 (since r1257). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-11-17Added a missing argument to a warning containing a format specifier.Paradox924X1-1/+1
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14465 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-10-09Replaced all nullpo_retr() calls which returned 0 with nullpo_ret() calls.Paradox924X1-27/+27
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14414 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-08-22Follow up to r14392, forgot to remove the old snprintf.L0ne_W0lf1-1/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14393 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-08-22Mob chat now strips "#unique" names off monsters, curtosy of Daegaladh.L0ne_W0lf1-0/+4
Touched up the Airship scripts. Fixed up some content based on official files. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-08-03- Merged a few minor bugfixesSkotlex1-2/+2
- Merged in a bunch of the eA renewal support patch. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14368 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-10* Updated SC_ITEMBOOST to work similar to how it used to in r11351.L0ne_W0lf1-3/+4
- Will not boost drop rates past 90%, but ignores those already greater than. - Now uses val2 in the sc_start as the drop rate modifier, see item_db for example. * Corrected number of slots on several newer items. * Added HE Bubble Gum and adjusted existing gum bonuses. * Removed monster chat for porings npc_emotion skill use. * Updated several modes for monsters episode 13.1+ git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14336 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-02* Corrected warnings (and errors on some compilers) from r14327.L0ne_W0lf1-2/+2
* Actually added Manul/Splendide shop files from r14327. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14329 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-06-01* Implemented the Manuk and Splendide item status effects, thanks to Epoque.L0ne_W0lf1-0/+4
* Implemented Manuk and Splendide consumable items. * Added Splendide and Manuk merchants. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14327 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-03-24* Implemented NPC_TALK (Credit to SnakeDrak and Daegaladh)L0ne_W0lf1-3/+129
- Also added in the ability to use '@npctalkc' as a GM command. - Added supporting information to the databases. - Sneaking in a fix to the Refined Ballista. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14270 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-21Adjusted the 'rare drop announce' code to only process if there's a valid ↵ultramage1-2/+2
mvp_sd. This eliminates "??? won item" announces that occured when there were no damagelog entries and the killer src was NULL. Examples include @killmonster use, and cases where a homunculus gets killed while attacking, and its delayed damage kills the target. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14249 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-02-062010/02/06Inkfish1-2/+2
* Added official packet to display received expirience. (info provided by papkil) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14240 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-24* Fixed the logged damage from pets doesn't count when ↵Inkfish1-13/+19
'pet_attack_exp_to_master' is inactive. * Uncommented the codes that stop pc_bleeding when dead (shouldn't have been commented out.....) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14166 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-08Fixed the flag from my last commit not workingInkfish1-1/+2
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14137 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-08Fixed mob is removed from map right after his rebirth.Inkfish1-3/+5
Fixed dead event does not trigger when a mob has rebirth skill and dies for the second time. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14136 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-03Extended broadcast implementation:Gepard1-2/+2
- support for font formatting, like font-size - `bc_woe` flag to allow client-side filtering of WoE announcements - new broadcast packet 0x40C git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14120 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-11-03* Added battle_config.mob_slave_keep_target config option (monster.conf)L0ne_W0lf1-2/+2
- When yes (default) MVP slaves will always keep their prior targets. - When no the old behavior of switching to the closest target is enabled. * Updated MAX_MOB_DB to 4000 (Monsters are starting to appear in the 2k ranges) * Changed default respawn time (when 0) to 500 from 5000. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14119 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-09-13* Progressbar aborts when player is attacked.Inkfish1-3/+5
* Do not stand if damage is from yourself or has no source.(bugreport:3582) * Any mobs killed by party members within view range are taken into account in questlog. * 'unit_walktobl' now uses at least 1 as the range since 'unit_can_reach_bl' always sets the target coordinates 1 cell away from the target block. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14057 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-28Corrected two mistakes when I was trying to do some tricks...Inkfish1-3/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13974 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-28* Some more updates to Quest LogInkfish1-3/+3
- Implemented a new saving mechanism. Now they can be saved every 'autosave_time' in case the char-server is not online when you get a quest. - Improved 'changequest' code. - Increase MAX_QUEST_DB to 1200. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13973 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-25Rewrote Quest Log system.Inkfish1-0/+4
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13959 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-18- Fixed the config description for 'random_monster_checklv' (follow up to ↵brianluau1-1/+1
r13952). (bugreport:3378) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13954 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-18* Dead branches no longer check for players' level. (bugreport:3378)Inkfish1-1/+1
* The Lovers Card won't teleport anyone on PVP/WoE/BG maps. (bugreport:3371) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13952 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-11* Some updates for range check. (bugreport:3339)Inkfish1-2/+4
- Monsters shouldn't use skills if the target is within its attack range but is out of the skill range. - Monsters' skill range is no longer 9 by default. - Range for players' attacks and skills should always check for a circular area. - The range of Magnetic Earth is 2. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13944 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-19* Implemented script command "areamobuseskill" and skill NPC_INVINCIBLE and ↵Inkfish1-2/+0
NPC_INVINCIBLEOFF. (topic:217330) * Using items no longer cancels invincibility(but using target and ground skills through items does). (bugreport:3259) * Fixed Butterfly Wings not working during GVG. (bugreport:3264) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13897 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-13Changed a few sprintf's that had no format arguments to strcpy's.Paradox924X1-3/+3
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13887 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08Follow up to r13867, corrected the newly added MD_TARGETWEAK. Monsters with ↵L0ne_W0lf1-1/+1
this mode will now only target players five level LOWER than itself. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13869 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08- Added mob mode 0x4000, MD_TARGETWEAK: It makes aggro monsters only chase ↵skotlex1-1/+6
characters whose level is no higher than the monster's +5. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13867 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08- Fixed Swordsman Medallion to be usable by Star Gladiators.skotlex1-0/+1
- Fixed Thief Medallion to be usable by Ninjas. - Fixed Valorous Assassin's Damascus to reduce the strength of its effect. - Corrected the AUTOLOOT_DISTANCE code not checking for map changes. - Fixed clif_change_option's "unknown field" to be the character's karma. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13864 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-06-08Fixed bHPGainValue and bSPGainValue worked on all types of attacks and was ↵Inkfish1-7/+0
only activated on mob's death.(bugreport:3193) [Inkfish] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13863 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-25Now we can use 'boss_monster' to summon whatever monsters that need to be ↵Inkfish1-0/+1
radared by Convex Mirror. (bugreport:2653) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-20* Now fiberlocking a fiberlocked target doesn't renew the timer but instead ↵Inkfish1-2/+2
increases its fireweakness [Inkfish] - This makes doublecasting firebolts on a double fiberlocked target having double damage from both 2 bolts possible = =(bugreport:3061) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13799 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-17- Fixed a couple of crashes that could ensue from the last memory corruption ↵skotlex1-1/+4
fix to free'ing clones. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13787 54d463be-8e91-2dee-dedb-b68131a5f0ec