Thread: [PI] How do I create new ::command teleports?

Results 1 to 6 of 6
  1. #1 [PI] How do I create new ::command teleports? 
    Registered Member
    Join Date
    Oct 2009
    Posts
    83
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    How do I create a new teleport, but with a ::command type of command?

    For example, I want to make a Lumbridge teleport.

    ::lumbridge

    How do I go about creating this?
    Reply With Quote  
     

  2. #2  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    Easy.
    Code:
    		if (playerCommand.equalsIgnoreCase("lumbridge")) {
    			c.sendMessage("You teleport to Lumbridge.");
    		                c.teleportToX = 2399; //x coord
    		                c.teleportToY = 5171; //ycoord
    				c.startAnimation(8939); //Emote
    				c.teleTimer = 9;
    				c.gfx0(1576); //GFX
    				c.teleEndAnimation = 8941; //Teleport End Emote
    }


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2009
    Posts
    83
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Kickyamom View Post
    Easy.
    Code:
    		if (playerCommand.equalsIgnoreCase("lumbridge")) {
    			c.sendMessage("You teleport to Lumbridge.");
    		                c.teleportToX = 2399; //x coord
    		                c.teleportToY = 5171; //ycoord
    }
    And I add that right into commands.java, right?

    Thanks for the help, I'll try it out!
    Reply With Quote  
     

  4. #4  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    Yeah, commands.java. If that doesn't work for you, there is another method. Also, you'll have to change those coordinates =]


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2009
    Posts
    83
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by Kickyamom View Post
    Yeah, commands.java. If that doesn't work for you, there is another method. Also, you'll have to change those coordinates =]
    That worked perfectly, thanks for the help!

    I've added to your reputation.
    Reply With Quote  
     

  6. #6  
    Donator

    Kickyamom's Avatar
    Join Date
    Jul 2010
    Posts
    1,606
    Thanks given
    208
    Thanks received
    157
    Rep Power
    835
    Thanks :]


    Spoiler for Respect for the Truest:

    #TWTMP GANG 4 LYFE
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 5
    Last Post: 07-27-2010, 05:37 PM
  2. How to create a .gif
    By CTucker in forum Help
    Replies: 1
    Last Post: 07-04-2010, 07:11 AM
  3. Richscape command that teleports
    By Sneerz in forum Help
    Replies: 6
    Last Post: 03-21-2009, 05:57 PM
  4. Teleports dialog after command.
    By jareq in forum Help
    Replies: 2
    Last Post: 02-11-2009, 10:05 PM
  5. How to Create a Silhoutte!
    By Inside Sin in forum Tutorials
    Replies: 8
    Last Post: 04-10-2008, 03:12 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •