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 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 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() {
w = document.getElementById("w-select");
w.value = '';
a = document.getElementById("a-select");
a.required = "required";
w.required = "";
}
function val2() {
a = document.getElementById("a-select");
a.value = '';
w = document.getElementById("w-select");
w.required = "required";
a.required = "";
}
$(document).ready(function () {

View File

@ -35,3 +35,14 @@ option {
.col-4 {
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>
<div class="container">
<p>D2UM: Diablo 2 Unique Maker, v2. By HashCasper</p>
<div class="container container-top">
<h1>D2UM: Diablo 2 Unique Maker, v2. By HashCasper</h1>
<form action="/index.php" method="post">
<div class="form-group row">
@ -38,7 +38,7 @@
<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>
<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>
</div>
@ -52,7 +52,7 @@
<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>
<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>
</div>
@ -67,7 +67,7 @@
<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>
<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>
</div>
@ -104,7 +104,7 @@
<div class="col-2" style="background: #ccd;">
<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>
<?php
foreach ($armor as $a)
@ -120,7 +120,7 @@
<div class="col-2" style="background: #ddc;">
<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>
<?php
foreach ($weapon as $a) {

View File

@ -43,7 +43,7 @@ class saveFile {
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";