Thread: OSRS Examines #189

Results 1 to 7 of 7
  1. #1 OSRS Examines #189 
    Renown Programmer

    Join Date
    Oct 2017
    Posts
    198
    Thanks given
    167
    Thanks received
    302
    Rep Power
    1567
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Contributor

    .ssh's Avatar
    Join Date
    Jul 2012
    Posts
    934
    Thanks given
    421
    Thanks received
    570
    Rep Power
    248
    Sweet, thanks dude. Will save me time dumping. You still working on RSMod?
    Reply With Quote  
     

  4. #3  
    Renown Programmer

    Join Date
    Oct 2017
    Posts
    198
    Thanks given
    167
    Thanks received
    302
    Rep Power
    1567
    Quote Originally Posted by Lysergist View Post
    Sweet, thanks dude. Will save me time dumping. You still working on RSMod?
    havent had the free time to keep working on it
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Jan 2017
    Posts
    195
    Thanks given
    13
    Thanks received
    27
    Rep Power
    13
    easy way to add it if your server somehow doesnt have examines:

    for example item examines:

    copy the contents of the item examines dump into a items.json file and place it in your main directory

    then add this to ItemDefinition.java

    Code:
    	static class ItemExamine {
    
    	    public static final ItemExamine[] DEFINITIONS = new ItemExamine[25000];
    
    	    public static void add(int index, ItemExamine def) {
    	        DEFINITIONS[index] = def;
    	    }
    
    
    		private static Map<Integer, ItemExamine> definitions = new HashMap<>();
    
    		public static void load() throws IOException {
    			System.out.println("Loading item examine info...");
    
    			List<ItemExamine> list = new Gson().fromJson(FileUtils.readFileToString(new File("items.json")), new TypeToken<List<ItemExamine>>() {
    			}.getType());
    
    			list.stream().filter(Objects::nonNull).forEach(item -> definitions.put((int) item.id, item));
    
    			System.out.println("Loaded " + definitions.size() + " item examine infos.");
    		}
    
    		public static ItemExamine forId(int id) {
    			return definitions.get(id);
    		}
    
    		public static Map<Integer, ItemExamine> getDefinitions() {
    			return definitions;
    		}
    
    		private short id;
    
    		private String examine;
    
    
    		public short getId() {
    			return id;
    		}
    
    		public String getName() {
    			return examine;
    		}

    at end of unpackConfig()

    Code:
    ItemExamine.load();

    add this to the end of forID(int ItemId){ right before the return

    Code:
    		ItemExamine description = ItemExamine.forId(itemId);
            if (description != null) {
            	String examine = description.getName();
            	itemDef.description = examine;
            	
            }
    Reply With Quote  
     

  6. Thankful user:


  7. #5  
    Registered Member
    Join Date
    Mar 2021
    Posts
    32
    Thanks given
    21
    Thanks received
    8
    Rep Power
    9
    Sweet thanks
    Reply With Quote  
     

  8. #6  
    Owner of Ghreborn new and old.


    Join Date
    Nov 2009
    Posts
    916
    Thanks given
    47
    Thanks received
    155
    Rep Power
    273
    Quote Originally Posted by Tomm0017 View Post
    anyway to get a updated verison for this format?
    Im back and working on reborn,
    Reply With Quote  
     

  9. #7  
    Registered Member
    Melvin's Avatar
    Join Date
    Aug 2011
    Posts
    1,150
    Thanks given
    546
    Thanks received
    418
    Rep Power
    1561
    Quote Originally Posted by JesseJames1994 View Post
    anyway to get a updated verison for this format?
    Polar keeps track of them here:

    https://github.com/Joshua-F/osrs-examines


    A creative man is motivated by the desire to achieve, not by the desire to beat others.”


    ― Ayn Rand
    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. Replies: 399
    Last Post: 12-08-2021, 06:06 AM
  2. Full OSRS 163 NPC Examines
    By Corey in forum Configuration
    Replies: 1
    Last Post: 04-11-2018, 08:59 PM
  3. [OSRS] [OSRS #] Runite - Just Released!!
    By Mansa in forum Advertise
    Replies: 80
    Last Post: 10-08-2017, 12:06 PM
  4. OSRS #154 All item examines
    By shitposter in forum Configuration
    Replies: 5
    Last Post: 09-24-2017, 01:07 PM
  5. Replies: 13
    Last Post: 02-13-2016, 04:43 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
  •