item parsing not yet working fully

This commit is contained in:
Hash Borgir
2023-06-07 01:09:02 -06:00
parent ff1be3692e
commit 9c8f50f1f7
3 changed files with 22 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ foreach ($ISCData as $k => $v) {
//$filePath = "D:\Diablo II\MODS\MedianXL2012\save\Test.d2s";
$filePath = "Pest.d2s";
$filePath = "Sorc.d2s";
$char = new D2Char($filePath);
//$char->setChar("CharacterStatus", "Died", 0);
@@ -51,8 +51,8 @@ $char = new D2Char($filePath);
//$char->setChar("CharacterStatus", "Expansion", 1);
//$char->setChar("LeftmousebuttonskillID", 223);
//$char->setAllSkills(1);
$char->setSkill(4, 99);
$char->setAllSkills(1);
//$char->setSkill(3, 20);
//$char->setChar("CharacterClass", "Necromancer"); // 127
//$char->setChar("CharacterProgression", 1); // 0 in normal, 1 finished normal, 2 finished nm, 3 finished hell
@@ -88,5 +88,5 @@ unset($char); // destroy $char so we can read it again after writing to it to ge
$char = new D2Char($filePath);
var_dump($char->cData);
var_dump($char->cData['items']);
//var_dump($char->cData['stats']);