Quote:
|
Originally Posted by Junglos
i am trying to get "skillsoundgrp.dat" decoded to txt and i got the output php file which has :
Code:
<?php
$rs[0] = array("nose01" => "1", "nose02" => "1", "nose03" => "SkillSound4.fatal_strike_cast", "nose04" => "SkillSound4.fatal_strike_shot", "nose05" => "", "nose06" => "1132068864", "nose07" => "
now my question is what next? after i get this output file? what shouldl i do with it? Maybe you know a better way to decode it to txt?
|
if you want use PHP pack in next time, you must lost time for edited all php-scripts to new formats. Example, it is remake script for plain output file.
Differents in "$write = ..." But no all scripts easy to fix to new format.
[php:1:948e8e70e4]<?php
// L2ScriptMaker C4 compatible
// 21 Apr 2006
// edited by HF, Russia
include("func.php"); $fp = fopen("../input/dec-castlename-e.dat", "rb"); $count = endian($fp, 4);
$fpo = fopen("../output/castlename-e.txt", "w+");
for ($i = 0; $i < $count; $i++) {
unset($rs); $rs = readcastlename($fp);
$write = "item_begin id={$rs['id']} name=[{$rs['name']}] loc=[{$rs['loc']}] desc=[{$rs['desc']}] castle_end\n";
// $write = " \$rs[$i] = ".array_to_code($rs).";\n";
fwrite($fpo, $write, strlen($write));
}
fclose($fpo);
function readcastlename($fp) {
$rs['nose01'] = endian($fp, 4);
$rs['nose02'] = endian($fp, 4);
$rs['id'] = endian($fp, 4);
$rs['name'] = textread($fp, 1);
$rs['loc'] = textread($fp, 1);
$rs['desc'] = textread($fp, 1);
return $rs;
}
?>[/php:1:948e8e70e4]