Thread: Req 718 Named item def variables

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Req 718 Named item def variables 
    Registered Member
    Join Date
    Dec 2014
    Posts
    348
    Thanks given
    20
    Thanks received
    5
    Rep Power
    8
    Does anybody have/is willing to release a named item definition variable decoder?

    For example, form matrix718 (unnamed variables):

    Code:
             //ItemDefinitions#forId(11694)#readValues(cacheInputStream)
    
                             if (opcode == 1)
    	
    			  modelId = stream.readBigSmart();
    	
    			 else if (opcode == 2)
    	
    			  name = stream.readString();
    
                 //etc...
    		 
    		 	 else if (opcode == 111)
    
    			  unknownInt8 = stream.readUnsignedShort();
    
    			 else if (opcode == 112)
    
    			  unknownInt9 = stream.readUnsignedShort();
    
    			 else if (opcode == 113)
    
    			  unknownInt10 = stream.readByte();
    
    			 else if (opcode == 114)
    
    			  unknownInt11 = stream.readByte() * 5;
    There are a lot more unknown items in matrix.

    Has anyone named them all?
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2011
    Posts
    1,767
    Thanks given
    493
    Thanks received
    425
    Rep Power
    0
    I might still have my client on my USB which have most of them renamed, i'll check when i'm home and get back 2 u
    Reply With Quote  
     

  3. #3  
    Soon to be a Blaziken

    Torchic's Avatar
    Join Date
    Mar 2011
    Age
    29
    Posts
    1,711
    Thanks given
    14
    Thanks received
    452
    Rep Power
    529
    Code:
    if (opcode == 1) {
                interfaceModelId = buffer.getUShort();
            } else if (opcode == 2) {
                name = buffer.getString();
            } else if (opcode == 4) {
                modelZoom = buffer.getUShort();
            } else if (opcode == 5) {
                modelRotationY = buffer.getUShort();
            } else if (opcode == 6) {
                modelRotationX = buffer.getUShort();
            } else if (opcode == 7) {
                modelOffsetX = buffer.getUShort();
                if (modelOffsetX > 32767) {
                    modelOffsetX -= 65536;
                }
            } else if (opcode == 8) {
                modelOffsetY = buffer.getUShort();
                if (modelOffsetY > 32767) {
                    modelOffsetY -= 65536;
                }
            } else if (opcode == 11) {
                stackable = 1;
            } else if (opcode == 12) {
                value = buffer.getInt();
            } else if (opcode == 16) {
                membersItem = true;
            } else if (opcode == 23) {
                maleWornModelId1 = buffer.getUShort();
                if (revision < 0) {
                    maleWornOffset = buffer.getByte();
                }
            } else if (opcode == 24) {
                maleWornModelId2 = buffer.getUShort();
            } else if (opcode == 25) {
                femaleWornModelId1 = buffer.getUShort();
            } else if (opcode == 26) {
                femaleWornModelId2 = buffer.getUShort();
            } else if (opcode >= 30 && opcode < 35) {
                groundActions[opcode - 30] = buffer.getString();
            } else if (opcode >= 35 && opcode < 40) {
                inventoryActions[opcode - 35] = buffer.getString();
            } else if (opcode == 40) {
                int length = buffer.getUByte();
                originalModelColors = new short[length];
                modifiedModelColors = new short[length];
                for (int i = 0; i < length; i++) {
                    modifiedModelColors[i] = (short) buffer.getUShort();
                    originalModelColors[i] = (short) buffer.getUShort();
                }
            } else if (opcode == 41) {
                int length = buffer.getUByte();
                textureColor1 = new short[length];
                textureColor2 = new short[length];
                for (int i = 0; i < length; i++) {
                    textureColor2[i] = (short) buffer.getUShort();
                    textureColor1[i] = (short) buffer.getUShort();
                }
            } else if (opcode == 42) {
                anInt2173 = buffer.getByte();
            } else if (opcode == 65) {
                unnoted = true;
            } else if (opcode == 78) {
                colorEquip1 = buffer.getUShort();
            } else if (opcode == 79) {
                colorEquip2 = buffer.getUShort();
            } else if (opcode == 90) {
                maleWornModelId3 = buffer.getUShort();
            } else if (opcode == 91) {
                femaleWornModelId3 = buffer.getUShort();
            } else if (opcode == 92) {
                maleWornModelId4 = buffer.getUShort();
            } else if (opcode == 93) {
                femaleWornModelId4 = buffer.getUShort();
            } else if (opcode == 95) {
                anInt768 = buffer.getUShort();
            } else if (opcode == 96) {
                itemType = buffer.getUByte();
            } else if (opcode == 97) {
                noteId = buffer.getUShort();
            } else if (opcode == 98) {
                noteTemplateId = buffer.getUShort();
            } else if (opcode >= 100 && opcode < 110) {
                if (stackIds == null) {
                    stackIds = new int[10];
                    stackAmounts = new int[10];
                }
                stackIds[opcode - 100] = buffer.getUShort();
                stackAmounts[opcode - 100] = buffer.getUShort();
            } else if (opcode == 110) {
                resizeX = buffer.getUShort();
            } else if (opcode == 111) {
                resizeY = buffer.getUShort();
            } else if (opcode == 112) {
                resizeZ = buffer.getUShort();
            } else if (opcode == 113) {
                brightness = buffer.getByte();
            } else if (opcode == 114) {
                contrast = 5 * buffer.getByte();
            } else if (opcode == 115) {
                teamId = buffer.getUByte();
            } else if (opcode == 121) {
                lendId = buffer.getUShort();
            } else if (opcode == 122) {
                lendTemplateId = buffer.getUShort();
            } else if (opcode == 125) {
                wornModelPositionX = buffer.getByte();
                wornModelPositionY = buffer.getByte();
                wornModelPositionZ = buffer.getByte();
            } else if (opcode == 126) {
                anInt777 = buffer.getByte();
                anInt802 = buffer.getByte();
                anInt752 = buffer.getByte();
            } else if (opcode == 127) {
                anInt767 = buffer.getUByte();
                anInt758 = buffer.getUShort();
            } else if (opcode == 128) {
                anInt788 = buffer.getUByte();
                anInt756 = buffer.getUShort();
            } else if (opcode == 129) {
                anInt803 = buffer.getUByte();
                anInt804 = buffer.getUShort();
            } else if (opcode == 130) {
                anInt805 = buffer.getUByte();
                anInt806 = buffer.getUShort();
            } else if (opcode == 139) {
                recolourId = buffer.getUShort();
            } else if (opcode == 140) {
                recolourTemplate = buffer.getUShort();
            } else if (opcode == 148) {
                anInt1879 = buffer.getUShort();
            } else if (opcode == 149) {
                anInt1833 = buffer.getUShort();
            }

    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    Dec 2009
    Posts
    774
    Thanks given
    367
    Thanks received
    455
    Rep Power
    927
    Quote Originally Posted by Torchic View Post
    Code:
    if (opcode == 1) {
                interfaceModelId = buffer.getUShort();
            } else if (opcode == 2) {
                name = buffer.getString();
            } else if (opcode == 4) {
                modelZoom = buffer.getUShort();
            } else if (opcode == 5) {
                modelRotationY = buffer.getUShort();
            } else if (opcode == 6) {
                modelRotationX = buffer.getUShort();
            } else if (opcode == 7) {
                modelOffsetX = buffer.getUShort();
                if (modelOffsetX > 32767) {
                    modelOffsetX -= 65536;
                }
            } else if (opcode == 8) {
                modelOffsetY = buffer.getUShort();
                if (modelOffsetY > 32767) {
                    modelOffsetY -= 65536;
                }
            } else if (opcode == 11) {
                stackable = 1;
            } else if (opcode == 12) {
                value = buffer.getInt();
            } else if (opcode == 16) {
                membersItem = true;
            } else if (opcode == 23) {
                maleWornModelId1 = buffer.getUShort();
                if (revision < 0) {
                    maleWornOffset = buffer.getByte();
                }
            } else if (opcode == 24) {
                maleWornModelId2 = buffer.getUShort();
            } else if (opcode == 25) {
                femaleWornModelId1 = buffer.getUShort();
            } else if (opcode == 26) {
                femaleWornModelId2 = buffer.getUShort();
            } else if (opcode >= 30 && opcode < 35) {
                groundActions[opcode - 30] = buffer.getString();
            } else if (opcode >= 35 && opcode < 40) {
                inventoryActions[opcode - 35] = buffer.getString();
            } else if (opcode == 40) {
                int length = buffer.getUByte();
                originalModelColors = new short[length];
                modifiedModelColors = new short[length];
                for (int i = 0; i < length; i++) {
                    modifiedModelColors[i] = (short) buffer.getUShort();
                    originalModelColors[i] = (short) buffer.getUShort();
                }
            } else if (opcode == 41) {
                int length = buffer.getUByte();
                textureColor1 = new short[length];
                textureColor2 = new short[length];
                for (int i = 0; i < length; i++) {
                    textureColor2[i] = (short) buffer.getUShort();
                    textureColor1[i] = (short) buffer.getUShort();
                }
            } else if (opcode == 42) {
                anInt2173 = buffer.getByte();
            } else if (opcode == 65) {
                unnoted = true;
            } else if (opcode == 78) {
                colorEquip1 = buffer.getUShort();
            } else if (opcode == 79) {
                colorEquip2 = buffer.getUShort();
            } else if (opcode == 90) {
                maleWornModelId3 = buffer.getUShort();
            } else if (opcode == 91) {
                femaleWornModelId3 = buffer.getUShort();
            } else if (opcode == 92) {
                maleWornModelId4 = buffer.getUShort();
            } else if (opcode == 93) {
                femaleWornModelId4 = buffer.getUShort();
            } else if (opcode == 95) {
                anInt768 = buffer.getUShort();
            } else if (opcode == 96) {
                itemType = buffer.getUByte();
            } else if (opcode == 97) {
                noteId = buffer.getUShort();
            } else if (opcode == 98) {
                noteTemplateId = buffer.getUShort();
            } else if (opcode >= 100 && opcode < 110) {
                if (stackIds == null) {
                    stackIds = new int[10];
                    stackAmounts = new int[10];
                }
                stackIds[opcode - 100] = buffer.getUShort();
                stackAmounts[opcode - 100] = buffer.getUShort();
            } else if (opcode == 110) {
                resizeX = buffer.getUShort();
            } else if (opcode == 111) {
                resizeY = buffer.getUShort();
            } else if (opcode == 112) {
                resizeZ = buffer.getUShort();
            } else if (opcode == 113) {
                brightness = buffer.getByte();
            } else if (opcode == 114) {
                contrast = 5 * buffer.getByte();
            } else if (opcode == 115) {
                teamId = buffer.getUByte();
            } else if (opcode == 121) {
                lendId = buffer.getUShort();
            } else if (opcode == 122) {
                lendTemplateId = buffer.getUShort();
            } else if (opcode == 125) {
                wornModelPositionX = buffer.getByte();
                wornModelPositionY = buffer.getByte();
                wornModelPositionZ = buffer.getByte();
            } else if (opcode == 126) {
                anInt777 = buffer.getByte();
                anInt802 = buffer.getByte();
                anInt752 = buffer.getByte();
            } else if (opcode == 127) {
                anInt767 = buffer.getUByte();
                anInt758 = buffer.getUShort();
            } else if (opcode == 128) {
                anInt788 = buffer.getUByte();
                anInt756 = buffer.getUShort();
            } else if (opcode == 129) {
                anInt803 = buffer.getUByte();
                anInt804 = buffer.getUShort();
            } else if (opcode == 130) {
                anInt805 = buffer.getUByte();
                anInt806 = buffer.getUShort();
            } else if (opcode == 139) {
                recolourId = buffer.getUShort();
            } else if (opcode == 140) {
                recolourTemplate = buffer.getUShort();
            } else if (opcode == 148) {
                anInt1879 = buffer.getUShort();
            } else if (opcode == 149) {
                anInt1833 = buffer.getUShort();
            }
    That's not 718.
    link removed
    Reply With Quote  
     

  5. #5  
    Soon to be a Blaziken

    Torchic's Avatar
    Join Date
    Mar 2011
    Age
    29
    Posts
    1,711
    Thanks given
    14
    Thanks received
    452
    Rep Power
    529
    Quote Originally Posted by Admiral Slee View Post
    That's not 718.
    May not be from a 718 client but the opcodes don't change... opcode 1 is the interface model id regardless if the revision is 718 or 614 or 508. This is just missing additional opcodes for 718
    Last edited by Torchic; 09-12-2018 at 03:35 PM.

    Reply With Quote  
     

  6. #6  
    Registered Member

    Join Date
    Dec 2009
    Posts
    774
    Thanks given
    367
    Thanks received
    455
    Rep Power
    927
    Quote Originally Posted by Torchic View Post
    May not be from a 718 client but the opcodes don't change... opcode 1 is the interface model id regardless if the revision is 718 or 614 or 508. This is just missing additional opcodes for 718
    You mean inventory model? Interface models are different.
    link removed
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2014
    Posts
    348
    Thanks given
    20
    Thanks received
    5
    Rep Power
    8
    bump
    Reply With Quote  
     

  8. #8  
    van 't stad

    Shnek's Avatar
    Join Date
    Oct 2013
    Posts
    1,065
    Thanks given
    343
    Thanks received
    297
    Rep Power
    109
    Quote Originally Posted by _Blank View Post
    bump
    Take a look at the runelite client
    Attached image

    Do not use the vps from ovh, blocking vps without reason and no customer support
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Dec 2014
    Posts
    348
    Thanks given
    20
    Thanks received
    5
    Rep Power
    8
    Quote Originally Posted by Shnek View Post
    Take a look at the runelite client
    Do you know the path to the decode
    Reply With Quote  
     

  10. #10  
    van 't stad

    Shnek's Avatar
    Join Date
    Oct 2013
    Posts
    1,065
    Thanks given
    343
    Thanks received
    297
    Rep Power
    109
    Quote Originally Posted by _Blank View Post
    Do you know the path to the decode
    not sure if I'm allowed to post other links, but this is that path cache/src/main/java/net/runelite/cache/definitions/loaders/ItemLoader.java
    Attached image

    Do not use the vps from ovh, blocking vps without reason and no customer support
    Reply With Quote  
     

  11. 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. 718/751 Item Definitions (Client Sided)
    By Chryonic in forum Requests
    Replies: 5
    Last Post: 05-06-2014, 01:54 AM
  2. Item Definition Opcodes for 718/734+
    By Ben_U in forum Tutorials
    Replies: 26
    Last Post: 02-22-2013, 04:06 PM
  3. File to change item level reqs? 718
    By fail melee in forum Requests
    Replies: 3
    Last Post: 11-30-2012, 01:31 PM
  4. [REQ] 525 item definitions e.g. obj.dat/idx
    By Eliminate in forum Models
    Replies: 7
    Last Post: 09-18-2012, 02:22 AM
  5. [REQ]725 item definitions
    By ReactionX in forum Models
    Replies: 2
    Last Post: 09-15-2012, 10:33 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
  •