![]() |
|
|
#4 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
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] |
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|