Thread: Teleport Interface Released.

Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1 Teleport Interface Released. 
    Registered Member

    Join Date
    Oct 2017
    Age
    23
    Posts
    215
    Thanks given
    211
    Thanks received
    113
    Rep Power
    300


    Releasing this because I have no use for it.
    Plus i saw someone else release a teleport interface and well it wasn't good and could be alot better.
    Difficulty; 2/10.
    Note: if you're going to use this, would like some credit, and feel free to throw in a cheeky rep.
    Also I know the positioning is kinda dodgy, but can easily be adjusted; was rushing this task.

    Also, just realised the user requested the interface which was a copy of DreamScape
    Didn't realise that until it was completed :/

    What you'll be adding?

    Image: Attached image


    Sprites download: https://www.dropbox.com/s/dtsdjx7cmg...kNans.zip?dl=0

    Spoiler for Client Sided Code:


    Code:
    	private static void RandomTeleInt(TextDrawingArea[] tda) {
         //Main Interface ID, and calling the addinterface method
           RSInterface tab = RSInterface.addInterface(13400);
    
            //Scroll bar Interface ID.
    		RSInterface scrollTableft = RSInterface.addInterface(13430);
    		int xOffset = 4;
    		int yOffset = -8;
    		
    		//Scroll bar for drops
    		RSInterface scrollTabright = RSInterface.addInterface(13498);
    		
            //Main Interface Sprites
            RSInterface.addSprite(13401, 1583);
            
            //Interface Text
    		 RSInterface.addText(13402, "Preview", tda, 2, 0xFF9900, true, true);
    		 RSInterface.addText(13403, "Description", tda, 2, 0xFF9900, true, true);
    		 RSInterface.addText(13404, "Drops", tda, 2, 0xFF9900, true, true);
    		 RSInterface.addText(13405, "Boss Names", tda, 2, 0xFF9900, true, true);
    		 
            //Category Buttons
    		 RSInterface.addButton(13406, 1584, 1585, "Select");
    		 RSInterface.addButton(13407, 1584, 1585, "Select");
    		 RSInterface.addButton(13408, 1584, 1585, "Select");
    		 RSInterface.addButton(13409, 1584, 1585, "Select");
    		 RSInterface.addButton(13410, 1584, 1585, "Select");
    		 RSInterface.addButton(13411, 1584, 1585, "Select");
    
    		 //Category Text
    		 RSInterface.addText(13412, "Bosses", tda, 0, 0xFF9900, true, true);
    		 RSInterface.addText(13413, "Monsters", tda, 0, 0xFF9900, true, true);
    		 RSInterface.addText(13414, "Wilderness", tda, 0, 0xFF9900, true, true);
    		 RSInterface.addText(13415, "Skilling", tda, 0, 0xFF9900, true, true);
    		 RSInterface.addText(13416, "Minigames", tda, 0, 0xFF9900, true, true);
    		 RSInterface.addText(13417, "Cities", tda, 0, 0xFF9900, true, true);
    		 
    	     //Description Text.
    		 RSInterface.addText(13418, "Name:", tda, 1, 0xFF9900, true, true);
    		 RSInterface.addText(13419, "Hitpoints:", tda, 1, 0xFF9900, true, true);
    		 RSInterface.addText(13420, "Recom Team Size:", tda, 1, 0xFF9900, true, true);
    		 RSInterface.addText(13421, "Attack Styles:", tda, 1, 0xFF9900, true, true);
    		 RSInterface.addText(13422, "Difficulty:", tda, 1, 0xFF9900, true, true);
    
    		 //Teleport Button
    		 RSInterface.addButton(13423, 1586, 1587, "Teleport");
    		 
    	     //Description Text.
    			 RSInterface.addText(13424, "1:", tda, 1, ClientConstants.YELLOW, true, true);
    			 RSInterface.addText(13425, "2:", tda, 1, ClientConstants.YELLOW, true, true);
    			 RSInterface.addText(13426, "3:", tda, 1, ClientConstants.YELLOW, true, true);
    			 RSInterface.addText(13427, "4:", tda, 1, ClientConstants.YELLOW, true, true);
    			 RSInterface.addText(13428, "5:", tda, 1, ClientConstants.YELLOW, true, true);
    
    			 RSInterface.addText(13429, "Teleport", tda, 2, ClientConstants.YELLOW, true, true);
    			
    			 RSInterface.addToItemGroup(13499, 0, 8, 8, 5, 5, false, null, null, null, true, true);
    			 
    			 //Adds the NPC Onto the interface.
    			RSInterface.modelViewer(13500, 1, 23889, 750);
    
    		 
    		 //Positionining and Interface child
    		RSInterface.setChildren(31, tab);
    		tab.child(0, 13401, 7, 10);
    		tab.child(1, 13402, 215, 68);
    		tab.child(2, 13403, 405, 68);
    		tab.child(3, 13404, 210, 244);
    		tab.child(4, 13405, 85, 50);
    		
    		tab.child(5, 13406, 23, 17);
    		tab.child(6, 13407, 102, 17);
    		tab.child(7, 13408, 181, 17);
    		tab.child(8, 13409, 260, 17);
    		tab.child(9, 13410, 339, 17);
    		tab.child(10, 13411, 419, 17);
    		
    		tab.child(11, 13412, 56, 23);
    		tab.child(12, 13413, 134, 23);
    		tab.child(13, 13414, 215, 23);
    		tab.child(14, 13415, 295, 23);
    		tab.child(15, 13416, 374, 23);
    		tab.child(16, 13417, 454, 23);
    		
    		//Scrollbar positioning
    		tab.child(17, 13430, 20 + xOffset, 82 + yOffset);
    		
    		//Description Text Positioning
    		tab.child(18, 13418, 357, 90);
    		tab.child(19, 13419, 366, 105);
    		tab.child(20, 13420, 387, 120);
    		tab.child(21, 13421, 378, 135);
    		tab.child(22, 13422, 368, 150);
    		
    		//Teleport Button Positioning
    		tab.child(23, 13423, 155, 208);
    		
    		
    		//Text Input fields Positoning
    		tab.child(24, 13424, 420, 90);
    		tab.child(25, 13425, 410, 105);
    		tab.child(26, 13426, 450, 120);
    		tab.child(27, 13427, 441, 135);
    		tab.child(28, 13428, 430, 150);
    		tab.child(29, 13429, 220, 212);
    		tab.child(30, 13498, 150, 265);
    
    
    		
    		//Scoll bar size, witdh and scrolling size.
    		scrollTableft.width = 101;
    		scrollTableft.height = 247;
    		scrollTableft.scrollMax = 450;
    		
    		//Scroll bar size, width and scrolling size.
    		scrollTabright.width = 334;
    		scrollTabright.height = 60;
    		scrollTabright.scrollMax = 200;
    		
    		int npcList = 50;
    		int y = 1;
    
    		for (int i = 0; i < npcList; i++) {
    			RSInterface.addText(13431 + i, "Teleport Name", tda, 1, ClientConstants.ORANGE, false, false, ClientConstants.WHITE,
    					"Select", 150);
    		}
    
    		RSInterface.setChildren(npcList, scrollTableft);
    
    		for (int i = 0; i < npcList; i++) {
    			scrollTableft.child(i, 13431 + i, 0, y);
    			y += 15;
    		}
    		
    		
    		RSInterface.setChildren(1, scrollTabright);
    
    		scrollTabright.child(0, 13499, 20, 10);
    
    	}



    Spoiler for Server Sided Teleport HANDLER:

    Server Sided Code Teleport Handler

    Code:
    package game.content.interfaces.teleportInterface;
    
    import game.content.miscellaneous.Teleport;
    import game.player.Player;
    
    /**
     * 
     * @author Adam_#6723
     * @Date 08/01/2019
     */
    
    public class TeleportHandler1 {
    
    	private Player player;
    
    	public TeleportHandler1(Player player) {
    		this.player = player;
    	}
    	//**
    	/*  Opens The interface on the default tab, which is bosses e.g. the first
    	 /* category/tab.
    	 */
    	public void open() {
    		player.setTeleportType1(TeleportType1.BOSSES);
    		switchTab(52094);
    		player.getPA().displayInterface(13400);
    	}
    
    	 /*
    	  * Another open method, which can be used to open a specific TeleportType of your choosing.
    	  */
    	public void open(TeleportType1 type) {
    		player.setTeleportType1(type);
    		switchTab(52094);
    		player.getPA().displayInterface(13400);
    	}
    	 
    	 /**
    	  * Handles clicking each of the tabs so that it lists the accurate information
    	  * @param buttonid
    	  */
    	public void switchTab(int buttonid) {
    		switch (buttonid) {
    		case 52094:
    			player.setTeleportType1(TeleportType1.BOSSES);
    			switchData();
    			break;
    		case 52095:
    			player.setTeleportType1(TeleportType1.MONSTERS);
    			switchData();
    			break;
    		case 52096:
    			player.setTeleportType1(TeleportType1.WILDERNESS);
    			switchData();
    			break;
    		case 52097:
    			player.setTeleportType1(TeleportType1.SKILLING);
    			switchData();
    			break;
    		case 52098:
    			player.setTeleportType1(TeleportType1.MINIGAMES);
    			switchData();
    			break;
    		case 52099:
    			player.setTeleportType1(TeleportType1.CITIES);
    			switchData();
    			break;
    		default:
    			break;
    		}
    	}
           /** Caches enum values. **/
           private static final TeleportData data[] = TeleportData.values();
    
    	//**
    	 /*.Te Handles **Switching** of the tabs, so that it lists the correct information
    	 /* for each category.
    	 */
    	public void switchData() {
    		int count = 13431;
    		for (int i = 13431; i < 13460; i++) {
    			player.getPA().sendFrame126("", i); // boom u did it thats it
    		}
    		for (TeleportData1 data : data) {
    			if (data.getType() == player.getTeleportType1()) {
    				player.getPA().sendFrame126(data.getName(), count++);
    				if (count >= 13461) {
    					System.err.println("You are placing a teleport, where the interface ID Stops at.");
    					System.err.println("Please check again on the teleports you are adding - Adam");
    					return;
    				}
    			}
    		}
    	}
    
    	//** Button Clicking for teleports. **//*
    	public void button(int buttonId) {
    		for (TeleportData1 data : data) {
    			if (data.getType() == player.getTeleportType1()) {
    				if (buttonId == data.getClickingId()) {
    					player.setCurrentTeleport1(data);
    					player.getPA().sendFrame126("" + data.getName(), 13424);
    					player.getPA().sendFrame126("" + data.getHealth(), 13425);
    					player.getPA().sendFrame126("" + data.getTeamsize(), 13426);
    					player.getPA().sendFrame126("" + data.getAttackstyles(), 13427);
    					player.getPA().sendFrame126("" + data.getDifficulty(), 13428);
    					ItemGroup(buttonId);
    				}
    			}
    		}
    	}
    
    	//** Teleport button itself. **//*
    	public void teleport() {
    		if (player.getCurrentTeleport1() != null) {
    			Teleport.spellTeleport(player, player.getCurrentTeleport1().getX(), player.getCurrentTeleport1().getY(),
    					player.getCurrentTeleport1().getZ(), true);
    		} else {
    			player.getPA().sendMessage("Please select a teleport destination first!");
    		}
    	}
    
    	public void ResetFrame34() {
    		int interfaceId = 13499;
    		for (int index = 0; index < 100; index++) {
    			player.getPA().sendFrame34(interfaceId, -1, -1, -1);
    			player.getPA().sendFrame126("", interfaceId);
    		}
    	}
    	
    	public void ItemGroup(int buttonId) {
    		for (TeleportData1 data : TeleportData1.values()) {
    			for (int i = 0; i < data.getItem().length; i++) {
    				if (data.getType() == player.getTeleportType1()) {
    					if (buttonId == data.getClickingId()) {
    						ResetFrame34();
    						player.getPA().sendFrame34(13499, data.getItem()[i], i, 1);
    					}
    				}
    			}
    		}
    	}
    }



    Spoiler for TeleportData:


    Code:
    package game.content.interfaces.teleportInterface;
    
    
    /**
     * The teleport data.
     * 
     * @author Adam_#6723
     */
    public enum TeleportData1 {
    
    	COWS( 17031, 52119, "Lumbridge cows", "Lumbride Cows", 10, 0, "Melee", "Easy", TeleportType1.MONSTERS, 3259, 3267, 0, 5, false, 239, new int[] {4151, 3140, 4087, 4587, 995, 4151}),
    	CRABS( 17032, 52120, "Rock Crabs", "Rock Crabs", 15, 0, "Melee", "Easy", TeleportType1.MONSTERS, 2673, 3710, 0, 10, false, 8095, new int[] {-1, -1, -1, -1, -1}),
    	SAND_CRABS( 17033, 52121, "Sand Crabs", "Sand Crabs", 20, 0, "Melee", "Easy", TeleportType1.MONSTERS, 1866, 3552, 1, 0, false, 1701, new int[] {-1, -1, -1, -1}),
    	AMMONITE_CRABS(17034, 52122, "Ammonite crabs", "", 25, 0, "Melee", "Medium", TeleportType1.MONSTERS, 3726, 3892, 0, 10, false, 2, new int[] {4151, 3140, 4087, 4587}),
    
    	
    	
    	
    	ZULRAH( 17031, 52119, "Zulrah", "", 300, 0, "Range", "@red@Hard", TeleportType1.BOSSES, 1, 10, 0, 10, false, 10, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	SIRE( 17032, 52120, "Abyssal Sire", "", 500, 0, "Range", "@red@Hard AF Boi", TeleportType1.BOSSES, 1, 10, 0, 10, false, 10, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	ARCH( 17033, 52121, "Deranged Arch", "Deranged Archelogist", 250, 2, "Magic", "Extreme", TeleportType1.BOSSES, 1, 10, 0, 10, false, 10, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	VORK( 17034, 52122, "Vorkath", "", 500, 0, "Magic", "Ultimate", TeleportType1.BOSSES, 1, 10, 0, 10, false, 10, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	//Skilling
    	NEW_1( 17031, 52119, "Resource Area", "Wildy Resource Area @red@(Level 54)", 0, 0, "", "", TeleportType1.SKILLING, 3184, 3946, 0, 79, true, 260, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
    		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_2( 17031, 52120, "Craft Guild", "Crafting Guild", 0, 0, "", "", TeleportType1.SKILLING, 2936, 3281, 0, 79, true, 260
    			, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
    		    		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_3( 17031, 52121, "Gnome Agilty", "Gnome Agility",  0, 0, "", "", TeleportType1.SKILLING, 2477, 3438, 0, -1, true, -1
    			, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
    		    		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_4( 17031, 52122, "Barb Agility", "Barbarian Agility", 0, 0, "", "", TeleportType1.SKILLING, 2552, 3562, 0,  -1, true, -1,
    			new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	
    	//Wilderness
    	NEW16(17031, 52119, "Magebank", "Magebank @gr3@(Bank area)", 0, 0, "", "", TeleportType1.WILDERNESS, 2537, 4714, 0, 79, true, 260, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW17(17031, 52120, "West Dragons", "West Dragons @red@(Level 10)", 0, 0, "", "", TeleportType1.WILDERNESS, 2979, 3594, 0, 79, true, 260, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW18(17031, 52121, "East Dragons", "East Dragons @red@(Level 17)", 0, 0, "", "", TeleportType1.WILDERNESS, 3348, 3647, 0, 79, true, 260, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_20(17031, 52122, "Elder Druids", "Elder Chaos Druids @red@(Level 15)", 0, 0, "", "", TeleportType1.WILDERNESS, 3235, 3635, 0, 129, true, 6607, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	
    	//Cities
    	NEW_39( 17031, 52119, "Fossil (EAST)", "Fossil Island (east)", 0, 0, "", "", TeleportType1.CITIES, 3817, 3808, 0, -1, false, -1, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_40( 17031, 52120, "Fossil (WEST)", "Fossil Island (WEST)", 0, 0, "", "", TeleportType1.CITIES, 3735, 3803, 0,  -1, false, -1, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_41( 17031, 52121, "Land's End", "", 0, 0, "", "", TeleportType1.CITIES, 1504, 3423, 0, -1, false, -1, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_42( 17031, 52122, "Varrock", "", 0, 0, "", "", TeleportType1.CITIES, 3213, 3424, 0,  -1, false, -1, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	
    	
    	NEW_58( 17031, 52119, "Duel Arena", "", 0, 0, "", "", TeleportType1.MINIGAMES, 3366, 3266, 0, -1, false, -1, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_60( 17031, 52120, "Item Doubler", "",  0, 0, "", "", TeleportType1.MINIGAMES, 3091, 3505, 0, -1, false, -1, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_61( 17031, 52121, "Dicing", "", 0, 0, "", "", TeleportType1.MINIGAMES, 2459, 3094, 0, -1, false, -1, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	NEW_62( 17031, 52122, "Barrows", "", 0, 0, "", "", TeleportType1.MINIGAMES, 3565, 3315, 0, -1, false, -1, new int[] { 12601, 19550, 13227, 11838, 6914, 6889, 19547, 19553, 
        		12002, 6585, 11808, 11804, 12926, 11826, 13271, 11335}),
    	;
    	
    
    	/** The name of the teleport. */
    	private final String name;
    	
    	private final String fullname;
    
    	/** The type of the teleport. */
    	private final TeleportType1 type;
    
    	/** The position of the teleport. */
    
    	public final int buttonId;
    
    	private int cblvl;
    
    	private boolean wildy;
    
    	private int npcId;
    
    	private int index;
    
    	private int clickingid;
    
    	private int x;
    
    	private int y;
    
    	private int z;
    	
    	private int health;
    	
    	public int getHealth() {
    		return health;
    	}
    
    	public int getTeamsize() {
    		return teamsize;
    	}
    
    	public String getAttackstyles() {
    		return attackstyles;
    	}
    
    	public String getDifficulty() {
    		return difficulty;
    	}
    
    	private int teamsize;
    	
    	private String attackstyles;
    	
    	private String difficulty;
    	
    	private int item[];
    
    
    	public int[] getItem() {
    		return item;
    	}
    
    	public void setItem(int[] item) {
    		this.item = item;
    	}
    
    	/** Creates a new <code>Teleport<code>. */
    	TeleportData1( int buttonId, int clickingid, String name, String fullname, int health, int teamsize, String attackstyles,
    			String difficulty, TeleportType1 type, int x, int y, int z,
    			int cblvl, boolean wildy, int npcId,  int[] item) {
    		//this.index = (index);
    		this.buttonId = (buttonId);
    		this.clickingid = (clickingid);
    		this.name = (name);
    		this.fullname = (fullname);
    		this.health = (health);
    		this.teamsize = (teamsize);
    		this.attackstyles = (attackstyles);
    		this.difficulty = (difficulty);
    		this.type = (type);
    		this.x = (x);
    		this.y = (y);
    		this.z = (z);
    		this.cblvl = (cblvl);
    		this.wildy = (wildy);
    		this.npcId = (npcId);
    		this.item = (item);
    	}
    
    	public String getName() {
    		return name;
    	}
    	
    	public String getFullName() {
    		return fullname;
    	}
    
    	public TeleportType1 getType() {
    		return type;
    	}
    
    	public int getCblvl() {
    		return cblvl;
    	}
    
    	public int getClickingId() {
    		return clickingid;
    	}
    
    	public boolean getWildy() {
    		return wildy;
    	}
    
    	public int getButtonId() {
    		return buttonId;
    	}
    
    	public int getIndex() {
    		return index;
    	}
    
    	public int getZ() {
    		return z;
    	}
    
    	public int getY() {
    		return y;
    	}
    
    	public int getX() {
    		return x;
    	}
    
    	public int getNpcId() {
    		return npcId;
    	}
    
    }



    Spoiler for TeleportType:


    Code:
    package game.content.interfaces.teleportInterface;
    
    /**
     * The teleport Type.
     * @author Adam_#6723
     */
    
    public enum TeleportType1 {
    	
    	/** Favorite teleport. */
    	WILDERNESS,
    
    	/** Activity teleport. */
    	SKILLING,
    
    	/** Skilling teleport. */
    	CITIES,
    
    	/** Monster killing teleport. */
    	BOSSES,
    
    	/** Player killing teleport. */
    	MONSTERS,
    
    	/** Boss killing teleport. */
    	MINIGAMES,
    
    }


    Spoiler for Clicking Button Handling:


    Code:
    	private static List<Integer> TELEPORT_BUTTONS_TAB = Arrays.asList(66119, 66120, 66121, 66122, 66123, 66124);
    	private static List<Integer> TELEPORT_BUTTONS = Arrays.asList(
    			66135, 66136, 66137, 66138, 66139, 66140, 66141, 66142,
    			66143, 66144, 66145, 66146, 
    			66147, 66148, 66149, 66150, 66151, 66152, 66153, 66154,
    			66155, 66157, 66158);


    Spoiler for Player Methods forgot em:


    Code:
    		/**
    	 * Teleport Attributes
    	 */
    	
    	public TeleportData1 currentTeleport;
    	
    	public TeleportData1 getCurrentTeleport1() {
    		return currentTeleport;
    	}
    
    	public void setCurrentTeleport1(TeleportData1 currentTeleport) {
    		this.currentTeleport = currentTeleport;
    	}
    
    	public TeleportType1 teleportType1 = TeleportType1.MONSTERS;
    
    	
    	public TeleportType1 getTeleportType1() {
    		return teleportType1;
    	}
    
    	public void setTeleportType1(TeleportType1 teleportType) {
    		this.teleportType1 = teleportType;
    	}



    Note I've provided all the Button ID's you have to use them according to how your server handled clicking a button
    Spoiler for signature too large:
    end me
    Attached image
    Attached image
    Reply With Quote  
     


  2. #2  
    2021
    SoulSplit's Avatar
    Join Date
    Nov 2011
    Posts
    830
    Thanks given
    620
    Thanks received
    654
    Rep Power
    528
    That command makes you look like a 12 year old redneck, angry at the world for getting ur head shoved down a toilet every recess

    OT: ty for contributing
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    Skotos Founder


    Join Date
    Jan 2017
    Age
    24
    Posts
    954
    Thanks given
    178
    Thanks received
    191
    Rep Power
    199
    Thank you, and what base is it for?
    Attached image
    Reply With Quote  
     

  5. Thankful user:


  6. #4  
    Registered Member

    Join Date
    Oct 2017
    Age
    23
    Posts
    215
    Thanks given
    211
    Thanks received
    113
    Rep Power
    300
    Quote Originally Posted by Technotik View Post
    That command makes you look like a 12 year old angry at the world for getting ur head stuck down a toilet every recess

    OT: ty for contributing
    LOL my cats black IRL

    all seriousness, I still don't know why i named it like that just me being childish xD

    Quote Originally Posted by Mantvis View Post
    Thank you, and what base is it for?
    I wrote it for some dude, can't remember the base but can easily be suited to any 317 really.
    Spoiler for signature too large:
    end me
    Attached image
    Attached image
    Reply With Quote  
     

  7. #5  
    2021
    SoulSplit's Avatar
    Join Date
    Nov 2011
    Posts
    830
    Thanks given
    620
    Thanks received
    654
    Rep Power
    528
    Quote Originally Posted by Bitshifting View Post
    LOL my cats black IRL

    all seriousness, I still don't know why i named it like that just me being childish xD



    I wrote it for some dude, can't remember the base but can easily be suited to any 317 really.
    that's you being a child. nothing wrong with being childish
    Reply With Quote  
     

  8. #6  
    Registered Member

    Join Date
    Oct 2017
    Age
    23
    Posts
    215
    Thanks given
    211
    Thanks received
    113
    Rep Power
    300
    Quote Originally Posted by Technotik View Post
    that's you being a child. nothing wrong with being childish
    okeh
    Spoiler for signature too large:
    end me
    Attached image
    Attached image
    Reply With Quote  
     

  9. #7  
    Skotos Founder


    Join Date
    Jan 2017
    Age
    24
    Posts
    954
    Thanks given
    178
    Thanks received
    191
    Rep Power
    199
    Quote Originally Posted by Bitshifting View Post
    LOL

    I wrote it for some dude, can't remember the base but can easily be suited to any 317 really.
    Isn't it dawntained cuz it looks like it
    Attached image
    Reply With Quote  
     

  10. Thankful user:


  11. #8  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by Mantvis View Post
    Isn't it dawntained cuz it looks like it
    Why does it matter anyone with a brain can use this.

    @OP why are most of ur methods starting with a capital?

    "ItemGroup"
    Reply With Quote  
     

  12. #9  
    Registered Member

    Join Date
    Oct 2017
    Age
    23
    Posts
    215
    Thanks given
    211
    Thanks received
    113
    Rep Power
    300
    Quote Originally Posted by _Patrick_ View Post
    Why does it matter anyone with a brain can use this.

    @OP why are most of ur methods starting with a capital?

    "ItemGroup"
    bad habit i guess
    Recently started forcing conventions on the stuff i do
    Spoiler for signature too large:
    end me
    Attached image
    Attached image
    Reply With Quote  
     

  13. #10  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by Bitshifting View Post
    bad habit i guess
    Also why are you adding numbers in your naming?
    TelportData1 and TeleportType1, can just be TeleportData and TeleportType same for the other classes.

    There is room for improvement, for instance in ur enum:

    Code:
    private int x;
    
    	private int y;
    
    	private int z;
    Can just use the Location/Position class instead.

    Why is everything in brackets?

    Code:
    this.buttonId = (buttonId);
    		this.clickingid = (clickingid);
    		this.name = (name);
    		this.fullname = (fullname);
    		this.health = (health);
    		this.teamsize = (teamsize);
    		this.attackstyles = (attackstyles);
    		this.difficulty = (difficulty);
    		this.type = (type);
    		this.x = (x);
    		this.y = (y);
    		this.z = (z);
    		this.cblvl = (cblvl);
    		this.wildy = (wildy);
    		this.npcId = (npcId);
    		this.item = (item);
    Player variables have odd naming aswell "setTeleportType1".

    Other then that looks okay, alot of the naming doesn't make sense .
    Reply With Quote  
     

Page 1 of 3 123 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. Teleport interface release
    By _Patrick_ in forum Snippets
    Replies: 57
    Last Post: 06-19-2018, 12:09 PM
  2. Teleport Interface Release
    By Owain in forum Snippets
    Replies: 14
    Last Post: 01-06-2018, 02:05 PM
  3. My teleport interface release [PI]
    By TheTameer400 in forum Graphics
    Replies: 14
    Last Post: 06-09-2017, 01:57 PM
  4. Final version of teleport gfx - released
    By Outcast in forum Models
    Replies: 13
    Last Post: 09-17-2008, 12:45 AM
  5. Item on interface release
    By peterbjornx in forum RS 503+ Client & Server
    Replies: 12
    Last Post: 09-12-2008, 11:48 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •