mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 23:17:28 +00:00
fix: Using 'leave-zone' in Return to the Venture Explorer allows players to return to the original Venture Explorer map (#1341)
* fixed VE zone bug and added config option to renable it * add zero back to LWOMAPID initialization * typo * removed config option to enable bug
This commit is contained in:
parent
e2391665b9
commit
799269c79e
@ -288,11 +288,13 @@ void SlashCommandHandler::HandleChatCommand(const std::u16string& command, Entit
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (chatCommand == "leave-zone") {
|
if (chatCommand == "leave-zone" || chatCommand == "leavezone") {
|
||||||
const auto currentZone = Game::zoneManager->GetZone()->GetZoneID().GetMapID();
|
const auto currentZone = Game::zoneManager->GetZone()->GetZoneID().GetMapID();
|
||||||
|
|
||||||
LWOMAPID newZone = 0;
|
LWOMAPID newZone = 0;
|
||||||
if (currentZone % 100 == 0) {
|
|
||||||
|
if (currentZone == 1001) {
|
||||||
|
newZone = 1100; // Send to AG if we're in a Return to Venture Explorer instance
|
||||||
|
} else if (currentZone % 100 == 0) {
|
||||||
ChatPackets::SendSystemMessage(sysAddr, u"You are not in an instanced zone.");
|
ChatPackets::SendSystemMessage(sysAddr, u"You are not in an instanced zone.");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user