Skip to content

Commit

Permalink
Added support to clientVersion 11_ - aka10 - (no official items.otb /…
Browse files Browse the repository at this point in the history
…/ no supported new items) - (jo3bingham)
  • Loading branch information
mattyx14 committed Dec 15, 2016
1 parent c2bfc7f commit de7fcb1
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG
Expand Up @@ -63,7 +63,7 @@
STARTED AND ON

PROTOCOL SUPPORTED
Version Clients - 7.6 to 10.99
Version Clients - 7.6 to 11_
Version Client 11.x

BUGS
Expand All @@ -80,6 +80,7 @@
- Added UnjustPanel Kills (brunominervino)
- Added support to orangeSkull (brunominervino)
- Added support to current frag system (brunominervino)
- Added support to clientVersion 11_ - aka10 - (no official items.otb // no supported new items) - (jo3bingham)
- Fileloader refactor (djarek)
- Fix connectionLock on old protocols
- Fix potions onTarget
Expand Down
6 changes: 3 additions & 3 deletions path_11_x/config.lua
Expand Up @@ -34,9 +34,9 @@ replaceKickOnLogin = true
maxPacketsPerSecond = 25

-- Version Manual
clientVersionMin = 1098
clientVersionMax = 1099
clientVersionStr = "Only clients with protocol 10.98/99 or allowed!"
clientVersionMin = 1100
clientVersionMax = 1100
clientVersionStr = "Only clients with protocol 10 and 11 or allowed!"

-- Depot Limit
freeDepotLimit = 2000
Expand Down
6 changes: 3 additions & 3 deletions path_11_x/src/definitions.h
Expand Up @@ -28,9 +28,9 @@ static constexpr auto SOFTWARE_CODENAME = "LEZICK";
static constexpr auto STATUS_SERVER_DEVELOPERS = "Mattyx14, Brewsterl, Malucooo and The Forgotten Server Developers";
static constexpr auto GIT_REPO = "https://github.com/mattyx14/otxserver/tree/otxserv3/";

static constexpr auto CLIENT_VERSION_MIN = 1098;
static constexpr auto CLIENT_VERSION_MAX = 1099;
static constexpr auto CLIENT_VERSION_STR = "10.99";
static constexpr auto CLIENT_VERSION_MIN = 1100;
static constexpr auto CLIENT_VERSION_MAX = 1100;
static constexpr auto CLIENT_VERSION_STR = "10 and 11";

static constexpr auto AUTHENTICATOR_DIGITS = 6U;
static constexpr auto AUTHENTICATOR_PERIOD = 30U;
Expand Down
1 change: 1 addition & 0 deletions path_11_x/src/itemloader.h
Expand Up @@ -103,6 +103,7 @@ enum clientVersion_t {
CLIENT_VERSION_1035 = 55,
CLIENT_VERSION_1076 = 56,
CLIENT_VERSION_1098 = 57,
// CLIENT_VERSION_1100 = 58,
};

enum rootattrib_ {
Expand Down
2 changes: 2 additions & 0 deletions path_11_x/src/protocolgame.cpp
Expand Up @@ -1745,6 +1745,8 @@ void ProtocolGame::sendMarketDetail(uint16_t itemId)
msg.add<uint16_t>(0x00);
}

msg.add<uint16_t>(0x00); // imbuement detail

MarketStatistics* statistics = IOMarket::getInstance()->getPurchaseStatistics(itemId);
if (statistics) {
msg.addByte(0x01);
Expand Down
1 change: 1 addition & 0 deletions path_11_x/src/protocolgamebase.cpp
Expand Up @@ -729,6 +729,7 @@ void ProtocolGameBase::sendBasicData()
msg.add<uint32_t>(0);
}
msg.addByte(player->getVocation()->getClientId());
msg.addByte(1); // has reached Main (allow player to open Prey window)
msg.add<uint16_t>(0x00);
writeToOutputBuffer(msg);
}
Expand Down

0 comments on commit de7fcb1

Please sign in to comment.