Thread: If SidebarInterface

Results 1 to 3 of 3
  1. #1 If SidebarInterface 
    Registered Member
    Join Date
    May 2012
    Posts
    40
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hey, I wonder if there's some way to do an action, if the SidebarInterface 11, is clicked.
    Example:
    Code:
    if(c.SidebarInterface == 11) {
         Code here
    }
    Reply With Quote  
     

  2. #2  
    need java lessons
    Eclipse's Avatar
    Join Date
    Aug 2012
    Posts
    4,436
    Thanks given
    686
    Thanks received
    898
    Rep Power
    490
    Of course, this is for the magic sidebar:

    Code:
    	public void switchSpellBook() {
    		if (c.playerMagicBook < 2)
    			c.playerMagicBook++;
    		else 
    			c.playerMagicBook = 0;
    		c.sendMessage("You switch to " + spellBooks[c.playerMagicBook] + " magics.");
    		c.setSidebarInterface(6, spellBook[c.playerMagicBook]);
    		c.getItems().sendWeapon(c.playerEquipment[c.playerWeapon], c.getItems().getItemName(c.playerEquipment[c.playerWeapon]));
    		c.autocastId = -1;
    		c.getPA().resetAutocast();
    	}
    Although you wouldn't really need an "if" statement unless you're switching between different interfaces.

    Quote Originally Posted by jerryrocks317 View Post
    i am 14 and have my own laptop im on almost 24/7 currently creating rsps lol so please get off my thread lol
    Reply With Quote  
     

  3. #3  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    There's a packet for it in the 459, not sure what the packet is in 317 but you could create a packet for 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. [HELP] SidebarInterface
    By Milf in forum Help
    Replies: 2
    Last Post: 09-27-2012, 02:07 PM
  2. Sidebarinterface config's
    By Mr Impact in forum Help
    Replies: 3
    Last Post: 11-03-2010, 08:32 PM
  3. no sidebarinterface redstone???
    By luvgirl12345 in forum Help
    Replies: 0
    Last Post: 04-20-2009, 09:04 PM
  4. Sidebarinterface Help?
    By AcHoZeN™ in forum Help
    Replies: 1
    Last Post: 03-22-2009, 06:53 PM
  5. SidebarInterface
    By ºKubanº in forum Help
    Replies: 0
    Last Post: 01-01-2009, 05: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
  •