diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 23:02:12 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-31 23:02:12 -0600 |
commit | ea4cfda4712ac31326b64ddf9dff61e448aeed28 (patch) | |
tree | 2bff17828862ebed77d44e65729a2d2944602ba9 /src/net/ea/skillhandler.cpp | |
parent | 78e67de6f70aab502a85578264b60493a818b39f (diff) | |
download | mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.tar.gz mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.tar.bz2 mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.tar.xz mana-ea4cfda4712ac31326b64ddf9dff61e448aeed28.zip |
Implement a few more handlers for eAthena
Party, skill, and trade handlers made for eAthena.
Diffstat (limited to 'src/net/ea/skillhandler.cpp')
-rw-r--r-- | src/net/ea/skillhandler.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/ea/skillhandler.cpp b/src/net/ea/skillhandler.cpp index 477f96bf..0475c057 100644 --- a/src/net/ea/skillhandler.cpp +++ b/src/net/ea/skillhandler.cpp @@ -24,6 +24,7 @@ #include "net/ea/protocol.h" #include "net/messagein.h" +#include "net/messageout.h" #include "log.h" @@ -65,6 +66,8 @@ /** should always be zero if failed */ #define SKILL_FAILED 0x00 +SkillHandler *skillHandler; + SkillHandler::SkillHandler() { static const Uint16 _messages[] = { @@ -73,6 +76,7 @@ SkillHandler::SkillHandler() 0 }; handledMessages = _messages; + skillHandler = this; } void SkillHandler::handleMessage(MessageIn &msg) @@ -207,3 +211,9 @@ void SkillHandler::handleMessage(MessageIn &msg) break; } } + +void SkillHandler::up(int skillId) +{ + MessageOut outMsg(CMSG_SKILL_LEVELUP_REQUEST); + outMsg.writeInt16(skillId); +} |