From 7bb91031c6b244781f6637dc87dafa5835326888 Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 3 Sep 2007 03:35:42 +0000 Subject: - Merged @whereis from my server (displays normal spawn maps for given mobs). This command should be working correctly considering I've been using it since July. I was meant to merge it as soon as I got my hard-drive back, but I kinda forgot @_@ - bonus3 autospell (and autospell when hit) will change the target to self when the skill to be casted is inf&4 (self skill). - Corrected script homevolution not making the homunculus /swt if it is invoked when not loyal. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11110 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mob.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index f3cec671a..01679708b 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -3991,6 +3991,14 @@ void mob_reload(void) mob_readdb_race(); } +void mob_clear_spawninfo() +{ //Clears spawn related information for a script reload. + int i; + for (i = 0; i < MAX_MOB_DB; i++) + if (mob_db_data[i]) + memset(&mob_db_data[i]->spawn,0,sizeof(mob_db_data[i]->spawn)); +} + /*========================================== * Circumference initialization of mob *------------------------------------------*/ -- cgit v1.2.3-60-g2f50