diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-05-19 15:07:45 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-05-19 15:07:45 +0000 |
commit | 502d5c892c92b4a71eceae1d275032100d42dd23 (patch) | |
tree | 81f29c3ce0bda3d2a4221a485c9695d4e56eb568 /src/game-server/state.cpp | |
parent | 4b4b6d0865f5f04f73e04926fb9e6b610f0a71a7 (diff) | |
download | manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.tar.gz manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.tar.bz2 manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.tar.xz manaserv-502d5c892c92b4a71eceae1d275032100d42dd23.zip |
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.
Diffstat (limited to 'src/game-server/state.cpp')
-rw-r--r-- | src/game-server/state.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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: |