mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
[Quest API] Allow EVENT_ZONE to be parsed as non-zero to prevent zoning. (#2052)
- This will allow server operators to prevent zoning to or from a specific zone based on whatever criteria they want.
This commit is contained in:
+9
-2
@@ -202,8 +202,15 @@ void Client::Handle_OP_ZoneChange(const EQApplicationPacket *app) {
|
||||
return;
|
||||
}
|
||||
|
||||
std::string export_string = fmt::format("{}", target_zone_id);
|
||||
parse->EventPlayer(EVENT_ZONE, this, export_string, 0);
|
||||
std::string export_string = fmt::format(
|
||||
"{} {}",
|
||||
zone->GetZoneID(),
|
||||
target_zone_id
|
||||
);
|
||||
if (parse->EventPlayer(EVENT_ZONE, this, export_string, 0) != 0) {
|
||||
SendZoneCancel(zc);
|
||||
return;
|
||||
}
|
||||
|
||||
//handle circumvention of zone restrictions
|
||||
//we need the value when creating the outgoing packet as well.
|
||||
|
||||
Reference in New Issue
Block a user