latest working copy, file backup, tbl entry done, minor tweaks

This commit is contained in:
color.diff=auto 2021-03-22 00:15:01 -06:00
parent 9e494febda
commit d091528112
6 changed files with 73 additions and 14 deletions

View File

@ -1448,3 +1448,29 @@ a3fadfsf 100 1 1 12 0 12 15 1 5 5000 invxyz inabc
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0 "My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0 "My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0 "My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 msk 1 5 5000 invxyz inabc 0
"My Awesome Unique3" 100 1 1 12 0 12 15 stu 1 5 5000 invxyz inabc 0
"My Awesome Unique" 100 1 1 12 0 12 15 stu 1 5 5000 invxyz inabc hp 1 1 1 0
"My Awesome Unique" 100 1 1 12 0 12 12 ywn 1 5 5000 invxyz inabc 0
"My Awesome Unique" 100 1 1 12 0 12 12 ywn 1 5 5000 invxyz inabc 0
"My Awesome Unique" 100 1 1 12 0 12 12 ywn 1 5 5000 invxyz inabc 0
"My Awesome Unique" 100 1 1 12 0 12 12 ywn 1 5 5000 invxyz inabc 0
"My Awesome Unique" 100 1 1 12 0 12 12 ywn 1 5 5000 invxyz inabc 0
"My Awesome Unique" 100 1 1 12 0 12 12 ywn 1 5 5000 invxyz inabc 0
"My Awesome Unique" 100 1 1 12 0 12 12 ywn 1 5 5000 invxyz inabc 0
"My Awesome Unique" 100 1 1 12 0 12 12 ywn 1 5 5000 invxyz inabc 0
"My Awesome Unique" 100 1 1 12 0 12 12 ywn 1 5 5000 invxyz inabc 0

View File

@ -1 +1,27 @@
"My Awesome Unique3" "My Awesome Unique3" "My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique3" "My Awesome Unique3"
"My Awesome Unique" "My Awesome Unique"
"My Awesome Unique" "My Awesome Unique"
"My Awesome Unique" "My Awesome Unique"
"My Awesome Unique" "My Awesome Unique"
"My Awesome Unique" "My Awesome Unique"
"My Awesome Unique" "My Awesome Unique"
"My Awesome Unique" "My Awesome Unique"
"My Awesome Unique" "My Awesome Unique"
"My Awesome Unique" "My Awesome Unique"
"My Awesome Unique" "My Awesome Unique"

View File

