def highAlch(mob, item): amt = int(item.getDefinition().getValue() * .75) cItems = MageTrainingArena.getCupboarditems() xmin = 1 xmax = 30 currency = 995 for i in cItems: if item.getId() == i: amt = Misc.random(xmin, xmax) currency = 8890 mob.getInventory().remove(Item(item.getId(), 1)) mob.getInventory().add(Item(currency, amt)) mob.playAnimation(Animation.create(713)) mob.playGraphics(Graphic.create(113, 0, 100)) mob.playSound(Sound.create(97, 1, 20)) mob.getSkills().addExperience(Skills.MAGIC, 50 * Constants.EXP_MODIFIER)
def objectOptionOne_pentamid_pile(player, obj): MageTrainingArena.getMageTrainingArena().handleObjectOption(player, obj.getId())
def objectOptionOne_coin_collector(player, obj): MageTrainingArena.getMageTrainingArena().handleObjectOption(player, obj.getId())
def objectOptionOne_cupboard(player, obj): MageTrainingArena.getMageTrainingArena().handleObjectOption(player, obj.getId())
def objectOptionOne_icosahedron_pile(player, obj): MageTrainingArena.getMageTrainingArena().handleObjectOption(player, obj.getId())
def objectOptionOne_cylinder_pile(player, obj): MageTrainingArena.getMageTrainingArena().handleObjectOption(player, obj.getId())