From d9510b01ba504492c35fc6950d71ff0eddaadf6d Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Sat, 13 Jan 2018 19:57:55 +0100 Subject: [PATCH] * fixed default stamina on otserv 0.6.x engine --- system/pages/account/create_character.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/pages/account/create_character.php b/system/pages/account/create_character.php index 72ce7bd4..9898bcd2 100644 --- a/system/pages/account/create_character.php +++ b/system/pages/account/create_character.php @@ -140,7 +140,11 @@ if($save) { $player->setPosX(0); $player->setPosY(0); $player->setPosZ(0); - $player->setStamina($config['otserv_version'] == TFS_03 ? 151200000 : 2520); + + if(fieldExist('stamina', 'players')) { + $player->setStamina($char_to_copy->getStamina()); + } + if(fieldExist('loss_experience', 'players')) { $player->setLossExperience($char_to_copy->getLossExperience()); $player->setLossMana($char_to_copy->getLossMana());