mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 01:29:21 +02:00
introduce 8.0 configs
This commit is contained in:
parent
55d7f9592a
commit
18bd56496e
10
config.lua
10
config.lua
@ -1,15 +1,15 @@
|
|||||||
-- Custom
|
-- Custom
|
||||||
clientVersion = 792
|
clientVersion = 800
|
||||||
knightCloseAttackDamageIncreasePercent = 15
|
knightCloseAttackDamageIncreasePercent = 15
|
||||||
paladinRangeAttackDamageIncreasePercent = 10
|
paladinRangeAttackDamageIncreasePercent = 10
|
||||||
-- Min/Max rate spawn is a multiplication of the map spawntime in spawns.xml Regular monster spawn time is 600. The formula would be randomValue = random(600*100, 600*200) which varies between 60s and 120s
|
-- Min/Max rate spawn is a multiplication of the map spawntime in spawns.xml Regular monster spawn time is 600. The formula would be randomValue = random(600*100, 600*200) which varies between 60s and 120s
|
||||||
minRateSpawn = 100
|
minRateSpawn = 100
|
||||||
maxRateSpawn = 200
|
maxRateSpawn = 200
|
||||||
corpseOwnerEnabled = false
|
corpseOwnerEnabled = false
|
||||||
uhTrap = true
|
uhTrap = false
|
||||||
ropeSpotBlock = false
|
ropeSpotBlock = false
|
||||||
showMonsterLoot = true
|
showMonsterLoot = true
|
||||||
blockHeight = true
|
blockHeight = false
|
||||||
dropItems = false
|
dropItems = false
|
||||||
|
|
||||||
-- Combat settings
|
-- Combat settings
|
||||||
@ -22,7 +22,7 @@ removeChargesFromRunes = true
|
|||||||
stairJumpExhaustion = 0
|
stairJumpExhaustion = 0
|
||||||
experienceByKillingPlayers = true
|
experienceByKillingPlayers = true
|
||||||
expFromPlayersLevelRange = 50
|
expFromPlayersLevelRange = 50
|
||||||
distanceWeaponsDropOnGround = true
|
distanceWeaponsDropOnGround = false
|
||||||
|
|
||||||
-- Skull System
|
-- Skull System
|
||||||
banLength = 2 * 24 * 60 * 60
|
banLength = 2 * 24 * 60 * 60
|
||||||
@ -50,7 +50,7 @@ serverName = "Tibianus"
|
|||||||
statusTimeout = 5000
|
statusTimeout = 5000
|
||||||
replaceKickOnLogin = true
|
replaceKickOnLogin = true
|
||||||
maxPacketsPerSecond = -1
|
maxPacketsPerSecond = -1
|
||||||
autoStackCumulatives = false
|
autoStackCumulatives = true
|
||||||
moneyRate = 1
|
moneyRate = 1
|
||||||
|
|
||||||
-- Deaths
|
-- Deaths
|
||||||
|
@ -370,6 +370,7 @@ enum ClientVersion_t : uint16_t {
|
|||||||
CLIENT_VERSION_781 = 781,
|
CLIENT_VERSION_781 = 781,
|
||||||
CLIENT_VERSION_790 = 790,
|
CLIENT_VERSION_790 = 790,
|
||||||
CLIENT_VERSION_792 = 792,
|
CLIENT_VERSION_792 = 792,
|
||||||
|
CLIENT_VERSION_800 = 800,
|
||||||
};
|
};
|
||||||
|
|
||||||
static constexpr int32_t CHANNEL_GUILD = 0x00;
|
static constexpr int32_t CHANNEL_GUILD = 0x00;
|
||||||
|
@ -185,11 +185,14 @@ void mainLoader(int, char*[], ServiceManager* services)
|
|||||||
else if (clientVersion == 792) {
|
else if (clientVersion == 792) {
|
||||||
g_game.setClientVersion(CLIENT_VERSION_792);
|
g_game.setClientVersion(CLIENT_VERSION_792);
|
||||||
}
|
}
|
||||||
|
else if (clientVersion == 800) {
|
||||||
|
g_game.setClientVersion(CLIENT_VERSION_800);
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
|
|
||||||
std::ostringstream ss;
|
std::ostringstream ss;
|
||||||
ss << "> ERROR: Unknown client version: " << g_config.getNumber(ConfigManager::CLIENT_VERSION) << ", valid client versions are: 780, 781, 790, 792.";
|
ss << "> ERROR: Unknown client version: " << g_config.getNumber(ConfigManager::CLIENT_VERSION) << ", valid client versions are: 780, 781, 790, 792, 800.";
|
||||||
startupErrorMessage(ss.str());
|
startupErrorMessage(ss.str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1258,6 +1258,9 @@ std::string getClientVersionString(ClientVersion_t version)
|
|||||||
case CLIENT_VERSION_792:
|
case CLIENT_VERSION_792:
|
||||||
result = "7.92";
|
result = "7.92";
|
||||||
break;
|
break;
|
||||||
|
case CLIENT_VERSION_800:
|
||||||
|
result = "8.00";
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
result = "Unknown";
|
result = "Unknown";
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user