From 3702c703ff49f7ca21c5fa6c789cab12cab282b9 Mon Sep 17 00:00:00 2001 From: David Athay Date: Mon, 19 Mar 2007 16:52:44 +0000 Subject: Added target cursor. Shows blue when target in range, and red when out of range. --- src/net/equipmenthandler.cpp | 5 +++++ src/net/protocol.h | 1 + 2 files changed, 6 insertions(+) (limited to 'src/net') diff --git a/src/net/equipmenthandler.cpp b/src/net/equipmenthandler.cpp index 01760eeb..74ce95f3 100644 --- a/src/net/equipmenthandler.cpp +++ b/src/net/equipmenthandler.cpp @@ -43,6 +43,7 @@ EquipmentHandler::EquipmentHandler() 0x01d7, SMSG_PLAYER_UNEQUIP, SMSG_PLAYER_ARROW_EQUIP, + SMSG_PLAYER_ATTACK_RANGE, 0 }; handledMessages = _messages; @@ -191,6 +192,10 @@ void EquipmentHandler::handleMessage(MessageIn *msg) logger->log("Unequipping: %i %i(%i) %i", index, equipPoint, type, position); break; + + case SMSG_PLAYER_ATTACK_RANGE: + player_node->setAttackRange(msg->readInt16()); + break; case SMSG_PLAYER_ARROW_EQUIP: itemId = msg->readInt16(); diff --git a/src/net/protocol.h b/src/net/protocol.h index 72b459ed..f755eda4 100644 --- a/src/net/protocol.h +++ b/src/net/protocol.h @@ -44,6 +44,7 @@ #define SMSG_PLAYER_EQUIPMENT 0x00a4 #define SMSG_PLAYER_EQUIP 0x00aa #define SMSG_PLAYER_UNEQUIP 0x00ac +#define SMSG_PLAYER_ATTACK_RANGE 0x013a #define SMSG_PLAYER_ARROW_EQUIP 0x013c #define SMSG_PLAYER_ARROW_MESSAGE 0x013b #define SMSG_PLAYER_SKILLS 0x010f -- cgit v1.2.3-70-g09d2