[Request] map scroll command to 5119

11/12/2009 21:02 JoieJones90#1
Im searching after a command or some1 that can help me so i can teleport me to other maps like Lab maps and so on with /tele map cords
it does exist on lotf but its not same coding.. so i dont know how to code it..
11/12/2009 21:13 pro4never#2
It's a very simple command to code, just re-vamp existing ones for the source you are using (or code one yourself)


here's some example ones for coemu (I'm assuming the 5119 source is coemu based? not used it myself)

Code:
case "gmove":
							{
								if(Command.Length == 4)
								{
									Handler.Teleport(Convert.ToInt32(Command[1]), Convert.ToInt32(Command[2]), Convert.ToInt32(Command[3]), 0, CSocket);
								}
								break;
							}
basically you wanna do your normal teleport command using what was entered after /gmove [1] [2] [3]

1 being map number 2 being x 3 being y coords.

Obviously this could be better coded (such as doing else for if they entered it with the wrong syntax and providing them with a nice msg, or by checking if it's valid coords or something like that... but w/e it works as it is)

Good luck, hope that helps.