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

koc

v0.6.9

Published

Library to parse data from the online MMORPG Kings of Chaos

Downloads

70

Readme

node-koc

Node library to parse data from the online MMORPG Kings of Chaos This library is the 'core', or server-side / parser of a set of 3 libraries as shown in the diagram below

koc-ionic koc-api node-koc

Relations between the libraries

Install

npm install koc

Use

Check lib/koc.js for the available functions.

Examples (non exhaustive):

Create the main object
Login
Get your own user info (Command Center)
Get the light stats of a given user

Note: as what you see when clicking on a user from the battlefield

Get the full stats of a given user

Note: as what you see on the user's stats page

Get your armory

Note: this also returns the 'turing' needed for example when buying weapons

Buy weapons

Note: you need the turing provided by the getArmory() call Note: the second argument is the list of weapons as retrieved in the koc.getArmory() call prior to buy

See your training center
Train your soldiers

Note: turing and soldiers to train as returned in the koc.getTraining() call prior to train

See your mercenaries
Hire mercenaries

Note: turing and mercenaries to hire as returned in the koc.getMercenaries() call prior to hire

Get the Attack Log

Example to retrieve the most recent 20 attacks by you and on you

Example to retrieve the attack log, starting on the 21st most recent attack by you (20) and the 41st most recent attack on you (40)

Get the Intelligence Log

Example to retrieve the most recent 20 reports of users you have recon and spies you intercepted

Example to retrieve the intelligence log starting from the 21st most recent recon by you (20) and the 41st most recent intercepted report (40)

Attack

Retrieves the info in the page on the battlefield where you are listed (same as when you click 'Attack').

Battlefield

Retrieves the info on the battlefield for the given page Note: Depending on your spy level, you can see the Gold of some users

Battle Report

Retrieve the given battle report

Intel File

Retrieves the intelligence files you have for the given user

Intel Detail

Gives you the detail of a single spy from the list of reports given by koc.intelFile( userid )

Spy

Spy your enemies!

Note: If you have the turing given by koc.getFullStats() or koc.getQuickStats() prior to spy, you can specify it:

Attack/Raid

Conquer your enemies!

Note: If you have the turing given by koc.getFullStats() or koc.getQuickStats() prior to spy, you can specify it:

Shortcuts exist (also with optional turing):

Sab

TODO! Please contribute :)