EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   new command #zone_player (https://www.eqemulator.org/forums/showthread.php?t=20003)

Angelox 06-08-2006 09:47 AM

Quote:

Originally Posted by Arex
Code:

void command_zone(Client *c, const Seperator *sep)
{
uint16 zoneid = 0;
if (sep->arg[1][0] == 0)
{
        c->Message(0, "Command Usage: #zone nombre_zona");
        return;
} else {
zoneid = database.GetZoneID(sep->arg[1]);
        if((zoneid != 22) && (zoneid != 35) && (zoneid != 12) && (zoneid != 54) && (zoneid != 38) && (zoneid != 94) &&                (zoneid != 86) && (zoneid != 116) && (zoneid != 120) && (zoneid != 152) && (zoneid != 175) && (zoneid != 167))
        {
        c->Message(0, "You only can zone to basic locations: East commonlands (ecommons),South Ro (sro), West Karana                (qey2hh1), Gfaydark (gfaydark), Toxxulia Forest (tox), The Emerald Jungle (emeraldjungle), Dreadlands (dreadlands),                Eastern Wastelands (eastwastes), Western Wastes (westwastes), Nexus (nexus), Scarlet Desert (scarlet), Grimling Forest                (grimling)");
        return;
        } else {
        c->GoToSafeCoords(zoneid);
        }
}
}

This command is working sure, i did any changes, and i am sure that it is working NOW, because i use it on my server...


Ok thanks for your answer - I had figured it out too , i was mis-placing the scripts . I finally compiled, but then lost the hard disk I thought was good :(
I'm trying to get a dedicated EQ Linux server running, I'll try again, when I finish re install the box on another hardisk.


All times are GMT -4. The time now is 10:23 PM.

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