Thread: Can you make custom npcs?

Results 1 to 6 of 6
  1. #1 Can you make custom npcs? 
    Registered Member Hucci's Avatar
    Join Date
    Oct 2009
    Posts
    281
    Thanks given
    1
    Thanks received
    6
    Rep Power
    9
    I was making some sweet models in metasequoia and wondered if i could possibly make an original monster. is it possible?
    Reply With Quote  
     

  2. #2  
    Donator
    xSelseor's Avatar
    Join Date
    Mar 2009
    Age
    28
    Posts
    456
    Thanks given
    33
    Thanks received
    4
    Rep Power
    28
    Good idea. I looked around a little in my class5.java in my client, i think it should be be possible.

    Combat Monsters.
    Code:
    if(i == 3303) { // NPC ID you can change this if u like
        aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630]; 
        class5.method165(true, aClass30_Sub2_Sub2_60); // Collect original NPC data
        class5.aStringArray66 = new String[5];
        class5.aStringArray66[1] = "Attack";
        class5.anIntArray94 = new int[1]; // Number of models the NPC uses
        int changedColors = 1; // Number of model colors changed on the NPC
        class5.anIntArray76 = new int[changedColors];
        class5.anIntArray70 = new int[changedColors];
        class5.anIntArray76[0] = 0; // Original model color
        class5.anIntArray70[0] = 0; // Changed model color
        class5.anIntArray94[0] = 14003; // 28002
        class5.aString65 = "Corporal Beast"; // NPC name
        class5.anInt61 = 982; //combat level
        class5.aByteArray89 = "The mighty lord Armadyls general Kree'arra!".getBytes(); // NPC description
    }
    Non-Combat Monsters.
    Code:
    if(i == 3304) { // Grim Reaper
        aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630]; // Original NPC data, used to collect default emotes and extra NPC info. Don't change this unless you know what you are doing.
        class5.method165(true, aClass30_Sub2_Sub2_60); // Collect original NPC data, do not change.
        class5.anIntArray94 = new int[2]; // Number of models the NPC uses
        int changedColors = 1; // Number of model colors changed on the NPC
        class5.anIntArray76 = new int[changedColors];
        class5.anIntArray70 = new int[changedColors];
        class5.anIntArray76[0] = 61; // Original model color
        class5.anIntArray70[0] = 926; // Changed model color
        class5.anIntArray94[0] = 14004; // Cape model ID
        class5.anIntArray94[1] = 14005; // Body peice 1 model ID
        class5.aString65 = "Grim Reaper"; // NPC name
        class5.aByteArray89 = "A Scary, Halloween King.".getBytes(); // NPC description, you must leave the .getBytes() at the end or it will not work.
    }
    All you have to do is change the numbers, such as changing
    Code:
    61; // Original model color
    To
    Code:
    65; // Original model color
    I don't know the color codes though, so i wouldnt try that example...
    Reply With Quote  
     

  3. #3  
    Registered Member Hucci's Avatar
    Join Date
    Oct 2009
    Posts
    281
    Thanks given
    1
    Thanks received
    6
    Rep Power
    9
    Thx i will try it out.
    Reply With Quote  
     

  4. #4  
    Registered Member Hucci's Avatar
    Join Date
    Oct 2009
    Posts
    281
    Thanks given
    1
    Thanks received
    6
    Rep Power
    9
    Quote Originally Posted by Kingdhum View Post
    Good idea. I looked around a little in my class5.java in my client, i think it should be be possible.

    Combat Monsters.
    Code:
    if(i == 3303) { // NPC ID you can change this if u like
        aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630]; 
        class5.method165(true, aClass30_Sub2_Sub2_60); // Collect original NPC data
        class5.aStringArray66 = new String[5];
        class5.aStringArray66[1] = "Attack";
        class5.anIntArray94 = new int[1]; // Number of models the NPC uses
        int changedColors = 1; // Number of model colors changed on the NPC
        class5.anIntArray76 = new int[changedColors];
        class5.anIntArray70 = new int[changedColors];
        class5.anIntArray76[0] = 0; // Original model color
        class5.anIntArray70[0] = 0; // Changed model color
        class5.anIntArray94[0] = 14003; // 28002
        class5.aString65 = "Corporal Beast"; // NPC name
        class5.anInt61 = 982; //combat level
        class5.aByteArray89 = "The mighty lord Armadyls general Kree'arra!".getBytes(); // NPC description
    }
    Non-Combat Monsters.
    Code:
    if(i == 3304) { // Grim Reaper
        aClass30_Sub2_Sub2_60.anInt1406 = anIntArray72[630]; // Original NPC data, used to collect default emotes and extra NPC info. Don't change this unless you know what you are doing.
        class5.method165(true, aClass30_Sub2_Sub2_60); // Collect original NPC data, do not change.
        class5.anIntArray94 = new int[2]; // Number of models the NPC uses
        int changedColors = 1; // Number of model colors changed on the NPC
        class5.anIntArray76 = new int[changedColors];
        class5.anIntArray70 = new int[changedColors];
        class5.anIntArray76[0] = 61; // Original model color
        class5.anIntArray70[0] = 926; // Changed model color
        class5.anIntArray94[0] = 14004; // Cape model ID
        class5.anIntArray94[1] = 14005; // Body peice 1 model ID
        class5.aString65 = "Grim Reaper"; // NPC name
        class5.aByteArray89 = "A Scary, Halloween King.".getBytes(); // NPC description, you must leave the .getBytes() at the end or it will not work.
    }
    All you have to do is change the numbers, such as changing
    Code:
    61; // Original model color
    To
    Code:
    65; // Original model color
    I don't know the color codes though, so i wouldnt try that example...
    where do i upload the model?
    Reply With Quote  
     

  5. #5  
    Donator
    xSelseor's Avatar
    Join Date
    Mar 2009
    Age
    28
    Posts
    456
    Thanks given
    33
    Thanks received
    4
    Rep Power
    28
    you just put the model in a .rar and put it in the models folder
    Reply With Quote  
     

  6. #6  
    Registered Member
    DaraX's Avatar
    Join Date
    Apr 2009
    Posts
    1,183
    Thanks given
    18
    Thanks received
    29
    Rep Power
    262
    I'm not sure what you mean.
    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

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •