mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
[Zones] Add Max Level Check to Zones. (#2714)
* [Zones] Add Max Level Check to Zones. # Perl - Add `$client->CanEnterZone(zone_short_name)`. - Add `$client->CanEnterZone(zone_short_name, instance_version)`. # Lua - Add `client:CanEnterZone(zone_short_name)`. - Add `client:CanEnterZone(zone_short_name, instance_version)`. # Notes - Allows operators to limit zones to a maximum level. - Allows operators to see if a player can enter a zone before sending them. - Keeps players from entering via `#peqzone` and `#zone` as well if they do not meet the requirements or are not high enough status to bypass the requirements. * Cleanup.
This commit is contained in:
@@ -53,13 +53,6 @@ void command_zone(Client *c, const Seperator *sep)
|
||||
return;
|
||||
}
|
||||
|
||||
// status checking
|
||||
auto min_status = content_db.GetMinStatus(zone_id, 0);
|
||||
if (c->Admin() < min_status) {
|
||||
c->Message(Chat::White, "Your status is not high enough to go to this zone.");
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef BOTS
|
||||
// This block is necessary to clean up any bot objects owned by a Client
|
||||
if (zone_id != c->GetZoneID()) {
|
||||
|
||||
Reference in New Issue
Block a user