mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-10-13 08:24:24 -05:00
ajaxify d2s editor
This commit is contained in:
@@ -43,7 +43,7 @@ foreach ($ISCData as $k => $v) {
|
||||
//$filePath = "D:\Diablo II\MODS\MedianXL2012\save\Test.d2s";
|
||||
|
||||
|
||||
$filePath = "Test.d2s";
|
||||
$filePath = "Pest.d2s";
|
||||
$char = new D2Char($filePath);
|
||||
|
||||
//$char->setChar("CharacterStatus", "Died", 0);
|
||||
@@ -51,23 +51,23 @@ $char = new D2Char($filePath);
|
||||
//$char->setChar("CharacterStatus", "Expansion", 1);
|
||||
//$char->setChar("LeftmousebuttonskillID", 223);
|
||||
|
||||
$char->setAllSkills(1);
|
||||
//$char->setSkill(1, 99);
|
||||
//$char->setAllSkills(1);
|
||||
$char->setSkill(4, 99);
|
||||
//$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->setStat("strength", 270);
|
||||
$char->setStat("energy", 270);
|
||||
$char->setStat("dexterity", 270);
|
||||
$char->setStat("vitality", 270);
|
||||
$char->setStat("hitpoints", 100);
|
||||
$char->setStat("maxhp", 150);
|
||||
$char->setStat("stamina", 280);
|
||||
$char->setStat("maxstamina", 290);
|
||||
$char->setStat("mana", 70);
|
||||
$char->setStat("maxmana", 200);
|
||||
//$char->setChar("CharacterLevel", 99);
|
||||
//$char->setStat("strength", 270);
|
||||
//$char->setStat("energy", 270);
|
||||
//$char->setStat("dexterity", 270);
|
||||
//$char->setStat("vitality", 270);
|
||||
//$char->setStat("hitpoints", 100);
|
||||
//$char->setStat("maxhp", 150);
|
||||
//$char->setStat("stamina", 280);
|
||||
//$char->setStat("maxstamina", 290);
|
||||
//$char->setStat("mana", 70);
|
||||
//$char->setStat("maxmana", 200);
|
||||
|
||||
|
||||
//$char->setStat("soulcounter", 80);
|
||||
@@ -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['CharacterStatus']);
|
||||
var_dump($char->cData['stats']);
|
||||
var_dump($char->cData);
|
||||
//var_dump($char->cData['stats']);
|
||||
|
Reference in New Issue
Block a user