Class ItemRarity

java.lang.Object
games.stendhal.server.core.scripting.ScriptImpl
games.stendhal.server.script.ItemRarity
All Implemented Interfaces:
Script

public class ItemRarity extends ScriptImpl
Calculates item rarity metric for every dropped item. The rarity is 1/p, where p is the probability of a creature that would drop (taking in account the creature drop probability) the item spawning anywhere in an empty world.
  • Constructor Details

    • ItemRarity

      public ItemRarity()
  • Method Details

    • execute

      public void execute(Player admin, List<String> args)
      Description copied from interface: Script
      Executes this script.
      Specified by:
      execute in interface Script
      Overrides:
      execute in class ScriptImpl
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.