@ -1,16 +1,12 @@
function val() { function val() {
w = document.getElementById("w-select"); w = document.getElementById("w-select");
w.value = ''; w.value = '';
w.required = "";
a = document.getElementById("a-select");
a.required = "required";
} }
function val2() { function val2() {
a = document.getElementById("a-select"); a = document.getElementById("a-select");
a.value = ''; a.value = '';
a.required = "";
w = document.getElementById("w-select");
w.required = "required";
} }
$(document).ready(function () { $(document).ready(function () {

View File

@ -35,3 +35,14 @@ option {
.col-4 { .col-4 {
padding: 5px; padding: 5px;
} }
.container-top {
border: 1px solid #ddd;
margin: 30px auto;
padding: 10px;
background: white;
}
body {
background: black;
}

View File

@ -6,8 +6,8 @@
?> ?>
<body> <body>
<div class="container"> <div class="container container-top">
<p>D2UM: Diablo 2 Unique Maker, v2. By HashCasper</p> <h1>D2UM: Diablo 2 Unique Maker, v2. By HashCasper</h1>
<form action="/index.php" method="post"> <form action="/index.php" method="post">
<div class="form-group row"> <div class="form-group row">
@ -38,7 +38,7 @@
<div class="custom-control custom-radio custom-control-inline"> <div class="custom-control custom-radio custom-control-inline">
<input name="version" id="version_2" type="radio" aria-describedby="versionHelpBlock" required="required" class="custom-control-input" value="100" checked> <input name="version" id="version_2" type="radio" aria-describedby="versionHelpBlock" required="required" class="custom-control-input" value="100" checked>
<label for="version_2" class="custom-control-label">100</label> <label for="version_2" class="custom-control-label">100</label>
</div><span class="help">[show/hide Help]</span> </div><br><span class="help">[show/hide Help]</span>
<span id="versionHelpBlock" class="form-text text-muted">Version: Switch, what game version was this unique item added in, 0 referes to real classic Diablo II (1.00-1.06), 1 refers to new classic Diablo II (1.07-1.11) and 100 refers to the Expansion Set. Items with 100 will be unable to drop in Classic Diablo II.</span> <span id="versionHelpBlock" class="form-text text-muted">Version: Switch, what game version was this unique item added in, 0 referes to real classic Diablo II (1.00-1.06), 1 refers to new classic Diablo II (1.07-1.11) and 100 refers to the Expansion Set. Items with 100 will be unable to drop in Classic Diablo II.</span>
</div> </div>
@ -52,7 +52,7 @@
<div class="custom-control custom-radio custom-control-inline"> <div class="custom-control custom-radio custom-control-inline">
<input name="enabled" id="enabled_1" type="radio" class="custom-control-input" value="1" aria-describedby="enabledHelpBlock" required="required" checked> <input name="enabled" id="enabled_1" type="radio" class="custom-control-input" value="1" aria-describedby="enabledHelpBlock" required="required" checked>
<label for="enabled_1" class="custom-control-label">1</label> <label for="enabled_1" class="custom-control-label">1</label>
</div><span class="help">[show/hide Help]</span> </div><br><span class="help">[show/hide Help]</span>
<span id="enabledHelpBlock" class="form-text text-muted">Ladder: Boolean, 1 = item available only on the realms (enabled), 0 = item available both in single player/open games, TCP/IP and on the realms.</span> <span id="enabledHelpBlock" class="form-text text-muted">Ladder: Boolean, 1 = item available only on the realms (enabled), 0 = item available both in single player/open games, TCP/IP and on the realms.</span>
</div> </div>
@ -67,7 +67,7 @@
<div class="custom-control custom-radio custom-control-inline"> <div class="custom-control custom-radio custom-control-inline">
<input name="ladder" id="ladder_1" type="radio" class="custom-control-input" value="1" aria-describedby="ladderHelpBlock" required="required" checked> <input name="ladder" id="ladder_1" type="radio" class="custom-control-input" value="1" aria-describedby="ladderHelpBlock" required="required" checked>
<label for="ladder_1" class="custom-control-label">1</label> <label for="ladder_1" class="custom-control-label">1</label>
</div><span class="help">[show/hide Help]</span> </div><br><span class="help">[show/hide Help]</span>
<span id="ladderHelpBlock" class="form-text text-muted">Ladder: Boolean, 1 = item available only on the realms (ladder), 0 = item available both in single player/open games, TCP/IP and on the realms.</span> <span id="ladderHelpBlock" class="form-text text-muted">Ladder: Boolean, 1 = item available only on the realms (ladder), 0 = item available both in single player/open games, TCP/IP and on the realms.</span>
</div> </div>
@ -104,7 +104,7 @@
<div class="col-2" style="background: #ccd;"> <div class="col-2" style="background: #ccd;">
<label for="a-select">Armor</label> <label for="a-select">Armor</label>
<select class="custom-select" onChange="val();" name="code[]" id="a-select"> <select class="custom-select" onChange="val();" name="code[]" id="a-select" required="required">
<option value=""></option> <option value=""></option>
<?php <?php
foreach ($armor as $a) foreach ($armor as $a)
@ -120,7 +120,7 @@
<div class="col-2" style="background: #ddc;"> <div class="col-2" style="background: #ddc;">
<label for="w-select">Weapon</label> <label for="w-select">Weapon</label>
<select class="custom-select" onChange="val2();" name="code[]" id="w-select"> <select class="custom-select" onChange="val2();" name="code[]" id="w-select" required="required">
<option value=""></option> <option value=""></option>
<?php <?php
foreach ($weapon as $a) { foreach ($weapon as $a) {

View File

@ -43,7 +43,7 @@ class saveFile {
public function saveBackup($file){ public function saveBackup($file){
mkdir(TXT_DIR."backup", 0700); if (!is_dir(TXT_DIR."backup")) mkdir(TXT_DIR."backup", 0700);
$newfile = TXT_DIR."backup".DIRECTORY_SEPARATOR.$file.".d2um"; $newfile = TXT_DIR."backup".DIRECTORY_SEPARATOR.$file.".d2um";