Thread: osrs collection log

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 osrs collection log 
    dumb

    OOOOOOOOOOOOOO's Avatar
    Join Date
    Aug 2017
    Posts
    482
    Thanks given
    328
    Thanks received
    198
    Rep Power
    551
    posting some of my old work, cbb finishing this so just read this [Only registered and activated users can see links. ]
    not including any changes to client for things like hover opacity when hovered and switching sprites bc its so easy, this was made expecting u to implement the proper interface handling that the 317 client is missing bc it sucks
    if you're missing a method, ask and ill post it

    what you're adding:


    Code:
    public static void collectionLog(GameFont[] tda) {
    		Widget log = addTabInterface(54100);
    		Widget sideBar1 = addTabInterface(54150);
    		Widget sideItems = addTabInterface(54300);
    		sideBar1.width = 170;
    		sideBar1.height = 246;
    		sideBar1.scrollMax = 438;
    		sideItems.width = 270;
    		sideItems.height = 204;
    		sideItems.scrollMax = 247;
    		String[] options = {"Abyssal Sire", "Barrows", "Callisto", "Cerberus", "Chambers of Xeric", "Chaos Elemental", "Chaos Fanatic", "Commander Zilyana", "Corporeal Beast", "Crazy archaeologist", "Dagannoth Kings",
    							"General Graardor", "Giant Mole", "Grotesque Guardians", "K'ril Tsutsaroth", "Kalphite Queen", "King black dragon", "Kraken", "Kree'arra", "Scorpia", "Skotizo", "Theatre of Blood", "Thermonuclear smoke devil",
    							"TzTok-Jad", "TzKal-Zuk", "Venenatis", "Vet'ion", "Vorkath", "Zulrah"};
    		addSprite(54101, 857);
    		addSprite(54102, 859);
    		addButton(54103, 54100, 79, 20, 858, 859, 54104, "View", 1);
    		addHoveredButton_sprite_loader(54104, 859, 79, 20, 54105, 1);
    		addButton(54106, 54100, 79, 20, 858, 859, 54107, "View", 1);
    		addHoveredButton_sprite_loader(54107, 859, 79, 20, 54108, 1);
    		addText(54109, "Bosses", tda, 1, 0xff9933, false, true);
    		addText(54110, "Clues", tda, 1, 0xff9933, false, true);
    		addText(54111, "Minigames", tda, 1, 0xff9933, false, true);
    		addText(54302, "Abyssal Sire", tda, 2, 0xff9933, false, true);
    		addText(54303, "Obtained: <col=ff0000>0/9", tda, 0, 0xff9933, false, true);
    		addText(54304, "Abyssal Sire kills: <col=ffffff>1", tda, 0, 0xff9933, false, true);
    		for(int i = 0, j = 0; j < options.length; i+=2, j++) {
    			addTransButtonHover(54151 + i, 862, "View", (j % 2 == 0 ? 20 : 0), (j == 0 ? true : false));
    			addHoverText(54151 + (i + 1), options[j], "View", tda, 1, 0xff9933, false, true, 150, 11, 0xff9933);
    		}
    		
    		Widget container = addTabInterface(54301);
    		container.actions = new String[] {
    				"Quick-chat", null, null, null, null
    				
    		};
    		container.spritesX = new int[200];
    		container.spritesY = new int[200];
    		container.inventoryItemId = new int[200];
    		container.inventoryAmounts = new int[200];
    		container.centerText = true;
    		container.filled = false;
    		container.spritePaddingX = 13;
    		container.spritePaddingY = 5;
    		container.height = 10;
    		container.collection = true;
    		container.usableItems = false;
    		container.width = 6;
    		container.parent = 54200;
    		container.type = TYPE_INVENTORY;
    		
    		int logChild = 0;
    		int sideBar1Child = 0;
    		int y = 2;
    		log.totalChildren(14);
    		log.child(logChild++, 54101, 6, 13);
    		log.child(logChild++, 54150, 15, 70);
    		log.child(logChild++, 54300, 209, 112);
    		log.child(logChild++, 54102, 16, 49);
    		log.child(logChild++, 54109, 23, 52);
    		log.child(logChild++, 54103, 96, 49);
    		log.child(logChild++, 54104, 96, 49);
    		log.child(logChild++, 54106, 176, 49);
    		log.child(logChild++, 54107, 176, 49);
    		log.child(logChild++, 54110, 103, 52);
    		log.child(logChild++, 54111, 180, 52);
    		log.child(logChild++, 54302, 210, 72);
    		log.child(logChild++, 54303, 210, 96);
    		log.child(logChild++, 54304, 390, 96);
    		sideItems.totalChildren(1);
    		sideItems.child(0, 54301, 3, 3);
    		sideBar1.totalChildren(options.length * 2);
    		for(int i = 0, j = 0; j < options.length; i+=2, j++) {
    			sideBar1.child(sideBar1Child++, 54151 + i, 6, y);
    			sideBar1.child(sideBar1Child++, 54151 + (i + 1), 6, y);
    			y+= 15;
    		}
    	}
    Code:
    public static void addTransButtonHover(int id, int sid, String tooltip, int transparency, boolean selected) {
    		Widget tab = interfaceCache[id] = new Widget();
    		tab.id = id;
    		tab.parent = id;
    		tab.type = 5;
    		tab.atActionType = 1;
    		tab.contentType = 0;
    		tab.opacity = (byte) 0;
    		tab.hoverType = 52;
    		tab.disabledSprite = Client.cacheSprite[sid];// imageLoader(sid, spriteName);
    		tab.enabledSprite = Client.cacheSprite[sid];// imageLoader(sid, spriteName);
    		tab.width = tab.disabledSprite.myWidth;
    		tab.height = tab.enabledSprite.myHeight;
    		tab.drawsTransparent = true;
    		tab.transparency = transparency;
    		tab.tooltip = tooltip;
    		tab.mouseOver = false;
    		tab.selected = selected;
    	}
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


  2. #2  
    Registered Member
    Join Date
    Dec 2018
    Posts
    31
    Thanks given
    21
    Thanks received
    2
    Rep Power
    4
    Really like this man you are very good at interfaces, is there any chance at all you could re add me on discord to talk?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Tamatea's Avatar
    Join Date
    Aug 2010
    Posts
    1,082
    Thanks given
    344
    Thanks received
    224
    Rep Power
    263
    Thank you! Was literally just designing database handling on my server for this.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    May 2018
    Age
    20
    Posts
    18
    Thanks given
    4
    Thanks received
    7
    Rep Power
    11
    missing this: addButton(54103, 54100, 79, 20, 858, 859, 54104, "View", 1);
    addButton(int, int, int, int, int, int, int, String, int);

    and this: addHoverText(54151 + (i + 1), options[j], "View", tda, 1, 0xff9933, false, true, 150, 11, 0xff9933);

    addHoverText(int, String[], String, TextDrawingArea[], int, int, Boolean, Boolean, int, int, int);

    and this: TYPE_INVENTORY
    Reply With Quote  
     

  5. #5  
    Owner of RuneOps (Undercon)

    Join Date
    Sep 2012
    Posts
    28
    Thanks given
    2
    Thanks received
    2
    Rep Power
    11
    Could someone help me with this server side? Cheers
    Reply With Quote  
     

  6. #6  
    Banned

    Join Date
    Oct 2012
    Posts
    4,723
    Thanks given
    1,684
    Thanks received
    1,099
    Rep Power
    0
    Quote Originally Posted by Austin X View Post
    missing this: addButton(54103, 54100, 79, 20, 858, 859, 54104, "View", 1);
    addButton(int, int, int, int, int, int, int, String, int);

    and this: addHoverText(54151 + (i + 1), options[j], "View", tda, 1, 0xff9933, false, true, 150, 11, 0xff9933);

    addHoverText(int, String[], String, TextDrawingArea[], int, int, Boolean, Boolean, int, int, int);

    and this: TYPE_INVENTORY
    Its a snippet you'll have to find the naming that fits your client.
    Reply With Quote  
     

  7. #7  
    🎶 As you're falling down 🎶

    i_pk_pjers_i's Avatar
    Join Date
    Feb 2015
    Posts
    1,277
    Thanks given
    4,868
    Thanks received
    566
    Rep Power
    2134
    This is cool, thanks for sharing.
    [Only registered and activated users can see links. ]
    Vouches (22, many more available upon request): [Only registered and activated users can see links. ] and [Only registered and activated users can see links. ]

    LOL : [Only registered and activated users can see links. ]

    Made me smile : [Only registered and activated users can see links. ]

    I'm honored : [Only registered and activated users can see links. ]

    Quote Originally Posted by Idiot Bird View Post
    Quote Originally Posted by Velocity View Post
    lol np mate looks like the community brought ur rep down to ur IQ
    Not too sure about that, it's at 0 . It would have to go minus to even be remotely close to his IQ.
    Reply With Quote  
     

  8. #8  
    Registered Member Vito the Don's Avatar
    Join Date
    Feb 2019
    Age
    21
    Posts
    75
    Thanks given
    6
    Thanks received
    16
    Rep Power
    66
    Looks really nice tbh thanks
    The Dons
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jan 2016
    Posts
    161
    Thanks given
    26
    Thanks received
    2
    Rep Power
    11
    Anyone can reupload this ?
    Broken links.
    Reply With Quote  
     

  10. #10  
    dumb

    OOOOOOOOOOOOOO's Avatar
    Join Date
    Aug 2017
    Posts
    482
    Thanks given
    328
    Thanks received
    198
    Rep Power
    551
    oops i totally shoulda backed up my stuff from the old web server, ill see if i still have it on my pc
    Reply With Quote  
     

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)

Similar Threads

  1. Selling my OSRS Flipping Log/ Database
    By RiiPiiNFtW in forum Selling
    Replies: 2
    Last Post: 05-05-2017, 09:25 PM
  2. OSRS Progress Log - Subtle Brag
    By God Complex in forum Media
    Replies: 5
    Last Post: 09-06-2016, 03:44 AM
  3. OSRS Drop Log Application
    By Snoopya1a in forum Projects
    Replies: 0
    Last Post: 02-23-2016, 10:52 AM
  4. I Know Wood's OSRS Adventure Log
    By Xoath in forum Media
    Replies: 5
    Last Post: 01-23-2016, 11:21 AM
  5. Brady's (OSR 2007) log.
    By Brady in forum Media
    Replies: 12
    Last Post: 03-21-2014, 08:22 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
  •