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
    50
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    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("@[email protected] 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:

    [Only registered and activated users can see links. ]

    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  
    Rain keeps falling, tears keep falling



    Join Date
    Dec 2019
    Posts
    307
    Thanks given
    226
    Thanks received
    122
    Rep Power
    485
    Toms cache suite you can modify it.



    If this helps.
    Reply With Quote  
     

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



    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
    343
    Thanks given
    28
    Thanks received
    93
    Rep Power
    471
    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
    50
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    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
    343
    Thanks given
    28
    Thanks received
    93
    Rep Power
    471
    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
    26
    Posts
    4,107
    Thanks given
    266
    Thanks received
    521
    Rep Power
    685
    Try using packet 133 for it
    Reply With Quote  
     

  8. #8  
    what the dog doin

    cis priviledge's Avatar
    Join Date
    Aug 2017
    Posts
    909
    Thanks given
    678
    Thanks received
    696
    Rep Power
    4831
    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
    26
    Posts
    4,107
    Thanks given
    266
    Thanks received
    521
    Rep Power
    685
    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  
    Mikan Fanboy



    Omar's Avatar
    Join Date
    Dec 2007
    Posts
    206
    Thanks given
    363
    Thanks received
    525
    Rep Power
    4628
    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.

    [Only registered and activated users can see links. ]

    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.
    [Only registered and activated users can see links. ]

    Spoiler for aaaa:




    [Only registered and activated users can see links. ]
    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
  •