npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

wakfu-autobuild-fr

v0.1.1

Published

Pick the best set automatically

Downloads

5

Readme

wakfu-autobuild

Build Status codecov install size

A CLI tool that can find the equipment combination with the highest damage factor.

screenshot

Install

npm install -g wakfu-autobuild-fr

Usage

Usage:
  wakfu-autobuild [options]

Options:
  --level=<number>                  character level. [default: 1]
  --min-level=<number>              minimum item level. [default: 1]
  --element=<number>                number of elements that the character uses. [default: 1]
  
  --require=<constrains>            a comma separated constrain list. Each constrain is composed by a property name,
                                    the "=" symbol, and a value. Example: "ap=5,control=3"
              
  --base-ap=<number>                base ap. [default: 6]
  --base-mastery=<number>           base mastery given by passive or buff. [default: 0]
  --base-critical-hit=<number>      base critical hit % given by passive or buff. [default: 0]
  --base-critical-mastery=<number>  base critical mastery given by passive or buff. [default: 0]
  --base-damage-inflicted=<number>  base damage inflicted %. [default: 0]
  
  --second-mastery=<masteries>      a comma separated secondary mastery list. Example: "singleTarget,melee".
  
  --major=<number>                  calculate major points. [default: 0]
  
  --disable-category=<types>        a comma separated category list. Example: "costume,accessory"
  --disable-item=<ids>              a comma separated list of item id. Example: "24674,22609"
  --use-item=<ids>                  a comma separated list of item id. Example: "26581,17543"
  
  --ap-to-damage                    calculate ap as a damage modifier.
  --range-to-damage                 calculate range as a damage modifier. This adds 3 damage inflicted for each
                                    range.
                                    
  --score-only                      do not search for items but only calculate the score of the current stat given
                                    by --base-xxx options.

Details:

  • Equipment whose level is lower --min-level and higher --level are excluded. It doesn't calculate kit skill.

  • --element decides how to calculate elemental mastery. Suppose an equipment gives 100 mastery in two elements. The tool adds 100 mastery for single-element character and adds 100 * 2 / 3 mastery for tri-element character.

  • --ap-to-damage calculates AP as a damage modifier since you can cast more spells with more AP. However this is not strictly true because some spells have cooldown and can't be used multiple times in one turn.

  • --major option treats major points as items and find the best combination with other equipment. You get one major point at level 25, 75, 125, and 175.

    If you want to exclude/use specific majors, target them with id 1~7.

  • Available options for --require:

    [
      'hp',                 'criticalHit',
      'control',            'dodge',
      'block',              'initiative',
      'lock',               'healingMastery',
      'meleeMastery',       'singleTargetMastery',
      'wisdom',             'kitSkill',
      'ap',                 'distanceMastery',
      'rearMastery',        'prospecting',
      'areaMastery',        'criticalMastery',
      'mp',                 'rearResistance',
      'criticalResistance', 'range',
      'berserkMastery',     'wp',
      'forceOfWill'
    ]
  • Available options for --second-mastery:

    [
      'healing',
      'melee',
      'singleTarget',
      'distance',
      'rear',
      'area',
      'berserk'
    ]
  • Available options for --disable-category:

    [
      'neck',        'ring',
      'legs',        'back',
      'belt',        'head',
      'heavyWeapon', 'firstWeapon',
      'shoulders',   'secondWeapon',
      'accessory',   'chest',
      'pet',         'costume'
    ]

Examples

Find some equipments for 12ap, lv.155, AoE, fire/earth Cra

wakfu-autobuild --level 155 --element 2 --require control=2,ap=5 --base-mastery 334 --base-critical-hit 33 --base-critical-mastery 208 --base-damage-inflicted 44 --second-mastery distance,area --disable-category accessory --range-to-damage

Find some equipments for lv.140 Astrub Knight

wakfu-autobuild --level 140 --element 1 --require mp=2 --base-mastery 301 --base-critical-hit 11  --second-mastery singleTarget,melee --disable-category accessory --ap-to-damage

Calculate the score of autobuild for lv.166 pandora

wakfu-autobuild --base-ap 12 --base-mastery 1148 --base-critical-hit 38 --ap-to-damage --score-only

Issues

  1. Wakfu didn't provide useful information about pets and mounts. Please provide these extra mastery/critical via --base-mastery/--base-critical-hit/--base-critical-mastery options.

  2. Static elemental mastery might not work correctly. To simplify the process e.g. "15 water mastery" will be converted to "15 mastery of 1 element".

  3. Some classes get extra damage with specific stat e.g. Cra gains 3% damage inflicted for each range. Currently they are hand-crafted. Please raise feature requests to add more for other classes.

  4. Set effects are not included. This affects the search result for low level items (and PvP items?).

Changelog

  • 0.4.0 (Jul 23, 2020)

    • Fix: dfs the final result to avoid memory overflow.
    • Breaking: drop --pool-size option.
  • 0.3.0 (Jul 13, 2020)

    • Fix: solve negative effects correctly.
    • Add: --major option.
    • Add: --disable-item and --use-item options.
    • Add: --score-only option.
    • Add: --pool-size option. Improve performance.
    • Breaking: decrease default ap from 7 to 6. This affects the final score.
    • Breaking: exclude costume.
  • 0.2.0 (Jun 7, 2020)

    • Rewrite the solver, improve performance.
    • Display alternative item in the result.
  • 0.1.0 (Jun 6, 2020)

    • Initial release.