summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-25 13:05:59 +0000
committerInkfish <Inkfish@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-05-25 13:05:59 +0000
commit576f9ab276404d5a77e44e0983846270d0c4422a (patch)
tree280e08725ba54de6460d8eccda9d2f6043e06217 /src/map/npc.c
parentc966d1aaddd3f0fe455f6ba2bd829f26b75382eb (diff)
downloadhercules-576f9ab276404d5a77e44e0983846270d0c4422a.tar.gz
hercules-576f9ab276404d5a77e44e0983846270d0c4422a.tar.bz2
hercules-576f9ab276404d5a77e44e0983846270d0c4422a.tar.xz
hercules-576f9ab276404d5a77e44e0983846270d0c4422a.zip
Now we can use 'boss_monster' to summon whatever monsters that need to be radared by Convex Mirror. (bugreport:2653)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13813 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 042da1a0c..97e54a8fe 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2485,6 +2485,8 @@ static const char* npc_parse_mob(char* w1, char* w2, char* w3, char* w4, const c
memset(&mob, 0, sizeof(struct spawn_data));
+ mob.boss = !strcmpi(w2,"boss_monster");
+
// w1=<map name>,<x>,<y>,<xs>,<ys>
// w4=<mob id>,<amount>,<delay1>,<delay2>,<event>
if( sscanf(w1, "%31[^,],%d,%d,%d,%d", mapname, &x, &y, &xs, &ys) < 3
@@ -3023,7 +3025,7 @@ void npc_parsesrcfile(const char* filepath)
{
p = npc_parse_duplicate(w1,w2,w3,w4, p, buffer, filepath);
}
- else if( strcmpi(w2,"monster") == 0 && count > 3 )
+ else if( (strcmpi(w2,"monster") == 0 || strcmpi(w2,"boss_monster") == 0) && count > 3 )
{
p = npc_parse_mob(w1, w2, w3, w4, p, buffer, filepath);
}