Thread: 742 Client NPCDefinitions models

Results 1 to 2 of 2
  1. #1 742 Client NPCDefinitions models 
    Donator

    Fiddle's Avatar
    Join Date
    Dec 2011
    Age
    23
    Posts
    1,751
    Thanks given
    489
    Thanks received
    340
    Discord
    View profile
    Rep Power
    179
    Im trying to added OSRS Npc's. I succesfully packed over the models and npc's.
    All OSRS NPC's have an offset of 30,000. (For instance 30001 = Molanisk)

    But I am struggling with loading the correct models for the npc. Rocky is litterally a rock!


    in my Client (NPCDefinitions , opcode 1) Whenever I add the "if npc < 30000" It crashes my client.
    Spoiler for media:


    Spoiler for Model previews of whats getting used in "modelIds (anIntArrayArray56843[i_3_:
    "]


    MODEL 216128 doesnt even exist.



    Code:
    			if (i == 1) {
    				int i_2_ = class330_sub46.readUnsignedByte(679421791);
    				aByteArray5633 = new byte[i_2_];
    				anIntArrayArray5684 = new int[i_2_][];
    				for (int i_3_ = 0; i_3_ < i_2_; i_3_++) {
    					aByteArray5633[i_3_] = class330_sub46.readByte((byte) -16);
    					int i_4_ = class330_sub46.readUnsignedByte(1000558998);
    
    					anIntArrayArray5684[i_3_] = new int[i_4_];
    					for (int i_5_ = 0; i_5_ < i_4_; i_5_++)
    						if (npcId < 30000)
    							anIntArrayArray5684[i_3_][i_5_] = class330_sub46.readBigSmart(-1758367486);
    						else
    							anIntArrayArray5684[i_3_][i_5_] = class330_sub46.readUnsignedShort(1519943345) + 166_000;
    
    				}
    			}

    Also whenever i look into the NPCDefinitions of a 718 client, opcode1 looks a bit different. Could someone explain me why there's 2 for loops in the 742 client? And one in the 718?
    Code:
    			if (opcode == 1) {
    				int i_54_ = buffer.readUnsignedByte();
    				models = new int[i_54_];
    				for (int i_55_ = 0; i_55_ < i_54_; i_55_++)
    					models[i_55_] = buffer.readBigSmart();
    			} else if (opcode == 2)
    				name = buffer.readString();
    Don't be scared. It can't hurt you.
    Reply With Quote  
     

  2. #2  
    WVWVWVWVWVWVWVW

    _jordan's Avatar
    Join Date
    Nov 2012
    Age
    24
    Posts
    2,975
    Thanks given
    96
    Thanks received
    1,706
    Discord
    View profile
    Rep Power
    5000
    You have to encode your osrs npcs back into your 742 in the correct format. Not just hard replacing bytes, which is the cheap way to do this.
    Reply With Quote  
     

  3. Thankful users:



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. [NON]Full Client Starting Models.
    By Bando in forum Models
    Replies: 3
    Last Post: 09-09-2009, 03:03 PM
  2. royale client help model adding
    By Simon in forum Help
    Replies: 0
    Last Post: 02-03-2009, 10:35 PM
  3. Client With [MODELS]
    By *Rs-Coding* in forum Help
    Replies: 3
    Last Post: 01-17-2009, 05:09 PM
  4. Replies: 7
    Last Post: 07-25-2008, 10:34 AM
  5. new 503 client scim models
    By runemasterzz in forum Requests
    Replies: 5
    Last Post: 07-10-2008, 10:59 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
  •