From 502d5c892c92b4a71eceae1d275032100d42dd23 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Mon, 19 May 2008 15:07:45 +0000 Subject: Implemented NPC names. Implemented the theoretical possibility to have named monsters along the way. Note that the syntax of the LUA functions for creating NPCs has changed. --- src/game-server/state.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/game-server/state.cpp') diff --git a/src/game-server/state.cpp b/src/game-server/state.cpp index 03c6e3c1..a129e889 100644 --- a/src/game-server/state.cpp +++ b/src/game-server/state.cpp @@ -273,12 +273,14 @@ static void informPlayer(MapComposite *map, Character *p) { Monster *q = static_cast< Monster * >(o); enterMsg.writeShort(q->getSpecy()->getType()); + enterMsg.writeString(q->getName()); } break; case OBJECT_NPC: { NPC *q = static_cast< NPC * >(o); enterMsg.writeShort(q->getNPC()); + enterMsg.writeString(q->getName()); } break; default: -- cgit v1.2.3-60-g2f50