From dbc3b324a0c5dcb1a0ee29b289e71423a06e85fd Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 8 Jun 2012 00:43:48 +0300 Subject: Add to npc option targetSelection to allow/disallow npc selection. --- src/resources/npcdb.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/resources/npcdb.cpp') diff --git a/src/resources/npcdb.cpp b/src/resources/npcdb.cpp index 832fa26d6..26f5e53cb 100644 --- a/src/resources/npcdb.cpp +++ b/src/resources/npcdb.cpp @@ -38,6 +38,8 @@ namespace bool mLoaded = false; } +extern int serverVersion; + void NPCDB::load() { if (mLoaded) @@ -70,6 +72,12 @@ void NPCDB::load() BeingInfo *currentInfo = new BeingInfo; + if (serverVersion > 0) + { + currentInfo->setTargetSelection(XML::getProperty( + npcNode, "targetSelection", true)); + } + currentInfo->setTargetCursorSize(XML::getProperty(npcNode, "targetCursor", "medium")); -- cgit v1.2.3-60-g2f50