PDA

View Full Version : Creating a Teleportation command!



Mohammad
June 19th, 2010, 05:27
This how to make a teleportation command for newbs!


if (command.equalsIgnoreCase(""))
{
sM("You are teleported to enter what you want");
toX = XCOORDS;
toY = YCOORDS;
}


command.equalsIgnoreCase(""))
in the middle of those two " speech marks add the command name.


toX = XCOORDS;
toY = YCOORDS;
in that part ^^ you need to have you're coords so for example lumbridge it 3222 3222
commonly the first 4 numbers are the XCOORDS and the YCOORDS are the right side 4 digits.

Please reply if i helped you!
thanks,
Moe


edit: i forgot to add the one for delta :( here it is :



if(command.startsWith("home")){
triggerTele(3092, 3492, 0);
}


Its the same thing as above but this one to wont say toX or toY

Keywords:
this color is for the XCOORDS
this color is for the YCOORDS
this color is for the height level so if it more than 0 you're player might freeze i think

Thanks,
Moe

Nathan'
June 19th, 2010, 05:27
nice guide for beginners

Mohammad
June 19th, 2010, 05:39
nice guide for beginners
thank you.

Dark bow199
June 19th, 2010, 08:16
Nice guide :)

Mohammad
June 21st, 2010, 07:21
Nice guide :)

Thanks :P

Owner Pwnage
June 21st, 2010, 07:23
Again another Great guide from you.Very good job.

Mohammad
June 21st, 2010, 07:27
Thanks for you're awesome comment!

P r 0 tank
September 16th, 2010, 14:59
ty i needed this to move my home

legionkiller99
September 27th, 2010, 15:32
Useful for beginners, although obvious teleport command is obvious... Let them find out themselves, and learn from it..

1337 World Pkz
September 29th, 2010, 02:07
Might want to include which file to put it in. ;)

Lolliescape
September 29th, 2010, 17:48
This is Delta.

tedhead2
October 4th, 2010, 08:36
:O what file do i edit... i use G.X.C scape...

Onion
October 4th, 2010, 22:26
:O what file do i edit... i use G.X.C scape...

well, im new at this too but through some surfing it was in my clickingMost.java file. Just teleport somewhere, use ::mypos if you can, then use the Find function in notepad to find those coordinates, then change em. it worked for me.

_1Greg1_
October 4th, 2010, 22:30
For Non-Delta, use this if you have teleblock-enabled server.



if (command.equalsIgnoreCase("COMMANDNAME")) {
if (teleblock == true) {
sendMessage("A magical force stops you from teleporting.");
} else {
teleportToX = XCOORDS;
teleportToY = YCOORDS;
sendMessage("YOUR MESSAGE WHEN TELED.");
}

Same key as used in original post, XCOORDS = the x coords of where you want to go, etc...

xtylerr
October 8th, 2010, 23:41
Wow thanks, It worked :]

Network
October 9th, 2010, 00:33
Project Insanity is the new "in" source and most server's are based off it. So you should supply both

Mohammad
October 9th, 2010, 04:58
i agree with that,will do one on project insanity.

pwn you74
October 13th, 2010, 08:52
hey can any help me whit coder me server pls help me add me on msn and yahoo
msn: roman_1996@live.nl
yahoo: roman_1996@ymail.com

aerodude30
October 17th, 2010, 01:19
where do u paste this code exactly??

Sorrowing
October 17th, 2010, 07:07
Thanks gggccc worked for me.

Syzygy
November 6th, 2010, 21:36
Mmk.. where do enter this? I"m super new to this, got the client running and all your thread says is "Enter this...." but you don't say where. Sorry if I'm being really stupid, but I got no clue where to enter this stuff.

IncreaZ
November 7th, 2010, 14:07
This will certainly help me get started once I start messing around with coding
Thanks!