If you want your guy to do a teleport emote, replace the code with this:
Code:
//Smithing
case 28164: // action button: # goes here
c.getPA().startTeleport(3079, 9501, 0, "modern");
c.sendMessage("Welcome to Smithing Area.");
break;
//Fishing/Cooking
case 28165: // action button: # goes here
case 28166: // action button: # goes here
c.getPA().startTeleport(2813, 3436, 0, "modern");
c.sendMessage("Welcome to Fishing/Cooking Area, will improve soon!");
break;
//Woodcutting/Firemaking
case 28215: // action button: # goes here
case 28168: // action button: # goes here
c.getPA().startTeleport(2724, 3484, 0, "modern");
c.sendMessage("Welcome to Woodcutting/Firemaking Area");
c.sendMessage("Firemaking is disabled atm, will be added soon!");
break;
//Farming/Herblore
case 28171: // action button: # goes here
case 28170: // action button: # goes here
c.getPA().startTeleport(2812, 3463, 0, "modern");
c.sendMessage("To farm, use seeds on the patches bought from the skilling store!");
c.sendMessage("To get herbs, after you've grown a plant, pick the herbs");
c.sendMessage("To make potions, get a vial of water, and use a herb on it");
break;
//Runecrafting
case 28172: // action button: # goes here
c.getPA().startTeleport(2641, 3172, 0, "modern");
c.sendMessage("Welcome to Runecrafting, you need essense from the skilling shop!");
break;
//Thieving
case 28178: // action button: # goes here
c.getPA().startTeleport(2661, 3309, 0, "modern");
c.sendMessage("Welcome to the Thieving area, stalls will be added soon!");
break;
//Fletching/Crafting
case 28173: // action button: # goes here
case 28174: // action button: # goes here
c.getPA().startTeleport(2601, 3083, 0, "modern");
c.sendMessage("Welcome to Fletching/Crafting skilling shop!");
c.sendMessage("Trade Bob to buy Knives, Gems, Chisels, ECT!");
break;
The case number is the button you press. To find this out just click any telport button you added, and go back to your server ("RunServer.cmd") or whatever, and in the cmd it will tell you that you clicked actionbutton: #number here#. Replace that number over the case of the teleport you want in clickingbuttons.java. Once you have did that save it, compile, and restart the server. Then click the teleport button that you just edited, and you should be able to teleport to whatever position, and it should start an animation teleport thing!
I hoped I helped!