diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-04-03 13:35:18 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-04-04 16:28:11 +0200 |
commit | 3a05c2d4e4f2229516182ebceea880d227b65708 (patch) | |
tree | d3a93585e55f1cac9a188ee0bb73b77a1db820d0 /src/net/manaserv/specialhandler.cpp | |
parent | 31010d6d3ba6600860a9f6dd925ac3d8e3f2c830 (diff) | |
download | mana-3a05c2d4e4f2229516182ebceea880d227b65708.tar.gz mana-3a05c2d4e4f2229516182ebceea880d227b65708.tar.bz2 mana-3a05c2d4e4f2229516182ebceea880d227b65708.tar.xz mana-3a05c2d4e4f2229516182ebceea880d227b65708.zip |
Synced specials to latest manaserv changes
Reviewed-by: bjorn.
Diffstat (limited to 'src/net/manaserv/specialhandler.cpp')
-rw-r--r-- | src/net/manaserv/specialhandler.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/net/manaserv/specialhandler.cpp b/src/net/manaserv/specialhandler.cpp index fa98cd48..4cd0ce2b 100644 --- a/src/net/manaserv/specialhandler.cpp +++ b/src/net/manaserv/specialhandler.cpp @@ -44,19 +44,27 @@ void SpecialHandler::handleMessage(Net::MessageIn &msg) void SpecialHandler::use(int id) { - MessageOut msg(PGMSG_USE_SPECIAL); + MessageOut msg(PGMSG_USE_SPECIAL_ON_BEING); msg.writeInt8(id); + msg.writeInt16(0); gameServerConnection->send(msg); } void SpecialHandler::use(int id, int level, int beingId) { - // TODO + MessageOut msg(PGMSG_USE_SPECIAL_ON_BEING); + msg.writeInt8(id); + msg.writeInt16(beingId); + gameServerConnection->send(msg); } void SpecialHandler::use(int id, int level, int x, int y) { - // TODO + MessageOut msg(PGMSG_USE_SPECIAL_ON_POINT); + msg.writeInt8(id); + msg.writeInt16(x); + msg.writeInt16(y); + gameServerConnection->send(msg); } void SpecialHandler::use(int id, const std::string &map) |