|
|
 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
|
Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum) |
 |
|
 |

01-26-2006, 09:21 PM
|
Hill Giant
|
|
Join Date: Jul 2004
Posts: 196
|
|
the other zone_player command that i posted have any error, then if anybody want use this command, i have this code that i think that should work...
Code:
void command_zone_player(Client *c, const Seperator *sep)
{
uint16 zoneid = 0;
if (sep->IsNumber(1))
{
zoneid = atoi(sep->arg[1]);
}
else if (sep->arg[1][0] == 0)
{
c->Message(0, "Usage: #zone [zonename]");
return;
}
else
{
zoneid = database.GetZoneID(sep->arg[1]);
if(zoneid == 0)
{
c->Message(0, "Unable to locate zone '%s'", sep->arg[1]);
return;
}
}
if((atoi(sep->arg[1])==22) || (atoi(sep->arg[1])==35) || (atoi(sep->arg[1])==12) || (atoi(sep->arg[1])==54)
|| (atoi(sep->arg[1])==38) || (atoi(sep->arg[1])==94) || (atoi(sep->arg[1])==86) || (atoi(sep->arg[1])==116)
|| (atoi(sep->arg[1])==120) || (atoi(sep->arg[1])==152) || (atoi(sep->arg[1])==175) || (atoi(sep->arg[1])==167))
{
//zone to safe coords
c->GoToSafeCoords(zoneid);
return;
}
else
{
c->Message(0, "You only can zone to basic locations: East commonlands,South Ro, West Karana, Gfaydark, Toxxulia Forest, Emerald Jungle, Dreadlands, Eastern Wastes, Western Wastes, Nexus, Scarlet Desert, Grimling Forest");
return;
}
}
|
 |
|
 |
 |
|
 |

06-08-2006, 07:14 AM
|
AX Classic Developer
|
|
Join Date: May 2006
Location: filler
Posts: 2,049
|
|
Quote:
Originally Posted by Arex
the other zone_player command that i posted have any error, then if anybody want use this command, i have this code that i think that should work...
Code:
void command_zone_player(Client *c, const Seperator *sep)
{
uint16 zoneid = 0;
if (sep->IsNumber(1))
{
zoneid = atoi(sep->arg[1]);
}
else if (sep->arg[1][0] == 0)
{
c->Message(0, "Usage: #zone [zonename]");
return;
}
else
{
zoneid = database.GetZoneID(sep->arg[1]);
if(zoneid == 0)
{
c->Message(0, "Unable to locate zone '%s'", sep->arg[1]);
return;
}
}
if((atoi(sep->arg[1])==22) || (atoi(sep->arg[1])==35) || (atoi(sep->arg[1])==12) || (atoi(sep->arg[1])==54)
|| (atoi(sep->arg[1])==38) || (atoi(sep->arg[1])==94) || (atoi(sep->arg[1])==86) || (atoi(sep->arg[1])==116)
|| (atoi(sep->arg[1])==120) || (atoi(sep->arg[1])==152) || (atoi(sep->arg[1])==175) || (atoi(sep->arg[1])==167))
{
//zone to safe coords
c->GoToSafeCoords(zoneid);
return;
}
else
{
c->Message(0, "You only can zone to basic locations: East commonlands,South Ro, West Karana, Gfaydark, Toxxulia Forest, Emerald Jungle, Dreadlands, Eastern Wastes, Western Wastes, Nexus, Scarlet Desert, Grimling Forest");
return;
}
}
|
I'm wondering if anyone has tested these codes and can verify they work? Reason is, i was trying to compile them and I get errors when I add the scripts - I need to make sure it's me doing something wrong.
|
 |
|
 |
 |
|
 |

06-08-2006, 07:42 AM
|
Hill Giant
|
|
Join Date: Jul 2004
Posts: 196
|
|
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...
|
 |
|
 |
 |
|
 |

06-08-2006, 09:47 AM
|
AX Classic Developer
|
|
Join Date: May 2006
Location: filler
Posts: 2,049
|
|
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.
|
 |
|
 |
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 04:10 PM.
|
|
 |
|
 |
|
|
|
 |
|
 |
|
 |