diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-07-14 10:14:35 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-07-14 10:33:44 -0600 |
commit | cc0878202c99c896f98918b219253eddcf9abf53 (patch) | |
tree | adced066461c9f987d3e05dba50617f4e8ee3395 /src/net/ea/specialhandler.cpp | |
parent | 6d3e53146ba15e4d90670db3067fa7f1a67034e1 (diff) | |
download | mana-cc0878202c99c896f98918b219253eddcf9abf53.tar.gz mana-cc0878202c99c896f98918b219253eddcf9abf53.tar.bz2 mana-cc0878202c99c896f98918b219253eddcf9abf53.tar.xz mana-cc0878202c99c896f98918b219253eddcf9abf53.zip |
Add netcode for specials
Diffstat (limited to 'src/net/ea/specialhandler.cpp')
-rw-r--r-- | src/net/ea/specialhandler.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/net/ea/specialhandler.cpp b/src/net/ea/specialhandler.cpp index e75ed1bb..218ff795 100644 --- a/src/net/ea/specialhandler.cpp +++ b/src/net/ea/specialhandler.cpp @@ -230,17 +230,26 @@ void SpecialHandler::use(int id) void SpecialHandler::use(int id, int level, int beingId) { - // TODO + MessageOut outMsg(CMSG_SKILL_USE_BEING); + outMsg.writeInt16(level); + outMsg.writeInt16(id); + outMsg.writeInt16(beingId); } void SpecialHandler::use(int id, int level, int x, int y) { - // TODO + MessageOut outMsg(CMSG_SKILL_USE_POSITION); + outMsg.writeInt16(level); + outMsg.writeInt16(id); + outMsg.writeInt16(x); + outMsg.writeInt16(y); } void SpecialHandler::use(int id, const std::string &map) { - // TODO + MessageOut outMsg(CMSG_SKILL_USE_MAP); + outMsg.writeInt16(id); + outMsg.writeString(map, 16); } } // namespace EAthena |