Tricky objectives

Some objectives might get little tricky when there are more in the same quest. Quester is checking requirements in same order in which item objectives are added. So for example if you create quest with objectives like this:

  • [0] ITEM: DIAMOND_PICKAXE[278]; DMG: ANY; AMT: 1
  • [1] ITEM: DIAMOND_PICKAXE[278]; DMG: ANY; AMT: 1
  • - -ENCH: DIG_SPEED:1

- player will have to get at least 1 regular diamond pickaxe and one with efficiency enchant lvl 1.

BUT when efficiency pickaxe is in his first slot and regular pickaxe in the second slot, efficiency will be consumed by the first objective that accepts any pickaxe. Player now has only regular pickaxe, while quester is looking for enchanted pickaxe. Quester will announce that player has not enough resurces to complete all objectives.

To prevent this, make sure that objectives that require some special item are added first, so Quester will check for those first, and then it will check for any type. In the case above, solution would be:

  • [0] ITEM: DIAMOND_PICKAXE[278]; DMG: ANY; AMT: 1
  • - -ENCH: DIG_SPEED:1
  • [1] ITEM: DIAMOND_PICKAXE[278]; DMG: ANY; AMT: 1

Same applies to all objectives that use optional data. Another example would be shear any sheep versus shear green sheep, or kill any boss versus particular one.