[SOURCE] /go 1-37 (Level Accept)

Newbie Spellweaver
Joined
Mar 31, 2007
Messages
26
Reaction score
0
Hey...
I have made the go command 1-37 with Level accept
Eldeon /go commands for level 90+
Luna /go commands for level 40+
Goblin Cave /go commands for level 45+
Forgotten Temple /go commands for level 70+
Sikuku Underground Prison /go command for level 160+

\World Server\gmcmds.cpp

else if (strcmp(command, "go")==0) // AtCommandGo
{
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 = 22;
x = 5098;
y = 5322;
}
else if(loc == 2)
{
map = 1;
x = 5240;
y = 5192;
}
else if (loc == 3)
{
map = 2;
x = 5516;
y = 5236;
}
else if (loc == 4)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Eucar!");
return true;
}
map = 51;
x = 5357;
y = 5013;
}
else if (loc == 5)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Xita Refuge!");
return true;
}
map = 61;
x = 5434;
y = 4569;
}
else if (loc == 6)
{
map = 21;
x = 5158;
y = 5352;
}
else if (loc == 7)
{
map = 23;
x = 5341;
y = 5071;
}
else if (loc == 8)
{
map = 24;
x = 5379;
y = 5329;
}
else if (loc == 9)
{
map = 25;
x = 5377;
y = 5185;
}
else if (loc == 10)
{
map = 26;
x = 5671;
y = 5107;
}
else if(loc == 11)
{
map = 27;
x = 5479;
y = 4976;
}
else if (loc == 12)
{
map = 28;
x = 5587;
y = 4734;
}
else if (loc == 13)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Freezing Plateau!");
return true;
map = 55;
x = 5789;
y = 4619;
}
else if (loc == 14)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Crystal Snowfields!");
return true;
map = 54;
x = 5094;
y = 4254;
}
else if (loc == 15)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Arumic Valley!");
return true;
map = 53;
x = 6229;
y = 5313;
}
else if (loc == 16)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Mana Snowfield!");
return true;
map = 52;
x = 6079;
y = 5269;
}
else if (loc == 17)
{
if (thisclient->Stats->Level<45) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 45 to visit Goblin Cave (B1)!");
return true;
map = 31;
x = 5516;
y = 5437;
}
else if (loc == 18)
{
if (thisclient->Stats->Level<45) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 45 to visit Goblin Cave (B2)!");
return true;
map = 32;
x = 5435;
y = 5259;
}
else if (loc == 19)
{
if (thisclient->Stats->Level<45) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 45 to visit Goblin Cave (B3)!");
return true;
map = 33;
x = 5605;
y = 5488;
}
else if (loc == 20)
{
if (thisclient->Stats->Level<70) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 70 to visit Forgotten Temple (B1)!");
return true;
map = 56;
x = 5035;
y = 5200;
}
else if (loc == 21)
{
if (thisclient->Stats->Level<70) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 70 to visit Forgotten Temple (B2)!");
return true;
map = 57;
x = 5540;
y = 5145;
}
else if (loc == 22)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Shady Jungle!");
return true;
map = 62;
x = 5846;
y = 5206;
}
else if (loc == 23)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Marsh of Ghosts!");
return true;
map = 64;
x = 5197;
y = 5157;
}
else if (loc == 24)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Forest of Wandering!");
return true;
map = 63;
x = 5407;
y = 4481;
}
else if (loc == 25)
{
if (thisclient->Stats->Level<160) // by Terr0risT
{
SendPM(thisclient, "You need to be a least Level 160 to visit Sikuku Prison Underground!");
return true;
}
map = 65;
x = 5485;
y = 5285;
}
else if(loc == 26)
{
map = 37;
x = 5184;
y = 5256;
}
else if (loc == 27)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Lion's Plains!");
return true;
map = 8;
x = 5160;
y = 5080;
}
else if (loc == 28)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Mount Eruca!");
return true;
map = 58;
x = 5680;
y = 4287;
}
else if (loc == 29)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Luna Clanfield!");
return true;
map = 59;
x = 5102;
y = 5132;
}
else if (loc == 30)
{
if (thisclient->Stats->Level<30) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 30 to visit Junon Clanfield Level 30-49!");
return true;
map = 11;
x = 5400;
y = 5200;
}
else if (loc == 31)
{
if (thisclient->Stats->Level<50) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 50 to visit Junon Clanfield Level 50-69!");
return true;
map = 12;
x = 5400;
y = 5200;
}
else if (loc == 32)
{
if (thisclient->Stats->Level<70) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 70 to visit Junon Clanfield Level 70-89!");
return true;
map = 13;
x = 5400;
y = 5200;
}
else if (loc == 33)
{
map = 20;
x = 5035;
y = 5149;
}
else if (loc == 34)
{
map = 22;
x = 5113;
y = 5261;
}
else if (loc == 35)
{
map = 38;
x = 5074;
y = 5342;
}
else if (loc == 36)
{
map = 6;
x = 5243;
y = 5240;
}
else if (loc == 37)
{
map = 29;
x = 5093;
y = 5144;
}
else
{
SendPM(thisclient, "Please input a number after the go command, below is a list of places and their appropriate number");
SendPM(thisclient, "1 = Adventurers plains LvL1-13");
SendPM(thisclient, "2 = The city of Zant LvL12-25");
SendPM(thisclient, "3 = Junon Polis LvL36-41");
SendPM(thisclient, "4 = The city of Eucar LvL72-77");
SendPM(thisclient, "5 = Xita Refuge");
SendPM(thisclient, "6 = Valley of Luxem Tower LvL9-15");
SendPM(thisclient, "7 = Breezy Hills LvL15-26");
SendPM(thisclient, "8 = El Verloon Desert LvL20-35");
SendPM(thisclient, "9 = Anima Lake LvL30-44");
SendPM(thisclient, "10 = Forest of Wisdom LvL 42-60");
SendPM(thisclient, "11 = Kenji Beach LvL58-85");
SendPM(thisclient, "12 = Gorge of Silence LvL82-94");
SendPM(thisclient, "13 = Freezing Plateau LvL76-85");
SendPM(thisclient, "14 = Crystal Snowfields LvL83-91");
SendPM(thisclient, "15 = Arumic Valley LvL91-114");
SendPM(thisclient, "16 = Mana Snowfield LvL 111-130");
SendPM(thisclient, "17 = Goblin Cave (B1)");
SendPM(thisclient, "18 = Goblin Cave (B2)");
SendPM(thisclient, "19 = Goblin Cave (B3)");
SendPM(thisclient, "20 = Forgotten Temple (B1)");
SendPM(thisclient, "21 = Forgotten Temple (B2");
SendPM(thisclient, "22 = Shady Jungle");
SendPM(thisclient, "23 = Marsh of Ghosts");
SendPM(thisclient, "24 = Forest of Wandering");
SendPM(thisclient, "25 = Sikuku Underground Prison");
SendPM(thisclient, "26 = Sunshine Coast");
SendPM(thisclient, "27 = Lion's Plains");
SendPM(thisclient, "28 = Mount Eruca");
SendPM(thisclient, "29 = Luna Clan Field");
SendPM(thisclient, "30 = Junon Clan Field (30-49");
SendPM(thisclient, "31 = Junon Clan Field (50-69");
SendPM(thisclient, "32 = Junon Clan Field (70-89)");
SendPM(thisclient, "33 = [Storage] Fabrizio");
SendPM(thisclient, "34 = [Visitor Guide] Arua's Fairy");
SendPM(thisclient, "35 = Santa Planetoid");
SendPM(thisclient, "36 = Training grounds");
SendPM(thisclient, "37 = Desert of the Dead");
SendPM(thisclient, "Example; /go 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 : /go %i" , thisclient->CharInfo->charname, loc);
}
return true;
}
 
Like I said in OSRose Forums,

This restrictions wont stop anybody from walking or using any other method from going to the "restricted" maps or places.

But nice share :)
 
Well, there is ways to prevent, using gm access levels and it would prevent anyone below access level x to teleport, or just go to a forbidden area , which u would have to pick out anyhow.
 
i already put that in my gmcmds.cpp but still my /go is 1-10 only not 1-37 pls excuse my english im not really good .......... anyone can tell wat i nid to do after i put those code?:juggle::juggle::juggle:
 
i already put that in my gmcmds.cpp but still my /go is 1-10 only not 1-37 pls excuse my english im not really good .......... anyone can tell wat i nid to do after i put those code?:juggle::juggle::juggle:

yhea im having the same problem ... like i would put the above stuff in the right place and save the file and re up the server but im still gettin only go's 1-10 .. can anyone plz help?:sq_yellow
 
Well, I know if I replace the existing code I have with the one above, then compile it it will show all 37 that is listed.

I would guess you have done something wrong or missed something someplace.
 
Well, since I suck at C++ and I don't know how to compile and no one I know knows how to compile. Could some one please post a download link for a compiled gmcmds.cpp or tell me how to fix two errors:

Code:
 [COLOR=red]{[/COLOR]
  else if (strcmp(command, "SSPAWN")==0) 
    { //STARTPOINT IDMOB CANTMIN CANTMAX RESPAWNTIME(s)  (3 points minim)
    if(Config.Command_SSpawn > thisclient->Session->accesslevel)
                     return true;

Errors:

505 C:\Documents and Settings\Chris\Desktop\ \Legend-Rose\World Server\gmcmds.cpp expected unqualified-id before '{' token

505 C:\Documents and Settings\Chris\Desktop\ \Legend-Rose\World Server\gmcmds.cpp expected `,' or `;' before '{' token
 
you need to compile it, it is very simple, get dev-c++ and read akai's guide on compiling, then all u gotta do is insert the info and hit >execute>rebuild all, then reload ur server!
im 15 and i can do this stuff its simple!!
 
// There was a small mistake, now it compiles with no errors!







else if (strcmp(command, "go")==0) // AtCommandGo
{
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 = 22;
x = 5098;
y = 5322;
}
else if(loc == 2)
{
map = 1;
x = 5240;
y = 5192;
}
else if (loc == 3)
{
map = 2;
x = 5516;
y = 5236;
}
else if (loc == 4)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Eucar!");
return true;
}
map = 51;
x = 5357;
y = 5013;
}
else if (loc == 5)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Xita Refuge!");
return true;
}
map = 61;
x = 5434;
y = 4569;
}
else if (loc == 6)
{
map = 21;
x = 5158;
y = 5352;
}
else if (loc == 7)
{
map = 23;
x = 5341;
y = 5071;
}
else if (loc == 8)
{
map = 24;
x = 5379;
y = 5329;
}
else if (loc == 9)
{
map = 25;
x = 5377;
y = 5185;
}
else if (loc == 10)
{
map = 26;
x = 5671;
y = 5107;
}
else if(loc == 11)
{
map = 27;
x = 5479;
y = 4976;
}
else if (loc == 12)
{
map = 28;
x = 5587;
y = 4734;
}
else if (loc == 13)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Freezing Plateau!");
return true;
}
map = 55;
x = 5789;
y = 4619;
}
else if (loc == 14)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Crystal Snowfields!");
return true;
}
map = 54;
x = 5094;
y = 4254;
}
else if (loc == 15)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Arumic Valley!");
return true;
}
map = 53;
x = 6229;
y = 5313;
}
else if (loc == 16)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Mana Snowfield!");
return true;
}
map = 52;
x = 6079;
y = 5269;
}
else if (loc == 17)
{
if (thisclient->Stats->Level<45) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 45 to visit Goblin Cave (B1)!");
return true;
}
map = 31;
x = 5516;
y = 5437;
}
else if (loc == 18)
{
if (thisclient->Stats->Level<45) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 45 to visit Goblin Cave (B2)!");
return true;
}
map = 32;
x = 5435;
y = 5259;
}
else if (loc == 19)
{
if (thisclient->Stats->Level<45) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 45 to visit Goblin Cave (B3)!");
return true;
}
map = 33;
x = 5605;
y = 5488;
}
else if (loc == 20)
{
if (thisclient->Stats->Level<70) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 70 to visit Forgotten Temple (B1)!");
return true;
}
map = 56;
x = 5035;
y = 5200;
}
else if (loc == 21)
{
if (thisclient->Stats->Level<70) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 70 to visit Forgotten Temple (B2)!");
return true;
}
map = 57;
x = 5540;
y = 5145;
}
else if (loc == 22)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Shady Jungle!");
return true;
}
map = 62;
x = 5846;
y = 5206;
}
else if (loc == 23)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Marsh of Ghosts!");
return true;
}
map = 64;
x = 5197;
y = 5157;
}
else if (loc == 24)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Forest of Wandering!");
return true;
}
map = 63;
x = 5407;
y = 4481;
}
else if (loc == 25)
{
if (thisclient->Stats->Level<160) // by Terr0risT
{
SendPM(thisclient, "You need to be a least Level 160 to visit Sikuku Prison Underground!");
return true;
}
map = 65;
x = 5485;
y = 5285;
}
else if(loc == 26)
{
map = 37;
x = 5184;
y = 5256;
}
else if (loc == 27)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Lion's Plains!");
return true;
}
map = 8;
x = 5160;
y = 5080;
}
else if (loc == 28)
{
if (thisclient->Stats->Level<40) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 40 to visit Mount Eruca!");
return true;
}
map = 58;
x = 5680;
y = 4287;
}
else if (loc == 29)
{
if (thisclient->Stats->Level<90) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 90 to visit Luna Clanfield!");
return true;
}
map = 59;
x = 5102;
y = 5132;
}
else if (loc == 30)
{
if (thisclient->Stats->Level<30) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 30 to visit Junon Clanfield Level 30-49!");
return true;
}
map = 11;
x = 5400;
y = 5200;
}
else if (loc == 31)
{
if (thisclient->Stats->Level<50) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 50 to visit Junon Clanfield Level 50-69!");
return true;
}
map = 12;
x = 5400;
y = 5200;
}
else if (loc == 32)
{
if (thisclient->Stats->Level<70) // by VatriXxX
{
SendPM(thisclient, "You need to be a least Level 70 to visit Junon Clanfield Level 70-89!");
return true;
}
map = 13;
x = 5400;
y = 5200;
}
else if (loc == 33)
{
map = 20;
x = 5035;
y = 5149;
}
else if (loc == 34)
{
map = 22;
x = 5113;
y = 5261;
}
else if (loc == 35)
{
map = 38;
x = 5074;
y = 5342;
}
else if (loc == 36)
{
map = 6;
x = 5243;
y = 5240;
}
else if (loc == 37)
{
map = 29;
x = 5093;
y = 5144;
}
else
{
SendPM(thisclient, "Please input a number after the go command, below is a list of places and their appropriate number");
SendPM(thisclient, "1 = Adventurers plains LvL1-13");
SendPM(thisclient, "2 = The city of Zant LvL12-25");
SendPM(thisclient, "3 = Junon Polis LvL36-41");
SendPM(thisclient, "4 = The city of Eucar LvL72-77");
SendPM(thisclient, "5 = Xita Refuge");
SendPM(thisclient, "6 = Valley of Luxem Tower LvL9-15");
SendPM(thisclient, "7 = Breezy Hills LvL15-26");
SendPM(thisclient, "8 = El Verloon Desert LvL20-35");
SendPM(thisclient, "9 = Anima Lake LvL30-44");
SendPM(thisclient, "10 = Forest of Wisdom LvL 42-60");
SendPM(thisclient, "11 = Kenji Beach LvL58-85");
SendPM(thisclient, "12 = Gorge of Silence LvL82-94");
SendPM(thisclient, "13 = Freezing Plateau LvL76-85");
SendPM(thisclient, "14 = Crystal Snowfields LvL83-91");
SendPM(thisclient, "15 = Arumic Valley LvL91-114");
SendPM(thisclient, "16 = Mana Snowfield LvL 111-130");
SendPM(thisclient, "17 = Goblin Cave (B1)");
SendPM(thisclient, "18 = Goblin Cave (B2)");
SendPM(thisclient, "19 = Goblin Cave (B3)");
SendPM(thisclient, "20 = Forgotten Temple (B1)");
SendPM(thisclient, "21 = Forgotten Temple (B2");
SendPM(thisclient, "22 = Shady Jungle");
SendPM(thisclient, "23 = Marsh of Ghosts");
SendPM(thisclient, "24 = Forest of Wandering");
SendPM(thisclient, "25 = Sikuku Underground Prison");
SendPM(thisclient, "26 = Sunshine Coast");
SendPM(thisclient, "27 = Lion's Plains");
SendPM(thisclient, "28 = Mount Eruca");
SendPM(thisclient, "29 = Luna Clan Field");
SendPM(thisclient, "30 = Junon Clan Field (30-49");
SendPM(thisclient, "31 = Junon Clan Field (50-69");
SendPM(thisclient, "32 = Junon Clan Field (70-89)");
SendPM(thisclient, "33 = [Storage] Fabrizio");
SendPM(thisclient, "34 = [Visitor Guide] Arua's Fairy");
SendPM(thisclient, "35 = Santa Planetoid");
SendPM(thisclient, "36 = Training grounds");
SendPM(thisclient, "37 = Desert of the Dead");
SendPM(thisclient, "Example; /go 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 : /go %i" , thisclient->CharInfo->charname, loc);
}
return true;
}
 
just compile the worldserver.exe so the go 1 -37 will work

Step:

1)Open Your worldserver.dev with Dev-C++
2)Click The Execute
3)Then after u click Execute Click The Compile & Run

let him compilling after compilling auto run the worldserver.exe

if u get error some problems:

1)u not correct install the dev-cpp
2)the gmcmds.cpp the maps are incorrect

Solve The Problems:

1) Solve The Problem in number 1

In Dev-Cpp folder u see there uninstall.exe click that
after uninstall.exe download again the Dev-Cpp then install it carefully.

2) Solve The Problem in number 2

Write Carefully the gmcmds.cpp

Thats All ^_^

__________________________________________________________________________

[REQUESTING]Buff Command For GM
 
Back