Thread: NPC size (317)

Results 1 to 9 of 9
  1. #1 NPC size (317) 
    Registered Member
    Join Date
    Nov 2015
    Posts
    25
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    I have been hours to figure out how to change npc's size like man to hill giants size...
    If someone know how to edit it, would be cool.
    using 317 source
    Reply With Quote  
     

  2. #2  
    Registered Member
    Flash's Avatar
    Join Date
    Sep 2015
    Posts
    145
    Thanks given
    19
    Thanks received
    36
    Rep Power
    82
    The models would have to be changed.
    Reply With Quote  
     

  3. #3  
    H_E_N_T_A_I_H_E_A_V_E_N_
    Tatsumi's Avatar
    Join Date
    May 2013
    Posts
    1,779
    Thanks given
    537
    Thanks received
    269
    Rep Power
    337
    Probably Models in cache
    Attached image
    Reply With Quote  
     

  4. #4  
    Super Donator


    Join Date
    Feb 2011
    Age
    27
    Posts
    1,126
    Thanks given
    180
    Thanks received
    178
    Rep Power
    243
    Theres two variables that is used inside the EntityDef (Client side) wich sets the sizeX and sizeY, if you wanna modify a specific id you can easily add that after the readvalues or else change the configs in the cache file

    Code:
    switch (i) {
    case 1:
    	npc.sizeXZ = 200; //this variable might be having another name in your client..
    	npc.sizeY = 200; //this variable might be having another name in your client..
    	break; 
    }
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Nov 2015
    Posts
    25
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    Quote Originally Posted by Gnakos View Post
    Theres two variables that is used inside the EntityDef (Client side) wich sets the sizeX and sizeY, if you wanna modify a specific id you can easily add that after the readvalues or else change the configs in the cache file

    Code:
    switch (i) {
    case 1:
    	npc.sizeXZ = 200; //this variable might be having another name in your client..
    	npc.sizeY = 200; //this variable might be having another name in your client..
    	break; 
    }
    Code:
    		if(i == 792) {
    	stream.currentOffset = streamIndices[630]; 
    	entityDef.aByte68 = 3;
    	entityDef.readValues(stream); // Collect original NPC data
    	entityDef.itemActions = new String[5];
    	entityDef.itemActions[1] = "Attack";
                    int changedColors = 1; // Number of model colors changed on the NPC
                    entityDef.anIntArray70 = new int[changedColors];
                    entityDef.anIntArray76 = new int[changedColors];
                    entityDef.anIntArray76[0] = 40; // Original model color
                    entityDef.anIntArray70[0] = 34; // Changed model color
    	entityDef.anIntArray94 = new int[7];
    	entityDef.anIntArray94[0] = 55042;//Npc's Cape
    	entityDef.anIntArray94[1] = 40131;//Npc's Head
    	entityDef.anIntArray94[2] = 40125;//Npc's Plate
    	entityDef.anIntArray94[3] = 40133;//Npc's Legs
    	entityDef.anIntArray94[4] = 82973;//Npc's Weapon
    	entityDef.anIntArray94[5] = 13307;//Npc's Gloves
    	entityDef.anIntArray94[6] = 13565;//Npc's Boots
    	//entityDef.anIntArray94[7] = 17461;//Npc's Darkness(Shadow)
    	//entityDef.anIntArray94[8] = 20147;//Npc's Arms(You Dont Have To Edit)
    	entityDef.standAnim = 808;// Npc's Stand Emote
    	entityDef.name = "@gre@Ninja Torva";
    	entityDef.combatLevel = 195;//Combat Level
    	entityDef.description = "Ninja Torva.".getBytes();
    	case 1:
    	npc.sizeXZ = 200; 
    	npc.sizeY = 200; 
    	break; 
    }
    Idk is this correct?
    Reply With Quote  
     

  6. #6  
    Super Donator


    Join Date
    Feb 2011
    Age
    27
    Posts
    1,126
    Thanks given
    180
    Thanks received
    178
    Rep Power
    243
    Quote Originally Posted by 5kill View Post
    Code:
    		if(i == 792) {
    	stream.currentOffset = streamIndices[630]; 
    	entityDef.aByte68 = 3;
    	entityDef.readValues(stream); // Collect original NPC data
    	entityDef.itemActions = new String[5];
    	entityDef.itemActions[1] = "Attack";
                    int changedColors = 1; // Number of model colors changed on the NPC
                    entityDef.anIntArray70 = new int[changedColors];
                    entityDef.anIntArray76 = new int[changedColors];
                    entityDef.anIntArray76[0] = 40; // Original model color
                    entityDef.anIntArray70[0] = 34; // Changed model color
    	entityDef.anIntArray94 = new int[7];
    	entityDef.anIntArray94[0] = 55042;//Npc's Cape
    	entityDef.anIntArray94[1] = 40131;//Npc's Head
    	entityDef.anIntArray94[2] = 40125;//Npc's Plate
    	entityDef.anIntArray94[3] = 40133;//Npc's Legs
    	entityDef.anIntArray94[4] = 82973;//Npc's Weapon
    	entityDef.anIntArray94[5] = 13307;//Npc's Gloves
    	entityDef.anIntArray94[6] = 13565;//Npc's Boots
    	//entityDef.anIntArray94[7] = 17461;//Npc's Darkness(Shadow)
    	//entityDef.anIntArray94[8] = 20147;//Npc's Arms(You Dont Have To Edit)
    	entityDef.standAnim = 808;// Npc's Stand Emote
    	entityDef.name = "@gre@Ninja Torva";
    	entityDef.combatLevel = 195;//Combat Level
    	entityDef.description = "Ninja Torva.".getBytes();
    	case 1:
    	npc.sizeXZ = 200; 
    	npc.sizeY = 200; 
    	break; 
    }
    Idk is this correct?
    Not quiet... incase it would be after the bracket } and be the whole switch case and then you have to find the name of the variable that your client is using.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Dec 2015
    Posts
    55
    Thanks given
    10
    Thanks received
    18
    Rep Power
    19
    Misread. If you post your full entityDef I'll look further into it.
    Reply With Quote  
     

  8. #8  
    Super Donator


    Join Date
    Feb 2011
    Age
    27
    Posts
    1,126
    Thanks given
    180
    Thanks received
    178
    Rep Power
    243
    Quote Originally Posted by mikey1996 View Post
    Misread. If you post your full entityDef I'll look further into it.
    Just download RUSE, thats where I took the variables from
    Reply With Quote  
     

  9. #9  
    "We don’t worry about warnings; we only worry about errors."
    Rozo's Avatar
    Join Date
    Dec 2013
    Posts
    573
    Thanks given
    53
    Thanks received
    70
    Rep Power
    49
    entityDef.anInt86 = X;
    entityDef.anInt91 = X;
    try these put X to 100 and see. decrease for smaller size increase for bigger size.
    A man is smoking a cigarette and blowing smoke rings into the air. His girlfriend becomes irritated with the smoke and says, “Can’t you see the warning on the cigarette pack? Smoking is hazardous to your health!”

    To which the man replies, “I am a programmer. We don’t worry about warnings; we only worry about errors.” -Mod Ash

    Attached image
    Reply With Quote  
     


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. 100% NPC size dump
    By Harry in forum Configuration
    Replies: 35
    Last Post: 02-22-2010, 01:34 AM
  2. Npc size dump
    By thomy-13 in forum Requests
    Replies: 1
    Last Post: 04-22-2009, 09:38 PM
  3. npc size list
    By Martin in forum Requests
    Replies: 0
    Last Post: 02-16-2009, 12:27 AM
  4. Npc sizes
    By Rhys in forum Configuration
    Replies: 2
    Last Post: 11-08-2008, 12:45 PM
  5. Npc size edit
    By killmoon1 in forum Help
    Replies: 0
    Last Post: 10-24-2008, 09:16 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
  •