Thread: Adding custom items/npcs/objects for renamed clients

Results 1 to 10 of 10
  1. #1 Adding custom items/npcs/objects for renamed clients 
    Apocalyptism
    Harry's Avatar
    Join Date
    Apr 2007
    Posts
    3,783
    Thanks given
    594
    Thanks received
    1,833
    Rep Power
    2934
    Im only posting this because i want more people to switch to renamed and for the people who cant rename a couple of variables :/

    Items

    open up ItemDef.java

    search for

    Code:
    [totalItems];
    replace with

    Code:
    [totalItems+400000];
    next search for

    Code:
    itemDef.name = "Members Object";
    under the next
    Code:
    }
    add

    Code:
    if(i == 8004)
            {
     		itemDef.actions = new String[5];
     		itemDef.actions[1] = "Wield";
     		itemDef.modelID = 6109;//drop model & invent model
    		itemDef.modelZoom = 2000;
     		itemDef.modelRotation1 = 572;
     		itemDef.modelRotation2 = 0;
     		itemDef.anInt204 = 0;
     		itemDef.modelOffset1 = 0;
     		itemDef.modelOffset2 = 1;
     		itemDef.anInt165 = 6100;//male model id
     		itemDef.anInt200 = 6100;//female model id
     		itemDef.name = "custom item";
     		itemDef.description = "its a custom item in renamed omg".getBytes();
            }
    there you go easy

    Npcs

    Open up EntityDef.java

    find

    Code:
    entityDef.readValues(stream);
    under that add

    Code:
    if(i == 2169)
            {
                stream.currentOffset = streamIndices[0];
                entityDef.readValues(stream);
                entityDef.actions = new String[5];
                entityDef.actions[1] = "Attack";
                entityDef.anIntArray94 = new int[1];//amount of models
                entityDef.anIntArray94[0] = 8406;//model id 1
                entityDef.name = "Custom npc";
                entityDef.combatLevel = 11;
                entityDef.description = "a car".getBytes();
            }
    there you go custom npcs

    Objects

    open up ObjectDef.java

    search for

    Code:
    class46.readValues(stream);
    below that add

    Code:
    if(i == 2476) {
    class46.name = "custom object";//Name		
    class46.description = "A cleaned up old car".getBytes();//examine	
    class46.anInt744 = 4;//Model Width	
    class46.anInt761 = 2;//Model Height
    class46.anIntArray773 = new int[1];//Number of Models
    class46.anIntArray773[0] = 8406;// Model Id				
    class46.hasActions = true;//Right Click?   				
    class46.aBoolean767 = true;//Noclipped?   				
    class46.aBoolean762 = false;//Does model conform floor?				
    class46.aBoolean769 = false;//is model...black? lol				
    }
    ~ Harry
    Please bear this in mind when hearing the word 'soon' from a software programmer.

    As coding software generally takes thousands of years, software programmers have developed a natural adaptation to this in the form of an altered perception of the flow of time.

    Due to this, the word 'soon' when uttered by a programmer should be taken to mean 'a very, very long time from now' in the terminology used by common human specimens who have not developed such an adaptation.
    knowledge can be taught, but passion cannot.
    It's better to create something that others criticise than to create nothing and criticise others.
     

  2. #2  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    16
    Posts
    4,364
    Thanks given
    1,027
    Thanks received
    703
    Discord
    View profile
    Rep Power
    2991
    Friday night renamed madness?
    Quote Originally Posted by UberNation View Post
    Did you update the quantum network sockets to match the polarity of the wilderness counter levels in the Boolean that divides the wilderness level by zero?
     

  3. #3  
    Registered Member
    Firefight's Avatar
    Join Date
    Aug 2007
    Posts
    1,506
    Thanks given
    6
    Thanks received
    31
    Rep Power
    160
    haha thanks, found this like five minutes before you posted.
    Back for now...
     

  4. #4  
    Apocalyptism
    Harry's Avatar
    Join Date
    Apr 2007
    Posts
    3,783
    Thanks given
    594
    Thanks received
    1,833
    Rep Power
    2934
    Quote Originally Posted by 2012 View Post
    Friday night renamed madness?
    yup lol
    ~ Harry
    Please bear this in mind when hearing the word 'soon' from a software programmer.

    As coding software generally takes thousands of years, software programmers have developed a natural adaptation to this in the form of an altered perception of the flow of time.

    Due to this, the word 'soon' when uttered by a programmer should be taken to mean 'a very, very long time from now' in the terminology used by common human specimens who have not developed such an adaptation.
    knowledge can be taught, but passion cannot.
    It's better to create something that others criticise than to create nothing and criticise others.
     

  5. #5  
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Discord
    View profile
    Rep Power
    927
    Omfg i you.

    Where do i put the models ect?
    Last edited by Warlock 999; 02-07-2009 at 07:16 AM. Reason: Double posting is not allowed!
    If anyone needs help with java questions or errors I will try and help with what I can/know
    my discord is Perkaholic feel free to add me with questions or to chat!

    "There is always one more thing you can do to increase your odds of success." -Hal Moore
     

  6. #6  
    Apocalyptism
    Harry's Avatar
    Join Date
    Apr 2007
    Posts
    3,783
    Thanks given
    594
    Thanks received
    1,833
    Rep Power
    2934
    Quote Originally Posted by Warlock 999 View Post
    Omfg i you.

    Where do i put the models ect?
    use clienthax's
    ~ Harry
    Please bear this in mind when hearing the word 'soon' from a software programmer.

    As coding software generally takes thousands of years, software programmers have developed a natural adaptation to this in the form of an altered perception of the flow of time.

    Due to this, the word 'soon' when uttered by a programmer should be taken to mean 'a very, very long time from now' in the terminology used by common human specimens who have not developed such an adaptation.
    knowledge can be taught, but passion cannot.
    It's better to create something that others criticise than to create nothing and criticise others.
     

  7. #7  
    Registered Member

    Join Date
    Jan 2008
    Age
    28
    Posts
    1,380
    Thanks given
    76
    Thanks received
    384
    Rep Power
    962
    Um i get some cannot find symbol errors and be great if you posted these lol..

    Code:
    .\Java\Model.java:79: cannot find symbol
    symbol  : variable startDumpingModels
    location: class client
            if(client.startDumpingModels == 1)
                     ^
    .\Java\Model.java:82: cannot find symbol
    symbol  : variable Loader
    location: class Model
                    Loader.writeFile("./modeldump/"+j+".dat", abyte0);
                    ^
    2 errors
    Press any key to continue . . .
    Need those variables ^.^
     

  8. #8  
    Registered Member
    Warlock 999's Avatar
    Join Date
    Jul 2008
    Age
    29
    Posts
    1,407
    Thanks given
    7
    Thanks received
    29
    Discord
    View profile
    Rep Power
    927
    Download link isn't working
    If anyone needs help with java questions or errors I will try and help with what I can/know
    my discord is Perkaholic feel free to add me with questions or to chat!

    "There is always one more thing you can do to increase your odds of success." -Hal Moore
     

  9. #9  
    Apocalyptism
    Harry's Avatar
    Join Date
    Apr 2007
    Posts
    3,783
    Thanks given
    594
    Thanks received
    1,833
    Rep Power
    2934
    fixed it now, forgot to remove some stuff
    ~ Harry
    Please bear this in mind when hearing the word 'soon' from a software programmer.

    As coding software generally takes thousands of years, software programmers have developed a natural adaptation to this in the form of an altered perception of the flow of time.

    Due to this, the word 'soon' when uttered by a programmer should be taken to mean 'a very, very long time from now' in the terminology used by common human specimens who have not developed such an adaptation.
    knowledge can be taught, but passion cannot.
    It's better to create something that others criticise than to create nothing and criticise others.
     

  10. #10  
    Registered Member Jattio's Avatar
    Join Date
    Oct 2009
    Age
    27
    Posts
    532
    Thanks given
    8
    Thanks received
    5
    Rep Power
    54
    im not trying to gravedig, but i added the d claws to the client, when i spawned them the look like a skeleton arm, is the because thats the old models? anyways im using galkons refactored can anyone help???
     


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
  •