Thread: Texture Inventory Etc animating.

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 Texture Inventory Etc animating. 
    nice


    Join Date
    Jul 2014
    Posts
    740
    Thanks given
    382
    Thanks received
    562
    Rep Power
    4239
    What ur getting:
    done on Ruse [Also works on most if not all other 317 clients] - Tested on vencillio/ruse only tho. [ Also works in banks, duel screens etc ]
    -Ruse
    Attached image

    Attached image

    -Vencillio
    Attached image
    Attached image


    CODE:

    Code:
    ItemDef.java (ItemDefinition in some clients)
    Add a new boolean called
    Code:
    animateInventory
    - (can be called anything else, but thats just how i named it) - Make sure to add it outside an method
    find
    Code:
    public static Sprite getSprite(int i, int j, int k) {
    below
    Code:
    if (itemDef.lentItemID != -1) {
    			int l5 = sprite.maxWidth;
    			int j6 = sprite.maxHeight;
    			sprite.maxWidth = 32;
    			sprite.maxHeight = 32;
    			sprite.drawSprite(0, 0);
    			sprite.maxWidth = l5;
    			sprite.maxHeight = j6;
    		}
    replace ur k equals to 0 if statement with this
    Code:
     		if (k == 0 && !itemDef.animateInventory) {
    			spriteCache.put(sprite2, i);
    		}
    above
    Code:
    switch(i) {
    add
    Code:
    switch(itemDef.id) {
    		case 6570:
    			itemDef.animateInventory = true;
    			break;
    		}
    Keep in mind u don't have to load them like this, several other ways but thats just the easiest way.

    And thats it

    Credit: Wally/Wallied for showing me how to do it.

    NOTE: this will affect ur performance, especially if ur going to add like 100 leeched texturized items from ds in the switch statement.
    Last edited by Suic; 03-13-2019 at 10:33 AM. Reason: Credit
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Registered Member
    Join Date
    Jul 2015
    Posts
    451
    Thanks given
    15
    Thanks received
    58
    Rep Power
    55
    Loool
    Reply With Quote  
     

  4. #3  
    WhiteDownMb | HYBRID JEFE
    Brett the Don's Avatar
    Join Date
    Dec 2009
    Posts
    2,117
    Thanks given
    349
    Thanks received
    556
    Rep Power
    2540
    Good job I guess some will find use for it!

    All of humanity's problems stem from man's
    inability to sit quietly in a room by himself




    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Feb 2015
    Posts
    11
    Thanks given
    6
    Thanks received
    2
    Rep Power
    4
    goodjob suic.
    Reply With Quote  
     

  6. #5  
    Banned
    Join Date
    Sep 2017
    Posts
    339
    Thanks given
    24
    Thanks received
    30
    Rep Power
    0
    Good job thanks for this
    Reply With Quote  
     

  7. #6  
    Registered Member

    Join Date
    Oct 2017
    Age
    23
    Posts
    215
    Thanks given
    211
    Thanks received
    113
    Rep Power
    300
    you should give credits to the person who made this
    none the less, nice.
    Spoiler for signature too large:
    end me
    Attached image
    Attached image
    Reply With Quote  
     

  8. #7  
    Banned


    Join Date
    Mar 2017
    Posts
    391
    Thanks given
    227
    Thanks received
    261
    Rep Power
    0
    nice brotha, too bad there's no toggle option for taco capes
    Reply With Quote  
     

  9. Thankful user:


  10. #8  
    Registered Member
    Pwned901's Avatar
    Join Date
    Nov 2013
    Posts
    596
    Thanks given
    29
    Thanks received
    99
    Rep Power
    101
    Quote Originally Posted by Suic View Post
    What ur getting:
    done on Ruse [Also works on most if not all other 317 clients] - Tested on vencillio/ruse only tho. [ Also works in banks, duel screens etc ]
    -Ruse
    Attached image

    Attached image

    -Vencillio
    Attached image
    Attached image


    CODE:

    Code:
    ItemDef.java (ItemDefinition in some clients)
    Add a new boolean called
    Code:
    animateInventory
    - (can be called anything else, but thats just how i named it) - Make sure to add it outside an method
    find
    Code:
    public static Sprite getSprite(int i, int j, int k) {
    below
    Code:
    if (itemDef.lentItemID != -1) {
    			int l5 = sprite.maxWidth;
    			int j6 = sprite.maxHeight;
    			sprite.maxWidth = 32;
    			sprite.maxHeight = 32;
    			sprite.drawSprite(0, 0);
    			sprite.maxWidth = l5;
    			sprite.maxHeight = j6;
    		}
    replace ur k equals to 0 if statement with this
    Code:
     		if (k == 0 && !itemDef.animateInventory) {
    			spriteCache.put(sprite2, i);
    		}
    above
    Code:
    switch(i) {
    add
    Code:
    switch(itemDef.id) {
    		case 6570:
    			itemDef.animateInventory = true;
    			break;
    		}
    Keep in mind u don't have to load them like this, several other ways but thats just the easiest way.

    And thats it

    NOTE: this will affect ur performance, especially if ur going to add like 100 leeched texturized items from ds in the switch statement.
    they cant anymore none the less good job
    Reply With Quote  
     

  11. Thankful user:


  12. #9  
    nice


    Join Date
    Jul 2014
    Posts
    740
    Thanks given
    382
    Thanks received
    562
    Rep Power
    4239
    Quote Originally Posted by Omni View Post
    nice brotha, too bad there's no toggle option for taco capes
    a 30 color palette texture doesn't deserve a option

    Quote Originally Posted by Bitshifting View Post
    you should give credits to the person who made this
    none the less, nice.
    Yeah indeed. Wally showed me how to do this initially, and i just improved it to make it way easier.
    Reply With Quote  
     

  13. #10  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,761
    Thanks given
    75
    Thanks received
    714
    Rep Power
    1073
    Quote Originally Posted by Suic View Post
    a 30 color palette texture doesn't deserve a option



    Yeah indeed. Wally showed me how to do this initially, and i just improved it to make it way easier.
    Pretty sure you bought this off me initially
    Reply With Quote  
     

  14. Thankful user:


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. Replies: 3
    Last Post: 11-02-2013, 05:24 PM
  2. 718 weapons stand/walk ,etc anims
    By DoomZ in forum Requests
    Replies: 5
    Last Post: 07-15-2013, 07:51 AM
  3. Replies: 6
    Last Post: 05-29-2010, 09:16 AM
  4. Hide inventory etc. on 317 deob?
    By Waltzing Mouse in forum Help
    Replies: 3
    Last Post: 10-15-2008, 04:46 PM
  5. Animated Textures
    By Minigame in forum RS2 Client
    Replies: 3
    Last Post: 03-08-2008, 09:39 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
  •