Thread: How to remove arrows in book interface.

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 How to remove arrows in book interface. 
    Registered Member
    Join Date
    Apr 2013
    Posts
    63
    Thanks given
    3
    Thanks received
    2
    Rep Power
    36
    I have this interface with the book.

    Code:
    	public void ShielOfArravBook() {
    		int prev = (player.bookPage * 2) - 1;
    		int next = (player.bookPage * 2);
    		if(player.bookPage == 1) {
    			sendFrame126("@whi@ The Shield of Arrav", 903);//Title
    			sendFrame126("The Shield of Arrav",843); //line 1
    			sendFrame126("",844); //line 2
    			sendFrame126("by A. R. Wright",845); //line 3
    			sendFrame126("",846); //line 4
    			sendFrame126("",847); //line 5
    			sendFrame126("Arrav is probably the best",848); //line 6
    			sendFrame126("known hero of the 4th age.",849); //line 7
    			sendFrame126("Many legends are told of his",850); //line 8
    			sendFrame126("heroics. One surviving",851); //line 5
    			sendFrame126("artefact from the 4th age is a",852); //line 5
    			sendFrame126("fabulous shield.",853); //line 5
    			sendFrame126("This shield is believed to",854); //line 5
    			sendFrame126("have once belonged to",855); //line 5
    			sendFrame126("Arrav and is now indeed",856); //line 5
    			sendFrame126("known as the Shield of ",857); //line 5
    			sendFrame126("Arrav. Forover 150 years",858); //line 5
    			sendFrame126(" it was the prize piece",859); //line 5
    			sendFrame126("in the royal museum of",860);
    			sendFrame126("Varrock",861);
    			sendFrame126("",862);
    			sendFrame126("",863);
    			sendFrame126("",864);
    			sendFrame126("Page-" + prev,14165); 
    			sendFrame126("Page-" + next,14166);
    		}
                    showInterface(837); //shows the book interface
    		player.startAnimation(3141); //shows the player reading
    }
    The result:

    https://imgur.com/29ZHlek

    However, I would like to remove the left arrow on page 1. How would I go about doing this? I saw that interface(840) and interface(842) are the arrows but why do they appear in interface(837)?

    Thanks.
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Dec 2019
    Age
    31
    Posts
    376
    Thanks given
    361
    Thanks received
    214
    Rep Power
    0
    Toms cache suite you can modify it.

    Attached image

    If this helps.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Apr 2013
    Posts
    63
    Thanks given
    3
    Thanks received
    2
    Rep Power
    36
    Quote Originally Posted by idrc View Post
    Toms cache suite you can modify it.

    Attached image

    If this helps.
    Well OSRS has it removed, so surely its just an interface thing I need to do, rather then modifying the cache.
    Reply With Quote  
     

  4. #4  
    ¦¦¦ RuneTimes ¦¦¦

    RainDropzZ's Avatar
    Join Date
    Oct 2010
    Posts
    389
    Thanks given
    31
    Thanks received
    108
    Rep Power
    556
    Quote Originally Posted by gilbo184 View Post
    Well OSRS has it removed, so surely its just an interface thing I need to do, rather then modifying the cache.
    The interface is packed into the cache. The sendFrames you are executing just changing the text of a specific element from the cached interface
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2013
    Posts
    63
    Thanks given
    3
    Thanks received
    2
    Rep Power
    36
    Quote Originally Posted by RainDropzZ View Post
    The interface is packed into the cache. The sendFrames you are executing just changing the text of a specific element from the cached interface
    Yeah I see, but wouldnt there be an interface without the button? So that I wont have to change how its stored in cache?
    Reply With Quote  
     

  6. #6  
    ¦¦¦ RuneTimes ¦¦¦

    RainDropzZ's Avatar
    Join Date
    Oct 2010
    Posts
    389
    Thanks given
    31
    Thanks received
    108
    Rep Power
    556
    Quote Originally Posted by gilbo184 View Post
    Yeah I see, but wouldnt there be an interface without the button? So that I wont have to change how its stored in cache?
    Only if you use a true OSRS one. In the 317s theres only the one with the arrows,
    Reply With Quote  
     

  7. #7  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Try using packet 133 for it
    Reply With Quote  
     

  8. #8  
    Registered Member
    rebecca's Avatar
    Join Date
    Aug 2017
    Posts
    1,071
    Thanks given
    862
    Thanks received
    915
    Rep Power
    5000
    Quote Originally Posted by Nighel View Post
    Try using packet 133 for it
    server -> client - packet 133 doesnt exist in 317
    Reply With Quote  
     

  9. #9  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Quote Originally Posted by mikan View Post
    server -> client - packet 133 doesnt exist in 317
    Oh, here it is

    Packet size: 4
    Code:
    			if(pktType == 133)
    			{
    				int hide = inStream.readUnsignedByte();
    				boolean isMouseoverTriggered = hide == 1 ? true : false;
    				int interfaceIndex = inStream.readDWord();
    				Widget.interfaceCache[interfaceIndex].isMouseoverTriggered = isMouseoverTriggered;
    				pktType = -1;
    				return true;
    			}
    Reply With Quote  
     

  10. #10  


    Omar's Avatar
    Join Date
    Dec 2007
    Posts
    279
    Thanks given
    640
    Thanks received
    783
    Rep Power
    5000
    Quote Originally Posted by Nighel View Post
    Oh, here it is

    Packet size: 4
    Code:
    			if(pktType == 133)
    			{
    				int hide = inStream.readUnsignedByte();
    				boolean isMouseoverTriggered = hide == 1 ? true : false;
    				int interfaceIndex = inStream.readDWord();
    				Widget.interfaceCache[interfaceIndex].isMouseoverTriggered = isMouseoverTriggered;
    				pktType = -1;
    				return true;
    			}
    Only works with type 0 (parent/container) interfaces without modifying the draw interface methods. By default, it only "hides" interfaces if the hidden interface is a parent interface. For children, it doesn't even bother with the hidden functionality at all.

    https://github.com/zg/317-client/blo...ent.java#L3191

    Anyway, though, you can also totally do that by just setting the "enabled" sprite to be null and then adding CS1 to toggle the sprite on and off. You don't need a new packet for this.
    Attached image
    Reply With Quote  
     

  11. Thankful users:


Page 1 of 2 12 LastLast

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. How To Removing Objects In Map?
    By Matheus_Silva in forum Help
    Replies: 4
    Last Post: 10-30-2014, 04:11 PM
  2. Replies: 0
    Last Post: 12-22-2012, 12:08 AM
  3. How to remove alching in dementhium 637/639
    By Zandicus in forum Snippets
    Replies: 14
    Last Post: 05-12-2012, 05:16 AM
  4. Replies: 6
    Last Post: 09-26-2009, 10:36 AM
  5. Replies: 0
    Last Post: 08-20-2009, 07:38 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
  •