Thread: Money Vault (First Interface I've Ever Made)

Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26
  1. #21  
    Registered Member Sheddy's Avatar
    Join Date
    Jul 2009
    Age
    31
    Posts
    1,053
    Thanks given
    56
    Thanks received
    89
    Rep Power
    69
    Quote Originally Posted by Cryptic7th View Post
    Reupload..?
    Done.

    MoneyVault.zip - 141 KB

    There you go!
    Reply With Quote  
     

  2. #22  
    Registered Member jdakiller2's Avatar
    Join Date
    Dec 2013
    Posts
    433
    Thanks given
    13
    Thanks received
    7
    Rep Power
    19
    Reupload???
    Reply With Quote  
     

  3. #23  
    Registered Member Sheddy's Avatar
    Join Date
    Jul 2009
    Age
    31
    Posts
    1,053
    Thanks given
    56
    Thanks received
    89
    Rep Power
    69
    Reuploaded Sprites.
    Reply With Quote  
     

  4. #24  
    Registered Member Sheddy's Avatar
    Join Date
    Jul 2009
    Age
    31
    Posts
    1,053
    Thanks given
    56
    Thanks received
    89
    Rep Power
    69
    ADDED SPRITES!

    Here is an alternate Interface setup that I created just now. Tweaked some of the text to make it appeal to the eye better.

    Just replace sidebar 0.png with the following.

    Reply With Quote  
     

  5. #25  
    Registered Member Final Form's Avatar
    Join Date
    Aug 2015
    Posts
    29
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Downsx View Post
    IF YOU DID THIS BEFORE 9/28/2013 REDO IT FOR HOVERBUTTON SUPPORT!

    This was the first interface, I have ever made from scratch. It needs some work, I'm still trying to find out how to drawClickedButtons but I think it's pretty nice for my first one.

    What You're Adding:

    Download these Sprites [REUPLOADED 8/18/14]
    MoneyVault.zip - 141 KB

    Okay now for the tutorial:

    First, In RSInterface.java add this Interface
    Code:
    public static void moneyTab(TextDrawingArea[] TDA) {
    		RSInterface intmoneyTab = addTab(8000);
    		 intmoneyTab.children = new int[11];
    		intmoneyTab.childX = new int[11];
    		intmoneyTab.childY = new int[11];
    		intmoneyTab.children[0] = 8001;
    		intmoneyTab.childX[0] = 0;
    		intmoneyTab.childY[0] = 0;
    		//Main sprite
    		addSprite(8001, 0, "Interfaces/MoneyVault/sidebar");
    		
    		intmoneyTab.children[1] = 8002;
    		intmoneyTab.childX[1] = 87;
    		intmoneyTab.childY[1] = 75;
    		addText(8002, "1", TDA, 0, 16750623, true, true);
    		
    		intmoneyTab.children[2] = 8003;
    		intmoneyTab.childX[2] = 130;
    		intmoneyTab.childY[2] = 92;
    		addHoverButton(8003, "Interfaces/MoneyVault/deposit", 0, 32, 32, "Deposit to Vault", 1803, 8004, 1);
    		
    		intmoneyTab.children[3] = 8004;
    		intmoneyTab.childX[3] = 130;
    		intmoneyTab.childY[3] = 92;
    		addHoveredButton(8004, "Interfaces/MoneyVault/deposit", 1, 32, 32, 8005);
    		
    		intmoneyTab.children[4] = 8006;
    		intmoneyTab.childX[4] = 17;
    		intmoneyTab.childY[4] = 204;
    		addHoverButton(8006, "Interfaces/MoneyVault/taxBag", 0, 32, 32, "Purchase a Tax Bag", -1, 8007, 1); //TODO: Change the tooltip text
    		
    		intmoneyTab.children[5] = 8007;
    		intmoneyTab.childX[5] = 17;
    		intmoneyTab.childY[5] = 204;
    		addHoveredButton(8007, "Interfaces/MoneyVault/taxBag", 1, 32, 32, 8008); //TODO: Change the tooltip text
    	
    		intmoneyTab.children[6] = 8009;
    		intmoneyTab.childX[6] = 130;
    		intmoneyTab.childY[6] = 204;
    		addHoverButton(8009, "Interfaces/MoneyVault/yellBubble", 0, 32, 32, "Purchase Yell Tickets", -1, 8010, 1); 
    		
    		intmoneyTab.children[7] = 8010;
    		intmoneyTab.childX[7] = 130;
    		intmoneyTab.childY[7] = 204;
    		addHoveredButton(8010, "Interfaces/MoneyVault/yellBubble", 1, 32, 32, 8011); 
    	
    		intmoneyTab.children[8] = 8012;
    		intmoneyTab.childX[8] = 20;
    		intmoneyTab.childY[8] = 94;
    		addHoverButton(8012, "Interfaces/MoneyVault/withDraw", 0, 32, 32, "Withdraw from Vault", 1804, 8013, 1);
    		
    		intmoneyTab.children[9] = 8013;
    		intmoneyTab.childX[9] = 20;
    		intmoneyTab.childY[9] = 94;
    		addHoveredButton(8013, "Interfaces/MoneyVault/withDraw", 1, 32, 32, 8014);
    		
    		intmoneyTab.children[10] = 8016;
    		intmoneyTab.childX[10] = 87;
    		intmoneyTab.childY[10] = 135;
    		addText(8016, "Balance", TDA, 0, 16750623, true, true);
    	}
    Also in RSInterface, add under "aClass44 = archive;"
    Code:
    moneyTab(textDrawingAreas);
    Now open Client.java and Search for
    Code:
    if(friendsListAction == 2 && friendsCount > 0) {
    under that If statement add these
    Code:
    if(interfaceButtonAction == 502 && promptInput.length() > 0) {
    						inputString = "::deposit "+promptInput;
    						System.out.println(inputString);
    						sendPacket(103);
    					}
    					if(interfaceButtonAction == 503 && promptInput.length() > 0) {
    						inputString = "::withdraw "+promptInput;
    						System.out.println(inputString);
    						sendPacket(103);
    					}
    Now still in Client.java search for
    Code:
    private boolean promptUserForInput(
    in that with the rest of these add these:
    Code:
    if(j == 1803) {
    			inputTaken = true;
    			messagePromptRaised = true;
    			amountOrNameInput = "";
    			inputDialogState = 0;
    			interfaceButtonAction = 502;
    			aString1121 = "Enter Amount to Deposit";
    		}
    		if(j == 1804) {
    			inputTaken = true;
    			messagePromptRaised = true;
    			amountOrNameInput = "";
    			inputDialogState = 0;
    			interfaceButtonAction = 503;
    			aString1121 = "Enter Amount to Withdraw";
    		}
    IF NEEDED: Declare this Int and Method
    Code:
    static int interfaceButtonAction = 0;
    	
    	void sendPacket(int packet) {
    			if (packet == 103) {
    			stream.createFrame(103);
    			stream.writeWordBigEndian(inputString.length() - 1);
    			stream.writeString(inputString.substring(2));
    			inputString = "";
    			promptInput = "";
    			interfaceButtonAction = 0;
    		}
    	}
    Thanks for viewing my post, I will be posting the Server - Sided part of this as soon as possible.

    Edit:

    Server Sided:
    http://www.rune-server.org/runescape...ml#post4174668
    I like this, but personally think it'd be easier just to add a money pouch.
    Reply With Quote  
     

  6. #26  
    Registered Member Stevenhax's Avatar
    Join Date
    Jul 2014
    Posts
    387
    Thanks given
    55
    Thanks received
    64
    Rep Power
    42
    Thanks for the contribution, I still prefer the money pouch though.
    Reply With Quote  
     

Page 3 of 3 FirstFirst 123

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. Replies: 1
    Last Post: 08-21-2012, 11:23 AM
  2. Rate My Best Brush I've Ever Made
    By Burkey in forum Showcase
    Replies: 14
    Last Post: 02-16-2008, 02:55 AM
  3. Replies: 16
    Last Post: 12-26-2007, 03:06 PM
  4. first photoshoped picture ive ever made:D
    By lattmjolk1 in forum Showcase
    Replies: 3
    Last Post: 11-09-2007, 11:25 PM
  5. All Of My Begginer Siggs I've ever Made
    By Numbers in forum Showcase
    Replies: 0
    Last Post: 06-07-2007, 07:46 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
  •