Thread: Drops.Dat quick question

Results 1 to 8 of 8
  1. #1 Drops.Dat quick question 
    Registered Member LordSlaughter's Avatar
    Join Date
    Aug 2016
    Posts
    141
    Thanks given
    20
    Thanks received
    14
    Rep Power
    13
    Not sure if anyone else goes through drops.dat for there drops (I recommend swapping over to json if you are) but, I'm messing with this server, and can't figure out the format for these drops.
    Here is an example.

    Code:
    11 2361 1 2 108
    11 2363 1 3 106
    11 2366 1 1 219
    11 2677 1 1 97
    11 4131 1 1 178
    70 526 1 1 0
    239 1747 1 1 1
    And here is what I think some of it means:

    Code:
    (11 = NPCID, 2361 = ItemID, 1 = ?, 2 = ?, 108 = ?)
    11 2361 1 2 108
    So my question is, Can you tell me what the '?' marks represent?

    May be a noob question, but I never use .dat always put my drops through .json.
    Thanks

    Your New Favorite Time Waster!

    "Don't look at the finish line, look at the steps along the way" - Zivik
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    probs amount between and rarity
    Reply With Quote  
     

  3. #3  
    Registered Member LordSlaughter's Avatar
    Join Date
    Aug 2016
    Posts
    141
    Thanks given
    20
    Thanks received
    14
    Rep Power
    13
    Quote Originally Posted by _Patrick_ View Post
    probs amount between and rarity
    Ok. So I understand:
    (NPCID = ITEMID, AMOUNT, ? , ?)

    Still confused on the last 2 ?'s.

    I have no idea what 'between' would mean. Like in between the rarity number, it will drop that ID?

    and rarity would mean how many times it has to choose that number?

    If anyone has any clue, I'd appreciate it.

    Your New Favorite Time Waster!

    "Don't look at the finish line, look at the steps along the way" - Zivik
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Oct 2012
    Posts
    4,710
    Thanks given
    1,679
    Thanks received
    1,105
    Rep Power
    0
    Quote Originally Posted by LordSlaughter View Post
    Ok. So I understand:
    (NPCID = ITEMID, AMOUNT, ? , ?)

    Still confused on the last 2 ?'s.

    I have no idea what 'between' would mean. Like in between the rarity number, it will drop that ID?

    and rarity would mean how many times it has to choose that number?

    If anyone has any clue, I'd appreciate it.
    Rarity idk bro we don't see any code and between as in "between" (10-1000) meaning can drop between 10-1000 i guesS?
    Reply With Quote  
     

  5. #5  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    your drophandler class should tell you what it all means, look where the file is being drawn
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Registered Member LordSlaughter's Avatar
    Join Date
    Aug 2016
    Posts
    141
    Thanks given
    20
    Thanks received
    14
    Rep Power
    13
    Quote Originally Posted by mr selby View Post
    your drophandler class should tell you what it all means, look where the file is being drawn
    Appreciate your help. I was pretty tired last night to think about this.

    If anyone if curious, here is what it means officially:

    Code:
    	/**
    	 * @param itemId
    	 *            The ItemID of the item that can be dropped.
    	 * @param minAmount
    	 *            The minimum amount of the item that can be dropped.
    	 * @param maxAmount
    	 *            The maximum amount of the item that can be dropped.
    	 * @param rarity
    	 *            The chance the item will be dropped. Rarity 50 would mean a 1
    	 *            in 50 (or 0.2) drop chance.
    	 */
    	public Drop(int itemId, int minAmount, int maxAmount, int rarity) {
    		this.itemId = itemId;
    		this.minAmount = minAmount;
    		this.maxAmount = maxAmount;
    		this.rarity = rarity;
    	}

    Your New Favorite Time Waster!

    "Don't look at the finish line, look at the steps along the way" - Zivik
    Reply With Quote  
     

  8. #7  
    Irathient Developer

    mr selby's Avatar
    Join Date
    May 2011
    Age
    28
    Posts
    1,183
    Thanks given
    95
    Thanks received
    166
    Rep Power
    97
    Quote Originally Posted by LordSlaughter View Post
    Appreciate your help. I was pretty tired last night to think about this.

    If anyone if curious, here is what it means officially:

    Code:
    	/**
    	 * @param itemId
    	 *            The ItemID of the item that can be dropped.
    	 * @param minAmount
    	 *            The minimum amount of the item that can be dropped.
    	 * @param maxAmount
    	 *            The maximum amount of the item that can be dropped.
    	 * @param rarity
    	 *            The chance the item will be dropped. Rarity 50 would mean a 1
    	 *            in 50 (or 0.2) drop chance.
    	 */
    	public Drop(int itemId, int minAmount, int maxAmount, int rarity) {
    		this.itemId = itemId;
    		this.minAmount = minAmount;
    		this.maxAmount = maxAmount;
    		this.rarity = rarity;
    	}
    glad i could help
    Reply With Quote  
     

  9. #8  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    No clue why you never checked what loads the "drops.dat" and have a look at what each value means.


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    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. quick question npc drops
    By risgaard in forum Help
    Replies: 5
    Last Post: 09-17-2013, 11:45 AM
  2. Quick question about NPC.dat
    By rocky2k10 in forum Help
    Replies: 5
    Last Post: 11-14-2011, 06:17 PM
  3. quick question
    By EmoscapE in forum Models
    Replies: 6
    Last Post: 09-07-2008, 06:42 PM
  4. Quick question
    By Pikker in forum RS 503+ Client & Server
    Replies: 16
    Last Post: 08-06-2008, 09:55 PM
  5. Quick Question about client
    By ritz929 in forum RS 503+ Client & Server
    Replies: 0
    Last Post: 08-03-2008, 06:42 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
  •