Convert Divine Pride item json-fetched info to rAthena
- PHP 7.1.3 or newer
- Composer
- JSON formatted item info from Divine-Pride's API
If you willing to use this as component,
composer require cydh/dp2ra
or download latest version then install it by using composer
composer install
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.
Make new issue or new pull request. This version is under development
- Items Parser
- Card compound location
- Applicable Job