From cc0878202c99c896f98918b219253eddcf9abf53 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 14 Jul 2009 10:14:35 -0600 Subject: Add netcode for specials --- src/net/ea/specialhandler.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/net/ea/specialhandler.cpp') 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 -- cgit v1.2.3-70-g09d2