What revision rsps
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:
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?Code:
case 50056: String type = c.playerMagicBook == 0 ? "modern" : "ancient"; c.getPA().startTeleport(Config.EDGEVILLE_X, Config.EDGEVILLE_Y, 0, type); break;
What revision rsps
you probably have the actionbutton wrong
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.
It'd be under actionHandler.java, probably case 50056
First of all that's your ancient home button(if you didn't know lol).
ancient home button:
Normal spell book:Code:
case 50056: c.getPA().startTeleport(Config.START_LOCATION_X, Config.START_LOCATION_Y, 0, "ancient"); break;
case 4171: c.getPA().startTeleport(Config.START_LOCATION_X, Config.START_LOCATION_Y, 0, "modern"); break;
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:
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.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;
c.sendMessage("actionButtonId = " + actionButtonId);
|« never seen before! | NPC Spawn Announcement »|
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)