I would also add that the size of /go help fits nicely in the dialog box. I added more places, but made another /go command, /go2.
Just inserted this immediately after the "go" command segment.
Code:
else if (strcmp(command, "go2")==0) // AtCommandGo2
{
if(Config.Command_go > thisclient->Session->accesslevel)
return true;
if ((tmp = strtok(NULL, " ")) == NULL) tmp = 0; int loc=atoi(tmp);
if(Config.Command_Go > thisclient->Session->accesslevel)
return true;
int x = 0;
int y = 0;
int map = 0;
if(loc == 1)
{
map = 37;
x = 5184;
y = 5256;
}
else if(loc == 2)
{
map = 38;
x = 5074;
y = 5192;
}
else if (loc == 3)
{
map = 8;
x = 5160;
y = 5080;
}
else if (loc == 4)
{
map = 3;
x = 5198;
y = 5010;
}
else if (loc == 5)
{
map = 59;
x = 5102;
y = 5132;
}
else if (loc == 6)
{
map = 26;
x = 5278;
y = 5158;
}
else if (loc == 7)
{
map = 27;
x = 5479;
y = 4976;
}
else if (loc == 8)
{
map = 32;
x = 5435;
y = 5259;
}
else if (loc == 9)
{
map = 57;
x = 5540;
y = 5145;
}
else if (loc == 10)
{
map = 64;
x = 5197;
y = 5157;
}
else
{
SendPM(thisclient, "Please input a number after the go command, below is a list of places and their appropriate number");
SendPM(thisclient, "1 = Hawaii (aka Sunshine Coast)");
SendPM(thisclient, "2 = Santa Planetiod");
SendPM(thisclient, "3 = Lion's Plains");
SendPM(thisclient, "4 = Dolphin Island");
SendPM(thisclient, "5 = Luna Clan Field");
SendPM(thisclient, "6 = Forest of Wisdom");
SendPM(thisclient, "7 = Kenji Beach");
SendPM(thisclient, "8 = Goblin Cave (B2)");
SendPM(thisclient, "9 = Forgotten Temple (B2)");
SendPM(thisclient, "10 = Marsh of Ghosts");
SendPM(thisclient, "Example; /go2 3");
}
if( (x != 0) && (y != 0) && (map != 0) )
{
fPoint coord;
coord.x = x;
coord.y = y;
MapList.Index[map]->TeleportPlayer( thisclient, coord, false );
Log( MSG_GMACTION, " %s : /go2 %i" , thisclient->CharInfo->charname, loc);
}
return true;