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

    Defiled RSPS's Avatar
    Join Date
    Oct 2013
    Posts
    465
    Thanks given
    32
    Thanks received
    30
    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;
    Attached image
    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!
    http://www.rune-server.org/market/vi...aces-more.html
    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.
    Attached image
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Donator

    Defiled RSPS's Avatar
    Join Date
    Oct 2013
    Posts
    465
    Thanks given
    32
    Thanks received
    30
    Rep Power
    94
    Thanks this fixed it.
    Attached image
    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
  •