Merge pull request #501 from conde2/master
Fix protocol erros and try to fix walk delay
This commit is contained in:
commit
9d866a3616
|
@ -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);
|
||||||
|
@ -1704,6 +1707,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