diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-23 16:51:13 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-07-23 16:51:13 +0000 |
commit | 430bbe292eb51b3f3bb7b356d8b218b28bed0ff4 (patch) | |
tree | afe53ed4e2978408a0082ec974f0b9dfab32a00c /src/net/beinghandler.cpp | |
parent | a30bb2e92405fb379db298f2996e1c0ecd3f4bbd (diff) | |
download | mana-430bbe292eb51b3f3bb7b356d8b218b28bed0ff4.tar.gz mana-430bbe292eb51b3f3bb7b356d8b218b28bed0ff4.tar.bz2 mana-430bbe292eb51b3f3bb7b356d8b218b28bed0ff4.tar.xz mana-430bbe292eb51b3f3bb7b356d8b218b28bed0ff4.zip |
Converted NPC code to new server.
Diffstat (limited to 'src/net/beinghandler.cpp')
-rw-r--r-- | src/net/beinghandler.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/net/beinghandler.cpp b/src/net/beinghandler.cpp index 51609b1d..bce2c3b8 100644 --- a/src/net/beinghandler.cpp +++ b/src/net/beinghandler.cpp @@ -486,13 +486,24 @@ BeingHandler::handleBeingEnterMessage(MessageIn &msg) { int monsterId = msg.readShort(); Being *being; - being = beingManager->createBeing(id, 1002 + monsterId); + being = beingManager->createBeing(id, monsterId); being->setWalkSpeed(150); // TODO being->mX = px; being->mY = py; being->setDestination(px, py); being->setAction(action); } break; + + case OBJECT_NPC: + { + int npcId = msg.readShort(); + Being *being; + being = beingManager->createBeing(id, npcId); + being->mX = px; + being->mY = py; + being->setDestination(px, py); + being->setAction(action); + } break; } } |