Better stats editor

This commit is contained in:
Hash Borgir
2023-06-11 18:03:39 -06:00
parent 9c8f50f1f7
commit e68dde2f23
5 changed files with 216 additions and 211 deletions

View File

@@ -43,7 +43,7 @@ foreach ($ISCData as $k => $v) {
//$filePath = "D:\Diablo II\MODS\MedianXL2012\save\Test.d2s";
$filePath = "Sorc.d2s";
$filePath = "Test.d2s";
$char = new D2Char($filePath);
//$char->setChar("CharacterStatus", "Died", 0);
@@ -51,13 +51,14 @@ $char = new D2Char($filePath);
//$char->setChar("CharacterStatus", "Expansion", 1);
//$char->setChar("LeftmousebuttonskillID", 223);
$char->setAllSkills(1);
$char->setAllSkills(0);
//$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
//$char->setChar("CharacterStatus", "Died", 1);
//$char->setChar("CharacterLevel", 99);
$char->setChar("CharacterLevel", 1);
$char->setStat("newskills", 99);
//$char->setStat("strength", 270);
//$char->setStat("energy", 270);
//$char->setStat("dexterity", 270);
@@ -88,5 +89,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['items']);
var_dump($char->cData);
//var_dump($char->cData['stats']);