Fix protocol erros and try to fix walk delay
Not implemented CreaturesType, just fixed the protocol error reported in #493, also try to fix #499 and #461
This commit is contained in:
parent
d080432e14
commit
0fbba70003
|
@ -56,7 +56,7 @@ function init()
|
||||||
end
|
end
|
||||||
|
|
||||||
function bindKeys()
|
function bindKeys()
|
||||||
gameRootPanel:setAutoRepeatDelay(250)
|
gameRootPanel:setAutoRepeatDelay(80)
|
||||||
|
|
||||||
bindWalkKey('Up', North)
|
bindWalkKey('Up', North)
|
||||||
bindWalkKey('Right', East)
|
bindWalkKey('Right', East)
|
||||||
|
|
|
@ -104,6 +104,7 @@ namespace Proto {
|
||||||
GameServerCreatureUnpass = 146,
|
GameServerCreatureUnpass = 146,
|
||||||
GameServerCreatureMarks = 147,
|
GameServerCreatureMarks = 147,
|
||||||
GameServerPlayerHelpers = 148,
|
GameServerPlayerHelpers = 148,
|
||||||
|
GameServerCreatureType = 149,
|
||||||
GameServerEditText = 150,
|
GameServerEditText = 150,
|
||||||
GameServerEditList = 151,
|
GameServerEditList = 151,
|
||||||
GameServerPlayerDataBasic = 159, // 950
|
GameServerPlayerDataBasic = 159, // 950
|
||||||
|
|
|
@ -126,6 +126,7 @@ public:
|
||||||
void addPosition(const OutputMessagePtr& msg, const Position& position);
|
void addPosition(const OutputMessagePtr& msg, const Position& position);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
void parseCreatureType(const InputMessagePtr& msg);
|
||||||
void parsePlayerHelpers(const InputMessagePtr& msg);
|
void parsePlayerHelpers(const InputMessagePtr& msg);
|
||||||
void parseMessage(const InputMessagePtr& msg);
|
void parseMessage(const InputMessagePtr& msg);
|
||||||
void parsePendingGame(const InputMessagePtr& msg);
|
void parsePendingGame(const InputMessagePtr& msg);
|
||||||
|
|
|
@ -333,6 +333,9 @@ void ProtocolGame::parseMessage(const InputMessagePtr& msg)
|
||||||
case Proto::GameServerCreatureMarks:
|
case Proto::GameServerCreatureMarks:
|
||||||
parseCreaturesMark(msg);
|
parseCreaturesMark(msg);
|
||||||
break;
|
break;
|
||||||
|
case Proto::GameServerCreatureType:
|
||||||
|
parseCreatureType(msg);
|
||||||
|
break;
|
||||||
// otclient ONLY
|
// otclient ONLY
|
||||||
case Proto::GameServerExtendedOpcode:
|
case Proto::GameServerExtendedOpcode:
|
||||||
parseExtendedOpcode(msg);
|
parseExtendedOpcode(msg);
|
||||||
|
@ -1698,6 +1701,12 @@ void ProtocolGame::parseCreaturesMark(const InputMessagePtr& msg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ProtocolGame::parseCreatureType(const InputMessagePtr& msg)
|
||||||
|
{
|
||||||
|
uint32 id = msg->getU32();
|
||||||
|
uint8 type = msg->getU8();
|
||||||
|
}
|
||||||
|
|
||||||
void ProtocolGame::setMapDescription(const InputMessagePtr& msg, int x, int y, int z, int width, int height)
|
void ProtocolGame::setMapDescription(const InputMessagePtr& msg, int x, int y, int z, int width, int height)
|
||||||
{
|
{
|
||||||
int startz, endz, zstep;
|
int startz, endz, zstep;
|
||||||
|
|
Loading…
Reference in New Issue