Thread: Quest Tab with toggles/teleports/achievements & information

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 Quest Tab with toggles/teleports/achievements & information 
    Registered Member

    Join Date
    Mar 2011
    Age
    24
    Posts
    545
    Thanks given
    158
    Thanks received
    159
    Rep Power
    170


    Supports info about player/slayer task, achievements, teleports, toggles
    What you guys think? any ideas what could be more in there, also got a yellow star hidden for more content.














    Updates
    Updated quest tab with gear setups aswell







    Updated settings tab for some combat changes

    1x hits or 10x hits - on/off


    1xp per hit - on/off


    Also fixed some nice features for teleporting tab





    Example of Code

    Code:
    package com.rs.game.player.content.customtab;
    
    import com.rs.game.player.Player;
    import com.rs.utils.Utils;
    
    public class SettingsTab extends CustomTab {
    
    	public enum SettingsStore {
    
    		TITLE(25) {
    			@Override
    			public void usage(Player p) {
    			}
    
    			@Override
    			public String text(Player p) {
    				return "Toggles";
    			}
    		},
    
    		SETTINGS(3) {
    			@Override
    			public void usage(Player p) {
    			}
    
    			@Override
    			public String text(Player p) {
    				return "<u>Settings";
    			}
    		},
    
    		BREAKVIALS(4) {
    			@Override
    			public void usage(Player p) {
    				p.toggles.put("BREAK_VIALS", !p.toggles("BREAK_VIALS", false));
    			}
    
    			@Override
    			public String text(Player p) {
    				return "Break Vials: " + (p.toggles("BREAK_VIALS", false) ? "<col=04BB3B>On" : "<col=BB0404>Off");
    			}
    		},
    
    		ITEMSLOOK(5) {
    			@Override
    			public void usage(Player p) {
    				p.switchItemsLook();
    			}
    
    			@Override
    			public String text(Player p) {
    				return "Item Visuals: " + (p.isOldItemsLook() ? "<col=04BB3B>2011" : "<col=04BB3B>2012");
    			}
    		},
    		
    		PLAYERTITLE(6) {
    			@Override
    			public void usage(Player p) {
    				p.setCustomTitle(null);
    				p.getTemporaryAttributtes().put("SET_TITLE", Boolean.TRUE);
    				p.getPackets().sendRunScript(108, new Object[] { "Enter title id, 0-58, 0 = none:" });
    			}
    
    			@Override
    			public String text(Player p) {
    				return "Player Title: " + (p.getAppearence().getTitle() != -1 && p.getCustomTitle() == null ? p.getAppearence().getTitleString() : "<col=BB0404>None - Click here");
    			}
    		},
    
    		DROPS(8) {
    			@Override
    			public void usage(Player p) {
    			}
    
    			@Override
    			public String text(Player p) {
    				return "<u>Drop Settings";
    			}
    		},
    
    		LOOTBEAMS(9) {
    			@Override
    			public void usage(Player p) {
    				p.toggles.put("LOOTBEAMS", !p.toggles("LOOTBEAMS", false));
    			}
    
    			@Override
    			public String text(Player p) {
    				return "Lootbeams: " + (p.toggles("LOOTBEAMS", false) ? "<col=04BB3B>On" : "<col=BB0404>Off");
    			}
    		},
    
    		UNTRADEABLEMESSAGE(10) {
    			@Override
    			public void usage(Player p) {
    				p.toggles.put("UNTRADEABLEMESSAGE", !p.toggles("UNTRADEABLEMESSAGE", false));
    			}
    
    			@Override
    			public String text(Player p) {
    				return "Untradeable Message: "
    						+ (p.toggles("UNTRADEABLEMESSAGE", false) ? "<col=04BB3B>On" : "<col=BB0404>Off");
    			}
    		},
    
    		DROPVALUE(11) {
    			@Override
    			public void usage(Player p) {
    				p.getTemporaryAttributtes().put("SET_DROPVALUE", Boolean.TRUE);
    				p.getPackets().sendRunScript(108, new Object[] { "Enter Amount:" });
    			}
    
    			@Override
    			public String text(Player p) {
    				return "Valuable Drop: " + ("<col=04BB3B>" + (p.toggles("DROPVALUE", 0) < 1 ? "0"
    						: Utils.getFormattedNumber(p.toggles("DROPVALUE", 0), ',')));
    			}
    		},
    
    		COMBATSETTINGS(13) {
    			@Override
    			public void usage(Player p) {
    			}
    
    			@Override
    			public String text(Player p) {
    				return "<u>Combat Settings";
    			}
    		},
    
    		ONEXPPERHIT(14) {
    			@Override
    			public void usage(Player p) {
    				p.toggles.put("ONEXPPERHIT", !p.toggles("ONEXPPERHIT", false));
    			}
    
    			@Override
    			public String text(Player p) {
    				return "One XP per Hit: " + (p.toggles("ONEXPPERHIT", false) ? "<col=04BB3B>On" : "<col=BB0404>Off");
    			}
    		},
    		
    		ONEXHITS(15) {
    			@Override
    			public void usage(Player p) {
    				p.toggles.put("ONEXHITS", !p.toggles("ONEXHITS", false));
    			}
    
    			@Override
    			public String text(Player p) {
    				return "1x Hitmarks: " + (p.toggles("ONEXHITS", false) ? "<col=04BB3B>On" : "<col=BB0404>Off");
    			}
    		},;
    
    		private int compId;
    
    		private SettingsStore(int compId) {
    			this.compId = compId;
    		}
    
    		public abstract String text(Player p);
    
    		public abstract void usage(Player p);
    
    	}
    
    	public static void open(Player player) {
    		sendComponents(player);
    		for (int i = 3; i <= 22; i++)
    			player.getPackets().sendHideIComponent(3002, i, true);
    		for (int i = 28; i <= 56; i++)
    			player.getPackets().sendHideIComponent(3002, i, true);
    		player.getTemporaryAttributtes().put("CUSTOMTAB", 2);
    		player.getPackets().sendHideIComponent(3002, BACK_BUTTON, false);
    		player.getPackets().sendHideIComponent(3002, FORWARD_BUTTON, false);
    		player.getPackets().sendSpriteOnIComponent(3002, RED_STAR_COMP, RED_HIGHLIGHTED);
    		for (SettingsStore store : SettingsStore.values()) {
    			if (store != null) {
    				player.getPackets().sendHideIComponent(3002, store.compId, false);
    				if (store.text(player) != null) {
    					player.getPackets().sendIComponentText(3002, store.compId, store.text(player));
    				}
    			}
    		}
    	}
    
    	public static void handleButtons(Player player, int compId) {
    		for (SettingsStore store : SettingsStore.values()) {
    			if (store != null) {
    				if (compId != store.compId)
    					continue;
    				store.usage(player);
    				open(player);
    			}
    		}
    		switch (compId) {
    		case BACK_BUTTON:
    			TeleportTab.open(player);
    			break;
    		case FORWARD_BUTTON:
    			GearTab.open(player, null);
    			break;
    		default:
    			break;
    		}
    	}
    }


    Thanks to Sagacity for interface! Much appreciated

    AvalonPK Developer
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Extreme Donator Market Banned Market Banned



    Join Date
    Aug 2011
    Age
    24
    Posts
    3,612
    Thanks given
    1,403
    Thanks received
    1,619
    Rep Power
    5000
    Nice work , looks cool

    [Only registered and activated users can see links. ]

    Discord: Roy#2382

    Reply With Quote  
     

  4. Thankful user:


  5. #3  
    V
    V is offline
    Registered Member
    V's Avatar
    Join Date
    Mar 2019
    Posts
    262
    Thanks given
    7
    Thanks received
    31
    Rep Power
    83
    Looks decent, good job!
    Reply With Quote  
     

  6. Thankful user:


  7. #4  
    Registered Member

    Join Date
    Mar 2011
    Age
    24
    Posts
    545
    Thanks given
    158
    Thanks received
    159
    Rep Power
    170
    Added bunch of more teleports.








    AvalonPK Developer
    Reply With Quote  
     

  8. #5  
    Banned

    Join Date
    Jul 2011
    Posts
    1,773
    Thanks given
    495
    Thanks received
    426
    Rep Power
    0
    veldig bra
    Reply With Quote  
     

  9. #6  
    Registered Member

    Join Date
    Mar 2011
    Age
    24
    Posts
    545
    Thanks given
    158
    Thanks received
    159
    Rep Power
    170
    Changed achievement from quest tab to task tab


    AvalonPK Developer
    Reply With Quote  
     

  10. #7  
    Throne Scape - Founder/Developer
    RedRightHanded's Avatar
    Join Date
    Mar 2018
    Posts
    488
    Thanks given
    21
    Thanks received
    73
    Rep Power
    85
    good job
    Reply With Quote  
     

  11. #8  
    Registered Member
    Join Date
    Dec 2018
    Posts
    14
    Thanks given
    0
    Thanks received
    3
    Rep Power
    11
    very nice!
    Reply With Quote  
     

  12. #9  
    Registered Member
    Join Date
    Sep 2018
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Looks nice keep it up.
    Reply With Quote  
     

  13. #10  
    Registered Member
    Join Date
    Dec 2016
    Posts
    121
    Thanks given
    14
    Thanks received
    30
    Rep Power
    61
    Basic, looks good, nice job!
    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. Quest Tab and Home teleport problem
    By tony0 in forum Help
    Replies: 5
    Last Post: 01-03-2013, 01:08 AM
  2. Replies: 0
    Last Post: 03-09-2012, 07:02 AM
  3. [Emulous] Quest-tab teleports
    By IStinkAtPhp in forum Help
    Replies: 3
    Last Post: 02-26-2009, 11:33 PM
  4. Making Quest Tab Into A Information Tab
    By hyper in forum Tutorials
    Replies: 4
    Last Post: 09-20-2008, 12:47 AM
  5. Achievement Diary/quest tab switch
    By =(Kajakas)= in forum Tutorials
    Replies: 14
    Last Post: 07-11-2008, 07:07 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
  •