1. Questions in this section will be answered by a Developer, Senior Moderator, or Administrator.
    Please only ask questions about Brawl or our servers. This is not Google!
  2. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

Rarity in WarZ

Discussion in 'Q & A' started by GlobalistCuck, Aug 21, 2014.

Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...
  1. GlobalistCuck

    GlobalistCuck Well-Known Member

    Joined:
    Dec 3, 2013
    Messages:
    2,308
    Ratings:
    +994
    Question:

    On Another Q and A thread, @chickenputty posted this:

    //RIFLES
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "FAMAS (I)", Material.WOOD_HOE, 1),
    ChestType.Gun).setRarity(45).setMinZone(0).setMaxZone(4));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "M16A4 (II)", Material.STONE_HOE, 1),
    ChestType.Gun).setRarity(40).setMinZone(3).setMaxZone(5));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "M4A1 (III)", Material.IRON_HOE, 1),
    ChestType.Gun).setRarity(20).setMinZone(4).setMaxZone(100));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "AK-47 (IV)", Material.DIAMOND_HOE, 1),
    ChestType.Gun).setRarity(10).setMinZone(5).setMaxZone(100));
    //SMGS
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "MP5 (I)", Material.GOLD_HOE, 1),
    ChestType.Gun).setRarity(45).setMinZone(0).setMaxZone(4));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "Uzi (II)", Material.RECORD_11, 1),
    ChestType.Gun).setRarity(40).setMinZone(3).setMaxZone(5));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "UMP45 (III)", Material.GOLD_PICKAXE, 1),
    ChestType.Gun).setRarity(20).setMinZone(4).setMaxZone(100));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "P90 (IV)", Material.GOLD_SPADE, 1),
    ChestType.Gun).setRarity(10).setMinZone(5).setMaxZone(100));
    //SHOTGUNS
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "M590 (I)", Material.WOOD_PICKAXE, 1),
    ChestType.Gun).setRarity(45).setMinZone(0).setMaxZone(3));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "AA12 (II)", Material.STONE_PICKAXE, 1),
    ChestType.Gun).setRarity(40).setMinZone(3).setMaxZone(4));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "M1014 (III)", Material.IRON_PICKAXE, 1),
    ChestType.Gun).setRarity(20).setMinZone(4).setMaxZone(6));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "SPAS-12 (IV)", Material.DIAMOND_PICKAXE, 1),
    ChestType.Gun).setRarity(10).setMinZone(5).setMaxZone(100));
    //PISTOLS
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "Five Seven (I)", Material.WOOD_SPADE, 1),
    ChestType.Gun).setRarity(90).setMinZone(0).setMaxZone(3));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "M1911 (II)", Material.STONE_SPADE, 1),
    ChestType.Gun).setRarity(80).setMinZone(3).setMaxZone(4));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + ".44 Magnum (III)", Material.IRON_SPADE, 1),
    ChestType.Gun).setRarity(40).setMinZone(4).setMaxZone(100));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "Desert Eagle (IV)", Material.DIAMOND_SPADE, 1),
    ChestType.Gun).setRarity(20).setMinZone(5).setMaxZone(100));
    //SNIPERS
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "Dragunov (I)", Material.WOOD_AXE, 1),
    ChestType.Gun).setRarity(20).setMinZone(3).setMaxZone(100));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "M40A3 (II)", Material.STONE_AXE, 1),
    ChestType.Gun).setRarity(15).setMinZone(4).setMaxZone(100));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "MSR (III)", Material.IRON_AXE, 1),
    ChestType.Gun).setRarity(10).setMinZone(5).setMaxZone(100));
    this.myItems.add(new ChestItem(Util.getNamedItemStack(ChatColor.YELLOW + "Barrett 50cal (IV)", Material.DIAMOND_AXE, 1),
    ChestType.Gun).setRarity(5).setMinZone(6).setMaxZone(100));

    This was really useful to me, but I would like to know, what does .setRarity (5) mean?
    Obviously the higher the rarity number the more common it is, but how does this actually work? Is it a 5% chance to find it? Or is it some other system?
     
  2. chickenputty

    chickenputty License & registration?

    Joined:
    Jul 28, 2013
    Messages:
    7,724
    Ratings:
    +5,463
    Discord:
    Putty#9999
    Good question, not sure.
     
    • Funny Funny x 4
    • Pointless Pointless x 1
  3. GlobalistCuck

    GlobalistCuck Well-Known Member

    Joined:
    Dec 3, 2013
    Messages:
    2,308
    Ratings:
    +994
    Would @Mario know?
     
  4. chickenputty

    chickenputty License & registration?

    Joined:
    Jul 28, 2013
    Messages:
    7,724
    Ratings:
    +5,463
    Discord:
    Putty#9999
    I'm pretty sure it takes the category and tier each item is in and the rarity is based on how many items are in that selection.
     
  5. GlobalistCuck

    GlobalistCuck Well-Known Member

    Joined:
    Dec 3, 2013
    Messages:
    2,308
    Ratings:
    +994
    But isn't there only one item per tier and category? For example:

    Category: Sniper
    Tier: IV

    The only item in that selection is a barret.
     
  6. chickenputty

    chickenputty License & registration?

    Joined:
    Jul 28, 2013
    Messages:
    7,724
    Ratings:
    +5,463
    Discord:
    Putty#9999
    Sorry, I meant zone.

    Category: Guns
    Zone: 5

    All zone 5 guns would be in that selection.
     
  7. GlobalistCuck

    GlobalistCuck Well-Known Member

    Joined:
    Dec 3, 2013
    Messages:
    2,308
    Ratings:
    +994
    So... the possible guns for Zone 5 are:

    Dragunov: Rarity 20
    AWP: Rarity 15
    MSR: Rarity 10
    Magnum: Rarity 40
    Desert Eagle: Rarity 20
    M1014: Rarity 20
    Spas-12: Rarity 10
    Uzi: Rarity 40
    UMP-45: Rarity 20
    P90: Rarity 10
    M16: Rarity 40
    M4A1: Rarity 20
    AK47: Rarity 10

    Total Rarity: 275

    AK-47 Rarity is 10. So am I right in saying that if you WERE to get a gun in a chest in a Zone 5 town, you would have a 3.6% chance to get an AK-47? 100 divided by 27.5=3.6 approximately

    But, the question still remains, what is the chance of getting a gun as opposed to food or armor or bandages?
     
  8. chickenputty

    chickenputty License & registration?

    Joined:
    Jul 28, 2013
    Messages:
    7,724
    Ratings:
    +5,463
    Discord:
    Putty#9999
    When chests refill they have the chance of spawning Medicine, Weapons, Gun, Food, or Industrial items.
     
  9. GlobalistCuck

    GlobalistCuck Well-Known Member

    Joined:
    Dec 3, 2013
    Messages:
    2,308
    Ratings:
    +994
    And these all have equal chances? And is the thing about AK-47 having 3.6% chance to spawn that I posted above correct?
     
  10. chickenputty

    chickenputty License & registration?

    Joined:
    Jul 28, 2013
    Messages:
    7,724
    Ratings:
    +5,463
    Discord:
    Putty#9999
    Seems correct
     
  11. GlobalistCuck

    GlobalistCuck Well-Known Member

    Joined:
    Dec 3, 2013
    Messages:
    2,308
    Ratings:
    +994
    Cool. Thanks a lot, this really helped! We have cracked the code to WarZ chests :grinning:

    Another question to this topic, what is the .setRarity of diamond armor? Also, what else is in the Industrial category, other than armor?
     
Loading...
Similar Threads Forum Date
Accepted Solrarity’s jmod application (again) Accepted Mar 2, 2022
Dchest rarity? Q & A Nov 25, 2014
Increase Minigun Rarity Ideas Nov 7, 2014
Idea Auto ammo rarity buff MC-WarZ Sep 4, 2014
WarZ-like servers? MC-WarZ Apr 2, 2023
Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...