summaryrefslogtreecommitdiff
path: root/src/game-server/monstermanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/monstermanager.cpp')
-rw-r--r--src/game-server/monstermanager.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game-server/monstermanager.cpp b/src/game-server/monstermanager.cpp
index 426a2249..080dcbfc 100644
--- a/src/game-server/monstermanager.cpp
+++ b/src/game-server/monstermanager.cpp
@@ -259,6 +259,12 @@ void MonsterManager::reload()
}
}
+ else if (xmlStrEqual(subnode->name, BAD_CAST "script"))
+ {
+ xmlChar *filename = subnode->xmlChildrenNode->content;
+ std::string val = (char *)filename;
+ monster->setScript(val);
+ }
}
monster->setDrops(drops);