Thread: 718 + Adding text to this interface.

Results 1 to 5 of 5
  1. #1 718 + Adding text to this interface. 
    Extreme Donator

    Skrew's Avatar
    Join Date
    Jul 2011
    Posts
    894
    Thanks given
    166
    Thanks received
    121
    Rep Power
    122
    Hi,

    So the interface I'm using is the notes interface (34). I currently have it set up how I want it, now I need a way add text.

    Heres what it looks like at the moment: http://prntscr.com/3sl084

    I've tried just basic sending text to the interface but it's not showing up.
    Reply With Quote  
     

  2. #2  
    Registered Member Sjonsen's Avatar
    Join Date
    May 2012
    Posts
    321
    Thanks given
    15
    Thanks received
    44
    Rep Power
    20
    If this is any help to you, my source has a command to add notes. Not sure if it works or not, but I hope it can help you somehow.

    In the command:

    Code:
    player.getNotes().add(new Note(cmd[1], 1));
    				player.getNotes().refresh();
    This is the add method:

    Code:
    public boolean add(Note note) {
    		if (notes.size() >= 30) {
    			player.getPackets().sendGameMessage("You may only have 30 notes!",
    					true);
    			return false;
    		}
    		if (note.text.length() > 50) {
    			player.getPackets().sendGameMessage(
    					"You can only enter notes up to 50 characters!", true);
    			return false;
    		}
    		int id = notes.size();
    		player.getPackets().sendConfig(1439, id);
    		player.getPackets().sendGlobalString(149 + id, note.text);
    		player.getTemporaryAttributtes().put("curNote", note);
    		return notes.add(note);
    	}
    Reply With Quote  
     

  3. #3  
    Extreme Donator

    Skrew's Avatar
    Join Date
    Jul 2011
    Posts
    894
    Thanks given
    166
    Thanks received
    121
    Rep Power
    122
    Quote Originally Posted by Sjonsen View Post
    If this is any help to you, my source has a command to add notes. Not sure if it works or not, but I hope it can help you somehow.

    In the command:

    Code:
    player.getNotes().add(new Note(cmd[1], 1));
    				player.getNotes().refresh();
    This is the add method:

    Code:
    public boolean add(Note note) {
    		if (notes.size() >= 30) {
    			player.getPackets().sendGameMessage("You may only have 30 notes!",
    					true);
    			return false;
    		}
    		if (note.text.length() > 50) {
    			player.getPackets().sendGameMessage(
    					"You can only enter notes up to 50 characters!", true);
    			return false;
    		}
    		int id = notes.size();
    		player.getPackets().sendConfig(1439, id);
    		player.getPackets().sendGlobalString(149 + id, note.text);
    		player.getTemporaryAttributtes().put("curNote", note);
    		return notes.add(note);
    	}

    Thanks, I'll try working off this.
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Aug 2013
    Posts
    32
    Thanks given
    6
    Thanks received
    23
    Rep Power
    12
    it's a global string.
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Mar 2010
    Posts
    2,218
    Thanks given
    170
    Thanks received
    262
    Rep Power
    0
    Lol, looks like my old eco projects quest tab. Gl adding the "text" btw you gotta send a config then the string + disable the 'dragging' of the string.
    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. Replies: 5
    Last Post: 03-15-2014, 05:29 AM
  2. [508]How to add text to a interface[REP++]
    By lilfuzzy420 in forum Requests
    Replies: 2
    Last Post: 11-30-2010, 06:17 AM
  3. [REQUEST] Add nice text to this wallpaper
    By ciubas in forum Requests
    Replies: 0
    Last Post: 05-08-2010, 09:47 PM
  4. Adding text to your chatbox [Rookie]
    By Yanez in forum Snippets
    Replies: 2
    Last Post: 03-09-2010, 04:09 AM
  5. Replies: 3
    Last Post: 08-16-2009, 01:27 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
  •