EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Bugs (https://www.eqemulator.org/forums/forumdisplay.php?f=622)
-   -   #zone [invalid zone] (https://www.eqemulator.org/forums/showthread.php?t=7812)

Merth 06-09-2003 02:09 AM

#zone [invalid zone]
 
I think it was actually built as a feature, but I got a lot of tells on my server from people that didn't enjoy it: When you #zone with an invalid zone name, you'd either get "Zone not ready to receive visitors", or you'd get moved to the safe point for the current zone.

Here's the fix, if you'd like this feature:

client.cpp, ~line 1100-ish
Code:

void Client::MovePC(const char* zonename, ...
...
if (zonename == 0) {
                gmg->zoneID = zone->GetZoneID();
}
else {
                gmg->zoneID = database.GetZoneID(zonename);
        if (gmg->zoneID == 0) {
                Message(0, "Invalid zone name");
                delete outapp;
                return;
        }
        strcpy(zonesummon_name, zonename);
...



All times are GMT -4. The time now is 03:46 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.