Thread: Object Configs

Results 1 to 4 of 4
  1. #1 Object Configs 
    Registered Member
    Pilldom's Avatar
    Join Date
    Sep 2007
    Posts
    1,298
    Thanks given
    23
    Thanks received
    221
    Rep Power
    164
    I recently learned about these and as far as I have seen only a very small portion of people know about it so this is going to be just a quick little tut explaining how they work.


    As we all know players have settings. You can change the brightness, turn auto retaliate on, etc. However, objects and npcs also use the same methods to change their "settings".
    In farming for example. If you where to log into rs using rs bot, and check the id of a patch while you raked it, you would see the object id never changes, even though the weeds get smaller. This is because it is using configs.
    If you look in entitydef, objectdef, animable_5, or client.java in your client, you'd see they all contain a similar code.

    Code:
    public ObjectDef method580()
    	{
    		int i = -1;
    		if(varbit_idx != -1)
    		{
    			VarBit varBit = VarBit.cache[varbit_idx];
    			int setting = varBit.setting;
    			int start = varBit.start;
    			int end = varBit.end;
    			int mask = client.bitmasks[end - start];
    			i = clientInstance.variousSettings[setting] >> start & mask;
    		} else
    		if(setting_idx != -1)
    			i = clientInstance.variousSettings[setting_idx];
    		if(i < 0 || i >= childrenIDs.length || childrenIDs[i] == -1)
    			return null;
    		else
    			return forID(childrenIDs[i]);
    	}
    (This is what mine looks like its partially refactored between galkon and methods client so yours will look different)

    As this is the loading of settings, you can see it is used for both objects and npcs. However it is loading these settings from the player. So inorder to change these settings for an object, all we do is use the exact same code we do for changing player settings.

    (method will vary based on your base, I use hyperion but just look for something similar in your actionsender or client)

    This is a config that changes the camera angle for a player.(Custom client, it was the first one i found in my source.)
    Code:
    player.getActionSender().sendClientConfig(168, 1);
    This one, will change a patch of weeds, into a different patch of weeds.
    Code:
    player.getActionSender().sendConfig(504, 1);
    Its really pretty simple, but I feel its something people have been unable to use because they where not aware it existed. Here is a list made by method of some.


    Code:
    allotment:
    - settings 504-505, 8 bits each
    
    flower:
    - setting 508, 8 bits each
    - setting 1183, bits 12-19 (wilderness?)
    
    herb:
    - setting 515, 8 bits each
    - setting 830, bits 0-7 (Trollheim patch?)
    
    hops:
    - setting 506, 8 bits each
    - setting 521, bits 8-11 (kelda hops)
    
    bush:
    - setting 509, 8 bits each
    
    calquat:
    - setting 507, bits 24-29
    
    fruit tree:
    - setting 503, 8 bits each
    - setting 830, bits 23-30 (lletya?)
    - setting 1931, bits 18-25 (herblore habitat?)
    
    spirit tree:
    - setting 507, 6 bits each (3 total)
    
    tree:
    - setting 502, 8 bits each
    - setting 830, bits 11-18
    
    white tree:
    - setting 554, bits 18-21
    
    evil turnip:
    - setting 1171, bits 7-10
    
    jade vine:
    - setting 1077, bits 23-27
    These will help with farming, but it should also help with other objects as well. I believe that the rocks underneath castlewars may use this as well.

    It also should work with some npcs, as to which npcs those are I have no idea.

    Hope some people have found this a useful learning experience.
    Credits:
    99% Method for helping me with this
    1% Me for compiling it into a tutorial
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,910
    Thanks given
    1,558
    Thanks received
    2,617
    Rep Power
    5000
    Very useful, good job.
    Reply With Quote  
     

  4. #3  
    Super Donator


    Join Date
    Sep 2008
    Age
    27
    Posts
    1,897
    Thanks given
    677
    Thanks received
    776
    Rep Power
    456
    Quote Originally Posted by Pilldom View Post
    I believe that the rocks underneath castlewars may use this as well.
    Just a heads up, they don't.
    Reply With Quote  
     

  5. #4  
    Registered Member
    Pilldom's Avatar
    Join Date
    Sep 2007
    Posts
    1,298
    Thanks given
    23
    Thanks received
    221
    Rep Power
    164
    Are you sure? Cause I seem to remember having an issue with it when I did my castle wars and I feel like a config would make sense.
    [Only registered and activated users can see links. ]
    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. Warriors Guild Object Configs
    By Alexander in forum Requests
    Replies: 1
    Last Post: 10-01-2010, 05:32 PM
  2. godwars object animaiton configs please :(
    By Golden Hero in forum Requests
    Replies: 0
    Last Post: 08-08-2010, 11:42 PM
  3. Object Configs and their use
    By dragonkk in forum Configuration
    Replies: 64
    Last Post: 06-24-2010, 08:51 PM
  4. Swat's object configs
    By Mr Reece in forum Requests
    Replies: 2
    Last Post: 06-14-2010, 06:18 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
  •