PHP code example of cydh / dp2ra
1. Go to this page and download the library: Download cydh/dp2ra library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cydh / dp2ra example snippets
// 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",
]);