Thread: Home Teleport Button Doesn't Work

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1 [317] [PI] Home Teleport Button Doesn't Work 
    Registered Member PouchOfLemons's Avatar
    Join Date
    Apr 2013
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    Hello everyone. As my title states, my Home Teleport button isn't working. It just won't work. My code should be correct, see for yourself:
    Code:
    case 50056:
    			String type = c.playerMagicBook == 0 ? "modern" : "ancient";
    			c.getPA().startTeleport(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0,
    					type);
    			break;
    It won't even teleport me anywhere. I click the button and it does nothing. However, my other teleport buttons work. Perhaps this is a client problem rather than a server problem? I'm not sure. This is really strange, could anyone help?
    Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2013
    Posts
    31
    Thanks given
    0
    Thanks received
    5
    Rep Power
    13
    What revision rsps
    Reply With Quote  
     

  3. #3  
    Registered Member PouchOfLemons's Avatar
    Join Date
    Apr 2013
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by maximumz View Post
    What revision rsps
    317, I'm using PI.
    Reply With Quote  
     

  4. #4  
    Banned Market Banned Market Banned


    Join Date
    Jan 2011
    Age
    22
    Posts
    3,122
    Thanks given
    1,198
    Thanks received
    1,478
    Rep Power
    0
    you probably have the actionbutton wrong
    Reply With Quote  
     

  5. #5  
    Donator

    Join Date
    Jan 2013
    Age
    25
    Posts
    122
    Thanks given
    5
    Thanks received
    12
    Rep Power
    22
    Quote Originally Posted by PouchOfLemons View Post
    Hello everyone. As my title states, my Home Teleport button isn't working. It just won't work. My code should be correct, see for yourself:
    Quote Originally Posted by PouchOfLemons View Post
    Code:
    case 50056:
    Code:
                String type = c.playerMagicBook == 0 ? "modern" : "ancient";
                c.getPA().startTeleport(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0,
                        type);
                break;

    It won't even teleport me anywhere. I click the button and it does nothing. However, my other teleport buttons work. Perhaps this is a client problem rather than a server problem? I'm not sure. This is really strange, could anyone help?
    Thanks.


    Quote Originally Posted by lare96 View Post
    you probably have the actionbutton wrong
    This might be a tiny bit misleading.
    If I remember correctly, your home teleport button's action is handled in your ClickingButtons.java class - Just incase there was a misconception with you thinking actionHandler is the correct class to be working in.


    Easy way to check if that's the correct ID: get rid of the teleport method call, and just print to console with a test message. Go in game and click the button, then look at the console to see if anything happened.
    At that point you can determine if your problem was the ID, or if it was the actual teleport method call.

    Hope that helps in anyway possible.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    It'd be under actionHandler.java, probably case 50056
    Reply With Quote  
     

  7. #7  
    mush

    Danny's Avatar
    Join Date
    Sep 2013
    Posts
    1,199
    Thanks given
    37
    Thanks received
    314
    Rep Power
    551
    First of all that's your ancient home button(if you didn't know lol).

    Try this,
    ancient home button:
    Code:
    case 50056:
                    c.getPA().startTeleport(Config.START_LOCATION_X, Config.START_LOCATION_Y, 0, "ancient");
                     break;
    Normal spell book:
    Code:
    case 4171:
                    c.getPA().startTeleport(Config.START_LOCATION_X, Config.START_LOCATION_Y, 0, "modern");
                    break;
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    May 2013
    Posts
    1,177
    Thanks given
    28
    Thanks received
    132
    Rep Power
    53
    Quote Originally Posted by Mate View Post
    First of all that's your ancient home button(if you didn't know lol).

    Try this,
    ancient home button:
    Code:
    case 50056:
                    c.getPA().startTeleport(Config.START_LOCATION_X, Config.START_LOCATION_Y, 0, "ancient");
                     break;
    Normal spell book:
    Code:
    case 4171:
                    c.getPA().startTeleport(Config.START_LOCATION_X, Config.START_LOCATION_Y, 0, "modern");
                    break;
    Instead of a whole new case, he can just stack it with the ancient home button.
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

  9. #9  
    Registered Member PouchOfLemons's Avatar
    Join Date
    Apr 2013
    Posts
    31
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    Okay, all of the different responses overwhelmed me a bit, but I tried a good amount of what you all said. I looked into the server console after a button was hit and nothing was said in the server console, by the way. So, what I did was change my code to this:
    Code:
    // home teleports
    		case 4171:
    			c.getPA().startTeleport(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0, "modern");
    			break;
    			
    		case 50056:
    			c.getPA().startTeleport(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0, "ancient");
                            break;
    It still doesn't work. Any idea as to what is going on now? Remember, nothing went into the server console when I hit the button. Nothing goes into the server console when I hit ANY of the buttons, and they all work, for the most part.
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    May 2013
    Posts
    1,177
    Thanks given
    28
    Thanks received
    132
    Rep Power
    53
    c.sendMessage("actionButtonId = " + actionButtonId);
    If only I hadn't given you up, my life could've been different.
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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: 2
    Last Post: 08-10-2013, 04:26 AM
  2. Make-Over -> Accept button doesn't work.
    By Trivzor in forum Help
    Replies: 10
    Last Post: 07-20-2013, 12:33 PM
  3. My log out button doesn't work.
    By patywagon in forum Help
    Replies: 3
    Last Post: 07-01-2012, 01:25 AM
  4. Run button doesn't work.
    By Mr. Apollo in forum Help
    Replies: 2
    Last Post: 10-29-2010, 02:15 PM
  5. this button doesn't work?
    By lumb0pk3r in forum Help
    Replies: 3
    Last Post: 02-25-2010, 09:52 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
  •