Skip to content
/ dp2ra Public

Convert Divine Pride item json-fetched info to rAthena database files

License

Notifications You must be signed in to change notification settings

cydh/dp2ra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DP2RA Converter

Convert Divine Pride item json-fetched info to rAthena

Requirements

Installation

If you willing to use this as component,

composer require cydh/dp2ra

or download latest version then install it by using composer

composer install

Usage

Then include autoload in PHP file (example: parse_item.php)

require_once './vendor/autoload.php';

// Quick parse item data to output files
Cydh\DP2RA\Items::parse([
    "input" => "path/to/item_db.json",
    "output_itemdb" => "output/path/item_db.txt",
    "output_tradedb" => "output/path/item_trade.txt",
]);

// Quick parse monster data to output files
Cydh\DP2RA\Monsters::parse([
    "input" => "path/to/mob_db.json",
    "output_mobdb" => "output/path/mob_db.txt",
    "output_mobskilldb" => "output/path/mob_skill.txt",
    "output_spawn" => "output/path/spawn.txt",
]);

There are manual parsing & file writing by initilizing Cydh\DP2RA\Items or Cydh\DP2RA\Monsters classes then call its methods.

Some parsers from Divine-Pride data structure (Aegis' enum/value) are written in public static function which can be called outside the class.

Contributing

Make new issue or new pull request. This version is under development

TODO

  • Items Parser
    • Card compound location
    • Applicable Job

About

Convert Divine Pride item json-fetched info to rAthena database files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages