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
    23
    Posts
    514
    Thanks given
    128
    Thanks received
    130
    Rep Power
    105


    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
    23
    Posts
    3,555
    Thanks given
    1,179
    Thanks received
    1,464
    Rep Power
    5000
    Nice work , looks cool
    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
    250
    Thanks given
    7
    Thanks received
    28
    Rep Power
    58
    Looks decent, good job!
    Reply With Quote  
     

  6. Thankful user:


  7. #4  
    Registered Member

    Join Date
    Mar 2011
    Age
    23
    Posts
    514
    Thanks given
    128
    Thanks received
    130
    Rep Power
    105
    Added bunch of more teleports.








    AvalonPK Developer
    Reply With Quote  
     

  8. #5  
    ALWAYS ASK FOR A PM BEFORE YOU PURCHASE!

    Join Date
    Jul 2011
    Posts
    1,773
    Thanks given
    495
    Thanks received
    426
    Rep Power
    267
    veldig bra
    [Only registered and activated users can see links. ]

    Need to talk to me or have a question?

    Add me on discord: Hassan#0645
    Reply With Quote  
     

  9. #6  
    Registered Member

    Join Date
    Mar 2011
    Age
    23
    Posts
    514
    Thanks given
    128
    Thanks received
    130
    Rep Power
    105
    Changed achievement from quest tab to task tab


    AvalonPK Developer
    Reply With Quote  
     

  10. #7  
    Registered Member rabea's Avatar
    Join Date
    Mar 2018
    Posts
    325
    Thanks given
    19
    Thanks received
    45
    Rep Power
    67
    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
    81
    Thanks given
    8
    Thanks received
    25
    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)

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
  •