mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
Checksum code fixed. Added DocBlocks to D2Classes. TODO: Fill in docblocks, refactor, code cleanup
This commit is contained in:
@@ -42,23 +42,39 @@ foreach ($ISCData as $k => $v) {
|
||||
//$filePath = "D:\Diablo II\MODS\MedianXL2012\save\Test.d2s";
|
||||
|
||||
|
||||
$filePath = "Test.d2s";
|
||||
$filePath = "Necro.d2s";
|
||||
$char = new D2Char($filePath);
|
||||
//$char->setAllSkills(56);
|
||||
$char->setChar("CharacterStatus", "Died", 0);
|
||||
$char->setChar("CharacterStatus", "Hardcore", 1);
|
||||
//$char->setChar("CharacterStatus", "Expansion", 1);
|
||||
//$char->setChar("LeftmousebuttonskillID", 223);
|
||||
|
||||
$char->setAllSkills(1);
|
||||
//$char->setSkill(1, 99);
|
||||
//$char->setChar("CharacterClass", 1); // 127
|
||||
$char->setChar("CharacterLevel", 0);
|
||||
$char->setStat("strength", 30);
|
||||
$char->setStat("energy", 30);
|
||||
$char->setStat("dexterity", 30);
|
||||
$char->setStat("vitality", 30);
|
||||
$char->setStat("mana", 120);
|
||||
$char->setStat("maxmana", 200);
|
||||
$char->setStat("stamina", 80);
|
||||
$char->setStat("maxstamina", 120);
|
||||
//$char->setChar("CharacterClass", "Necromancer"); // 127
|
||||
//$char->setChar("CharacterProgression", 1); // 0 in normal, 1 finished normal, 2 finished nm, 3 finished hell
|
||||
$char->setChar("CharacterLevel", 25);
|
||||
//$char->setStat("strength", 70);
|
||||
//$char->setStat("energy", 70);
|
||||
//$char->setStat("dexterity", 70);
|
||||
//$char->setStat("vitality", 70);
|
||||
//$char->setStat("mana", 200);
|
||||
//$char->setStat("maxmana", 200);
|
||||
//$char->setStat("soulcounter", 80);
|
||||
//
|
||||
//$char->setStat("hitpoints", 70);
|
||||
//$char->setStat("maxhp", 70);
|
||||
//$char->setStat("stamina", 70);
|
||||
//$char->setStat("maxstamina", 200);
|
||||
//
|
||||
//
|
||||
//$char->setStat("gold", 0);
|
||||
//$char->setStat("soulcounter", 40273409479012734098712903479012374091827349081273490172093478);
|
||||
|
||||
|
||||
|
||||
|
||||
unset($char); // destroy $char so we can read it again after writing to it to get updated stats
|
||||
|
||||
$char = new D2Char($filePath);
|
||||
var_dump($char->cData['stats']);
|
||||
var_dump($char->cData);
|
||||
|
Reference in New Issue
Block a user