summaryrefslogtreecommitdiff
path: root/src/net/eathena/skillhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-11 15:51:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-11 15:51:56 +0300
commitf73a170389adb02566e54368c6fe8b5bee0e57d9 (patch)
tree1606fcc8f97b61a9a75555f746deee5acb7be5ee /src/net/eathena/skillhandler.cpp
parent96b2fa0e2e6faca8d5ce6a90a0dd240bf76e8eca (diff)
downloadManaVerse-f73a170389adb02566e54368c6fe8b5bee0e57d9.tar.gz
ManaVerse-f73a170389adb02566e54368c6fe8b5bee0e57d9.tar.bz2
ManaVerse-f73a170389adb02566e54368c6fe8b5bee0e57d9.tar.xz
ManaVerse-f73a170389adb02566e54368c6fe8b5bee0e57d9.zip
eathena: add partial support for packet SMSG_PLAYER_SKILL_AUTO_SPELLS 0x01cd.
Diffstat (limited to 'src/net/eathena/skillhandler.cpp')
-rw-r--r--src/net/eathena/skillhandler.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/skillhandler.cpp b/src/net/eathena/skillhandler.cpp
index d92fd697d..309a66c70 100644
--- a/src/net/eathena/skillhandler.cpp
+++ b/src/net/eathena/skillhandler.cpp
@@ -31,6 +31,7 @@
#include "gui/windows/skilldialog.h"
+#include "net/eathena/menu.h"
#include "net/eathena/messageout.h"
#include "net/eathena/protocol.h"
@@ -67,6 +68,7 @@ SkillHandler::SkillHandler() :
SMSG_PLAYER_SKILL_PRODUCE_EFFECT,
SMSG_SKILL_UNIT_UPDATE,
SMSG_SKILL_ARROW_CREATE_LIST,
+ SMSG_PLAYER_SKILL_AUTO_SPELLS,
0
};
handledMessages = _messages;
@@ -137,6 +139,10 @@ void SkillHandler::handleMessage(Net::MessageIn &msg)
processSkillArrowCreateList(msg);
break;
+ case SMSG_PLAYER_SKILL_AUTO_SPELLS:
+ processSkillAutoSpells(msg);
+ break;
+
default:
break;
}
@@ -455,4 +461,14 @@ void SkillHandler::processSkillArrowCreateList(Net::MessageIn &msg)
msg.readInt16("item id");
}
+void SkillHandler::processSkillAutoSpells(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+
+ for (int f = 0; f < 7; f ++)
+ msg.readInt32("skill id");
+
+ menu = MenuType::AutoSpell;;
+}
+
} // namespace EAthena