Thread: *SOLVED* [HELP] Adding Custom Models to Ruse Source (ImpunityX)

Results 1 to 7 of 7
  1. #1 *SOLVED* [HELP] Adding Custom Models to Ruse Source (ImpunityX) 
    Registered Member
    Join Date
    Oct 2018
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hey everyone,

    I'm using the ImpunityX source and I am trying to add a model to the client. The model in question is the DragonSlayer Wing model released by Lumplum (https://www.rune-server.ee/runescape...ms-models.html)

    I was able to add the model (successful repacking of the cache) to the client, but it always spawns in as a null. Here are the steps I've taken:

    1) Renamed the .dat file to .gz and named it 22000.gz (the model ID to use)
    2) Added in server-side information in items.txt
    3) Added in client-side information in ItemDef.java

    I added the following in items.txt:
    Code:
    Item Id: 22000
    Name: DragonSlayer Wings
    Examine: It's a pair of wings.
    Value: 0
    Stackable: false
    Noted: false
    Double-handed: false
    Equipment type: CAPE
    Is Weapon: false
    finish
    and the following in ItemDef.java:
    Code:
    case 22000:
    			itemDef.modelID = 22000;
    			itemDef.name = "DragonSlayer Wings";
    			itemDef.description = "The wings of a legendary dragon slayer.";
    			itemDef.modelZoom = 1700;
    			itemDef.rotationY = 500;
    			itemDef.rotationX = 0;
    			itemDef.modelOffset1 = -6;
    			itemDef.modelOffsetY = 1;
    			itemDef.actions = new String[5];
    			itemDef.actions = new String[] { null, "Wear", null, null, "Drop" };
    			break;
    Any help is appreciated! Thank you very much.
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Dec 2016
    Posts
    383
    Thanks given
    99
    Thanks received
    66
    Rep Power
    340
    im not sure but you have to add this to your cache - data - raw , there u can add the .dat file to it , and i dont know if u have a method for that in ur client
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Nov 2011
    Posts
    784
    Thanks given
    108
    Thanks received
    705
    Rep Power
    5000
    Try using case # under 20k
    Reply With Quote  
     

  4. #4  
    nice


    Join Date
    Jul 2014
    Posts
    740
    Thanks given
    382
    Thanks received
    562
    Rep Power
    4239
    1) you never had to rename it to 22000.gz - Neither had to make it from .dat to .gz (Pretty sure most ruses have the preLoadModels method in Client class
    2) You should use a lower ID 19085 for example - Just use an item that is "null" or something
    3) The maleEquip / femaleEquip isn't even defined in your code
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2018
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Thesuic12 View Post
    1) you never had to rename it to 22000.gz - Neither had to make it from .dat to .gz (Pretty sure most ruses have the preLoadModels method in Client class
    2) You should use a lower ID 19085 for example - Just use an item that is "null" or something
    3) The maleEquip / femaleEquip isn't even defined in your code
    Thank you for the help! Now I can't find a model ID that isn't being used though. I found some methods that use "decompresors" but I can't find a way to get all of the model IDs.
    Reply With Quote  
     

  6. #6  
    nice


    Join Date
    Jul 2014
    Posts
    740
    Thanks given
    382
    Thanks received
    562
    Rep Power
    4239
    Quote Originally Posted by Shyx View Post
    Thank you for the help! Now I can't find a model ID that isn't being used though. I found some methods that use "decompresors" but I can't find a way to get all of the model IDs.
    Dunno what u mean honestly, however i think "ImmortalX" client has a NPC made of models(The dragon slayer gear ur referring to) just take it from there i'd give u it but i deleted the client/src by mistake when doing a PC cleanup
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Oct 2018
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Thanks for all the suggestions and help everybody.
    I was able to add the model by re-installing the cache and just taking the preloadModels way of doing things.

    These are the steps I took (in case others can't figure it out):
    1) Renamed [model name].dat file to 19085.dat
    2) Added the preloadModels() method AFTER all of the unpackConfig calls (this seemed to be the fix)
    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. Requesting help adding npc models to 718/742!
    By Moustacha in forum Requests
    Replies: 4
    Last Post: 09-06-2014, 07:21 AM
  2. Replies: 0
    Last Post: 06-08-2013, 10:16 PM
  3. (help)Adding Custom Models/NPcs/Items 728Cache
    By That 1 Black Guy in forum Help
    Replies: 1
    Last Post: 10-18-2012, 07:53 AM
  4. Help adding custom items to ErasedPkz/Hybrid PvP?
    By CursedOrionScape in forum Help
    Replies: 12
    Last Post: 05-07-2012, 01:31 AM
  5. Replies: 0
    Last Post: 11-17-2011, 11:10 PM
Tags for this Thread

View Tag Cloud

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