Experienced Elementalist
- Joined
- Jun 29, 2006
- Messages
- 255
- Reaction score
- 0
I have make command /go 7 for go to PRISON!
Open WorldServer.cpp - Gmcmds.cpp
[FIND]
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)
{
map = 51;
x = 5357;
y = 5013;
}
else if (loc == 5)
{
map = 61;
x = 5434;
y = 4569;
}
else if (loc == 6)
{
map = 6;
x = 5243;
y = 5240;
}
else
{
char line0[200] = "Please input a number after the go command, below is a list of places and their appropriate number";
char line1[200] = "1 = Adventurers plains | 4 = The city of Eucar";
char line2[200] = "2 = The city of Zant | 5 = Xita Refuge";
char line3[200] = "3 = Junon Polis | 6 = Training grounds";
char line4[200] = "Example; /go 3";
SendPM(thisclient, line0);
SendPM(thisclient, line1);
SendPM(thisclient, line2);
SendPM(thisclient, line3);
SendPM(thisclient, line4);
}
if( (x != 0) && (y != 0) && (map != 0) )
{
[/FIND]
[REPLACE]
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)
{
map = 51;
x = 5357;
y = 5013;
}
else if (loc == 5)
{
map = 61;
x = 5434;
y = 4569;
}
else if (loc == 6)
{
map = 6;
x = 5243;
y = 5240;
}
else if (loc == 7)
{
map = 63;
x = 5407;
y = 4481;
}
else
{
char line0[200] = "Please input a number after the go command, below is a list of places and their appropriate number";
char line1[200] = "1 = Adventurers plains | 4 = The city of Eucar";
char line2[200] = "2 = The city of Zant | 5 = Xita Refuge";
char line3[200] = "3 = Junon Polis | 6 = Training grounds";
char line4[200] = "7 = Prison";
char line5[200] = "Example; /go 3";
SendPM(thisclient, line0);
SendPM(thisclient, line1);
SendPM(thisclient, line2);
SendPM(thisclient, line3);
SendPM(thisclient, line4);
SendPM(thisclient, line5);
}
if( (x != 0) && (y != 0) && (map != 0) )
{
[/REPLACE]
Bye,have fun
P.S I DONT HAVE TEST,BUT I THINK WORK!
Bye!!!!
Open WorldServer.cpp - Gmcmds.cpp
[FIND]
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)
{
map = 51;
x = 5357;
y = 5013;
}
else if (loc == 5)
{
map = 61;
x = 5434;
y = 4569;
}
else if (loc == 6)
{
map = 6;
x = 5243;
y = 5240;
}
else
{
char line0[200] = "Please input a number after the go command, below is a list of places and their appropriate number";
char line1[200] = "1 = Adventurers plains | 4 = The city of Eucar";
char line2[200] = "2 = The city of Zant | 5 = Xita Refuge";
char line3[200] = "3 = Junon Polis | 6 = Training grounds";
char line4[200] = "Example; /go 3";
SendPM(thisclient, line0);
SendPM(thisclient, line1);
SendPM(thisclient, line2);
SendPM(thisclient, line3);
SendPM(thisclient, line4);
}
if( (x != 0) && (y != 0) && (map != 0) )
{
[/FIND]
[REPLACE]
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)
{
map = 51;
x = 5357;
y = 5013;
}
else if (loc == 5)
{
map = 61;
x = 5434;
y = 4569;
}
else if (loc == 6)
{
map = 6;
x = 5243;
y = 5240;
}
else if (loc == 7)
{
map = 63;
x = 5407;
y = 4481;
}
else
{
char line0[200] = "Please input a number after the go command, below is a list of places and their appropriate number";
char line1[200] = "1 = Adventurers plains | 4 = The city of Eucar";
char line2[200] = "2 = The city of Zant | 5 = Xita Refuge";
char line3[200] = "3 = Junon Polis | 6 = Training grounds";
char line4[200] = "7 = Prison";
char line5[200] = "Example; /go 3";
SendPM(thisclient, line0);
SendPM(thisclient, line1);
SendPM(thisclient, line2);
SendPM(thisclient, line3);
SendPM(thisclient, line4);
SendPM(thisclient, line5);
}
if( (x != 0) && (y != 0) && (map != 0) )
{
[/REPLACE]
Bye,have fun

P.S I DONT HAVE TEST,BUT I THINK WORK!

Bye!!!!