Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 14.06.2006, 06:04   #4
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default Re: PHP C3EncDec

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]
HF is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:37.