Thread: Remove quest tab text from client sided, add it from server

Results 1 to 4 of 4
  1. #1 Remove quest tab text from client sided, add it from server 
    Registered Member
    Join Date
    Dec 2010
    Posts
    213
    Thanks given
    6
    Thanks received
    3
    Rep Power
    1
    Currently it looks like this:




    Rsinterface client sided:


    Code:
    		public static void questTab(TextDrawingArea[] TDA){
    		RSInterface Interface = addInterface(638);
    		setChildren(4, Interface);
    		addText(29155, "Quests", 0xFF981F, false, true, 52, TDA, 2);
    		addButton(29156, 2, "QuestTab/QUEST", 18, 18, "Swap to Information", 1);
    		addSprite(29157, 0, "Interfaces/QuestTab/QUEST");
    		setBounds(29155, 10, 5, 0, Interface);
    		setBounds(29156, 165, 5, 1, Interface);
    		setBounds(29157, 3, 24, 2, Interface);
    		setBounds(29160, 5, 29, 3, Interface);
    		Interface = addInterface(29160);
    		Interface.height = 214;
    		Interface.width = 165;
    		Interface.scrollMax = 1700;
    		setChildren(105, Interface);
    		addText(29161, "Your Stats", 0xFF981F, false, true, 52, TDA, 2);
    		addHoverText(29162, "", "", TDA, 0, 0xff0000, false, true, 150);
    		addText(29163, "Owners", 0xFF981F, false, true, 52, TDA, 2);
    		addHoverText(29164, "@lre@Styl3r & Earthquake", "Kings", TDA, 0, 0xff0000, false, true, 150);
    		addText(29165, "Owners", 0xFF981F, false, true, 52, TDA, 2);
    		addHoverText(29166, "Styl3r & Earthquake", "Kings", TDA, 0, 0xff0000, false, true, 150);
    		setBounds(29161, 4, 4, 0, Interface);
    		setBounds(29162, 8, 22, 1, Interface);
    		setBounds(29163, 4, 35, 2, Interface);
    		setBounds(29164, 8, 53, 3, Interface);
    		setBounds(663, 4, 67, 4, Interface);
    		int Ypos = 83;
    		int frameID = 5;
    		for(int iD = 29165; iD <= 29264;iD++){
    			addHoverText(iD, "", "View Quest"/*"View Quest Journal, "+iD*/, TDA, 0, 0xff0000, false, true, 150);
    			setBounds(iD, 8, Ypos, frameID, Interface);
    			frameID++;
    			Ypos += 15;
    			Ypos++;
    		}
    		Interface = addInterface(29265);
    		try {
    			setChildren(4, Interface);
    			addText(29266, "Coming soon!", 0xFF981F, false, true, -1, TDA, 2);
    			addButton(29267, 1, "Interfaces/QuestTab/QUEST", 18, 18, "Swap to Player Info", 1);
    			addSprite(29269, 0, "Interfaces/QuestTab/QUEST");
    			setBounds(29266, 10, 5, 0, Interface);
    			setBounds(29267, 165, 5, 1, Interface);
    			setBounds(29269, 3, 24, 2, Interface);
    			setBounds(29268, 5, 29, 3, Interface);
    			Interface = addInterface(29268);
    			Interface.height = 214;
    			Interface.width = 165;
    			Interface.scrollMax = 1700;
    			setChildren(20, Interface);
    			setBounds(29295, 8, 4, 0, Interface);
    			setBounds(29296, 8, 16, 1, Interface);
    			setBounds(29297, 8, 29, 2, Interface);
    			setBounds(29298, 8, 42, 3, Interface);
    			setBounds(29299, 8, 54, 4, Interface);
    			setBounds(29300, 8, 66, 5, Interface);
    			setBounds(29301, 8, 78, 6, Interface);
    			setBounds(29302, 8, 90, 7, Interface);
    			setBounds(29303, 8, 102, 8, Interface);
    			setBounds(29304, 8, 114, 9, Interface);
    			setBounds(29305, 8, 126, 10, Interface);
    			setBounds(29306, 8, 138, 11, Interface);
    			setBounds(29307, 8, 150, 12, Interface);
    			setBounds(29308, 8, 162, 13, Interface);
    			setBounds(29309, 8, 174, 14, Interface);
    			setBounds(29310, 8, 186, 15, Interface);
    			setBounds(29311, 8, 198, 16, Interface);
    			setBounds(29312, 8, 210, 17, Interface);
    			setBounds(29313, 8, 222, 18, Interface);
    			setBounds(29314, 8, 234, 19, Interface);
    			addHoverText(29295, "", "", TDA, 1, 0xFF981F, false, true, 150);
    			addHoverText(29296, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29297, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29298, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29299, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29300, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29301, "", "", TDA, 1, 0xFF981F, false, true, 150);
    			addHoverText(29302, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29303, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29304, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29305, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29306, "", "", TDA,1, 0xFF981F, false, true, 150);
    			addHoverText(29307, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29308, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29309, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29310, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29311, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29312, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29313, "", "", TDA, 0, 0xff0000, false, true, 150);
    			addHoverText(29314, "", "", TDA, 0, 0xff0000, false, true, 150);
    			} catch(Exception e){
    				e.printStackTrace();
    		}	
    	}
    and client.java server sided

    Code:
    	public void handleQuestTab() {
    				getPA().sendFrame126("@lre@Players Online: "+PlayerHandler.getPlayerCount()+ " ", 29155); //quest journal title
    				getPA().sendFrame126("Your Stats:", 663);
    
    			getPA().sendFrame126("@lre@Combat Level: @gre@" +combatLevel+ " ", 29166);
    				getPA().sendFrame126("@lre@PK Points: @gre@" +rxPoints+ " ", 29168); //quest title
    			getPA().sendFrame126("@lre@Kill Count: @gre@"+barrowsKillCount, 29175);
      			getPA().sendFrame126("@gre@"+Server.days+" @lre@Days,@gre@ "+Server.hours+" @lre@Hours, @gre@ "+Server.minutes+" @lre@Min", 29176);
    			getPA().sendFrame126("@lre@Title: @gre@"+KillStreak.sendKillStreak(this), 29177);
    		getPA().sendFrame126("@lre@Killstreak: @gre@"+killStreak+"", 29178);
    		getPA().sendFrame126("@lre@Deathstreak: @gre@"+deathStreak+"", 29179);
    				getPA().sendFrame126("", 29180);					
    				getPA().sendFrame126("", 29181);
    				getPA().sendFrame126("", 29169);
    				getPA().sendFrame126("", 29170);
    				getPA().sendFrame126("", 29171);
    				getPA().sendFrame126("", 29172);
    				getPA().sendFrame126("", 29173);
    			    getPA().sendFrame126("", 29174);
    				}
    I want to clear all of the text off client, and only add the text from the server so it's like

    from the top:

    Your stats:
    cb level:
    PK points:
    Vote points:

    Sets:
    Melee set
    Hybrid Set
    Range Set

    Resources:
    Vengeance
    Barrage


    Etc, how do I make it?
    Reply With Quote  
     

  2. #2  
    Registered Member Thantyx's Avatar
    Join Date
    Feb 2013
    Posts
    8
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    bump
    Reply With Quote  
     

  3. #3  
    Registered

    Join Date
    Sep 2012
    Age
    29
    Posts
    1,984
    Thanks given
    774
    Thanks received
    846
    Rep Power
    5000
    Quote Originally Posted by Thantyx View Post
    bump
    was posted last year?
    Reply With Quote  
     

  4. #4  
    Registered Member Sakki54's Avatar
    Join Date
    Jul 2010
    Posts
    159
    Thanks given
    37
    Thanks received
    12
    Rep Power
    1
    And if you need help with this....

    Reply With Quote  
     


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. [Pi] Vote in Quest Tab [server sided]
    By Zerk3r in forum Snippets
    Replies: 13
    Last Post: 07-19-2012, 09:41 PM
  2. [PI] Opening interface for server-sided text
    By Sillhouette in forum Help
    Replies: 11
    Last Post: 07-15-2011, 10:55 PM
  3. [PI] Loading text server sided
    By Sillhouette in forum Help
    Replies: 16
    Last Post: 07-07-2011, 08:55 PM
  4. [PI] Remove This Text in Quest Tab
    By Vault in forum Help
    Replies: 17
    Last Post: 12-09-2010, 01:19 AM
  5. Remove all global objects (client-sided)
    By Zahhak in forum Configuration
    Replies: 5
    Last Post: 07-26-2009, 03:18 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •