Thread: Need help making object teleport me for payment!

Results 1 to 4 of 4
  1. #1 Need help making object teleport me for payment! 
    Donator

    tekkit's Avatar
    Join Date
    Oct 2013
    Posts
    431
    Thanks given
    30
    Thanks received
    26
    Rep Power
    94
    Hey guys I basicly want an object to teleport me for the price of a crystal key
    I thought the code below would work but it doesn't can someone tell me what I did wrong?
    Classes I edited : Actionhandler.java

    Code:
    case 2813:
    		if (c.getItems().playerHasItem(989,1) && c.getItems().freeSlots() >= 1) {
    		c.getItems().deleteItem(989, 1);
    		c.getPA().movePlayer(2784, 3848, 0);
    		} else {
    		c.sendMessage("You dont have a crystal key!.");
    		break;


    When the rich wage war its the poor that die
    Spoiler for SPOILER:
    Quote Originally Posted by Twisty View Post
    Account sold, purchased it. Went smoothly. Legitimate user, and easy to get along with. Just make sure you're being even and everything goes swell. Very trust worthy don't let his post count and registration date fool you, he acts his age, and doesn't scam like a child. You got my respect bud. +1
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2012
    Posts
    518
    Thanks given
    43
    Thanks received
    13
    Rep Power
    14
    Try this.

    Code:
    case 2813:
    			if (c.getItems().playerHasItem(989,1) && c.getItems().freeSlots() >= 1) {
    			c.getItems().deleteItem(989, 1);
    			c.getPA().movePlayer(2784, 3848, 0);
    			} else {
    			c.sendMessage("You dont have a crystal key!.");
    			}
    			break;
    And make sure you put it under the switch statement in firstClickObject (ActionHandler.java)
    OFFERING GOOD SERVICES!
    [Only registered and activated users can see links. ]
    Spoiler for My Vouches:
    Quote Originally Posted by Collin2234 View Post
    Vouch! He did my webclient, great work and a nice guy! Thanks.
    Quote Originally Posted by Clevv View Post
    Vouch for this guy. He went first. Well trusted and a nice guy.
    Quote Originally Posted by x25xquinton View Post
    VOUCH- He basically made my summoning interface for me, summoning tab witchever. Payed and went smooth.
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    mush

    Danny's Avatar
    Join Date
    Sep 2013
    Posts
    1,221
    Thanks given
    38
    Thanks received
    316
    Rep Power
    551
    First of all you're missing a bracket.

    Code:
    case 2813:
            if (c.getItems().playerHasItem(989,1) && c.getItems().freeSlots() >= 1) {
            c.getItems().deleteItem(989, 1);
            c.getPA().movePlayer(2784, 3848, 0);
            } else {
            c.sendMessage("You dont have a crystal key!.");
            }
            break;
    Try that.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Donator

    tekkit's Avatar
    Join Date
    Oct 2013
    Posts
    431
    Thanks given
    30
    Thanks received
    26
    Rep Power
    94
    Thanks this fixed it.


    When the rich wage war its the poor that die
    Spoiler for SPOILER:
    Quote Originally Posted by Twisty View Post
    Account sold, purchased it. Went smoothly. Legitimate user, and easy to get along with. Just make sure you're being even and everything goes swell. Very trust worthy don't let his post count and registration date fool you, he acts his age, and doesn't scam like a child. You got my respect bud. +1
    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: 0
    Last Post: 07-13-2013, 01:44 AM
  2. Replies: 5
    Last Post: 06-16-2013, 11:08 PM
  3. Replies: 4
    Last Post: 05-06-2013, 02:40 AM
  4. Need help making a teleport! [PI]
    By rocky2k10 in forum Help
    Replies: 7
    Last Post: 07-29-2011, 06:55 PM
  5. Replies: 0
    Last Post: 02-10-2009, 05:50 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •