0.6.9 • Published 8 years ago

koc v0.6.9

Weekly downloads
1
License
GPL v2
Repository
github
Last release
8 years ago

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 :)

0.6.9

8 years ago

0.6.8

8 years ago

0.6.7

8 years ago

0.6.6

8 years ago

0.6.5

8 years ago

0.6.4

8 years ago

0.6.3

8 years ago

0.6.2

8 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.8

9 years ago

0.5.7

9 years ago

0.5.6

9 years ago

0.5.5

9 years ago

0.5.4

9 years ago

0.5.3

9 years ago

0.5.2

9 years ago

0.5.1

9 years ago

0.5.0

9 years ago

0.4.9

9 years ago

0.4.8

9 years ago

0.4.7

9 years ago

0.4.6

9 years ago

0.4.5

9 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.9

9 years ago

0.3.8

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.9

9 years ago

0.2.8

9 years ago

0.2.7

9 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.20

10 years ago

0.1.19

10 years ago

0.1.18

10 years ago

0.1.17

10 years ago

0.1.16

10 years ago

0.1.15

10 years ago

0.1.14

10 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago