Thread: command interface

Results 1 to 7 of 7
  1. #1 command interface 
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    how would you make a command show an interface and how would you change the interface to show a list of server rules or updates?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    May 2010
    Posts
    54
    Thanks given
    0
    Thanks received
    2
    Rep Power
    3
    make a new command like this
    Code:
    if (command.equalsIgnoreCase("rules")){
    rules1();
            }
    now add this void
    Code:
    public void rules1() {
    		sendQuest("TITLE", 8144);
    		clearQuestInterface();
    		if(q10 == 15){
    		sendQuest("Line 1", 8147);
    		sendQuest("Line", 8148);
    		sendQuest("Line.", 8149);
    		sendQuest("Line", 8151);
    		sendQuest("Line", 8152);
    		sendQuest("Line", 8153);
    		sendQuest("Line", 8154);
    		sendQuest("Line", 8155);
    		sendQuest("Line", 8156);
    		sendQuest("Line", 8157);				
    		}
    		sendQuestSomething(8143);
    		showInterface(8134);
    		flushOutStream();
    			}
    Reply With Quote  
     

  3. #3  
    Registered Member ashitrin's Avatar
    Join Date
    Jul 2010
    Posts
    560
    Thanks given
    41
    Thanks received
    78
    Rep Power
    70
    Are you using PI, Delta, or what?
    Reply With Quote  
     

  4. #4  
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    oops thought i put ;P PI
    Reply With Quote  
     

  5. #5  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    this is my cmd for it

    Code:
    if (playerCommand.startsWith("interface")) {
    				String[] args = playerCommand.split(" ");
    				c.getPA().showInterface(Integer.parseInt(args[1]));
    			}
    Should alrdy have the showinterface method if not sayso.
    Reply With Quote  
     

  6. #6  
    Registered Member Scenemo's Avatar
    Join Date
    Apr 2011
    Posts
    283
    Thanks given
    12
    Thanks received
    0
    Rep Power
    1
    no not a command to show interfaces... um like ::rules and an interface like a book pops up and shows rules to your server
    Reply With Quote  
     

  7. #7  
    q.q


    Join Date
    Dec 2010
    Posts
    6,519
    Thanks given
    1,072
    Thanks received
    3,535
    Rep Power
    4752
    oh soz realy tired

    Code:
    if(playerCommand.startsWith("rules")) {
    	c.getPA().showInterface(RULEINTERFACEID); 
    	}
    You need to make the interface client sided in rsinterface.java if you don't have one, if you do just put in the correct id for it

    Mine is 17250 and was already in client so try that.
    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] Interface Command
    By Thani in forum Help
    Replies: 1
    Last Post: 10-19-2011, 01:00 AM
  2. 525 Hair Command With Interface
    By Xslaya in forum Help
    Replies: 3
    Last Post: 07-11-2010, 01:22 AM
  3. Interface Command
    By Vaio in forum Requests
    Replies: 0
    Last Post: 03-13-2010, 03:58 AM
  4. ::interface command please!!!
    By Nazi Fish in forum Help
    Replies: 2
    Last Post: 06-06-2009, 05:29 PM
  5. Show interface command
    By SODIO in forum Requests
    Replies: 2
    Last Post: 04-10-2009, 10:49 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
  •