Item Preview Done. Todo: Stat Rendering

This commit is contained in:
color.diff=auto
2021-05-02 05:35:38 -06:00
parent 65b3980c44
commit efa7f8f28e
987 changed files with 816 additions and 122 deletions

View File

@@ -1,11 +1,19 @@
<div style="height: 40px; margin: 40px 10px;"><h2>Unique Item Maker</h2></div>
<div class="row" style="margin:40px;">
<div class="col" style="text-align: center;">
<p>Search for Item</p>
<input style="border: 1px solid #999; padding: 10px;width: 420px;" id="search" type="text custom-control-inline" placeholder="Search item" name="search">
<div class="row">
<div class="offset-6 col"><h3 style="font-family:fixed; font-size:80%;">Preview</h3>
<div class="" style="height: 117px; background: url(/img/items/bg.png) no-repeat">
<img style="" class="item" src="">
</div>
</div>
</div>
<div class="row" style="margin-bottom:40px;">
<div class="col" style="">
<p>Search for Item</p>
<input style="border: 1px solid #999; padding: 10px;width: 440px;" id="search" type="text custom-control-inline" placeholder="Search item" name="search">
</div>
</div>
<div class="row" style="">
<div class="col-5">
<select name="uniqueitems" class="custom-select uniqueitems-select">
@@ -127,7 +135,7 @@
<div class="col-2" style="background: #dec;">
<p>Rarity</p>
<div class="input-group">
<input name="rarity" type="text" aria-describedby="rarityHelpBlock" required="required" class="form-control">
<input name="rarity" type="text" aria-describedby="rarityHelpBlock" class="form-control">
</div><span class="help"><i class="fa fa-question-circle" aria-hidden="true"></i>
</span>
<span class="form-text">Rarity: chance to pick this unique item if more then one unique item of the same base item exist, this uses the common rarity/total_rarity formula, so if you have two unique rings, one with a rarity of 100 the other with a rarity of 1, then the first will drop 100/101 percent of the time (99%) and the other will drop 1/101 percent of the time (1%), rarity can be anything between 1 and 255 (rarity of less then 1 will be set to 1 by the code).</span>
@@ -155,7 +163,7 @@
<div class="col-2" style="background: #edd;">
<p>LvlReq</p>
<input name="lvlreq" type="text" aria-describedby="lvlreqHelpBlock" required="required" class="form-control"><span class="help"><i class="fa fa-question-circle" aria-hidden="true"></i>
<input name="lvl req" type="text" aria-describedby="lvlreqHelpBlock" required="required" class="form-control"><span class="help"><i class="fa fa-question-circle" aria-hidden="true"></i>
</span>
<span class="form-text">Lvl Req: the character level required to use this unique item.</span>
</div>
@@ -203,8 +211,8 @@
</select>
</div>
<input type="hidden" name="type" value=""> <br>
<input type="hidden" name="uber" value=""><br>
<input type="hidden" name="*type" value=""> <br>
<input type="hidden" name="*uber" value=""><br>
<div class="col-2" style="background: #edf;">
<p>Carry 1</p>
<select name="carry1" class="custom-select" aria-describedby="carry1HelpBlock">
@@ -220,7 +228,7 @@
<div class="col-2" style="background: #def;">
<p>CostMult</p>
<input value="" name="costmult" type="text" aria-describedby="costmultHelpBlock" class="form-control"><span class="help"><i class="fa fa-question-circle" aria-hidden="true"></i>
<input value="" name="cost mult" type="text" aria-describedby="costmultHelpBlock" class="form-control"><span class="help"><i class="fa fa-question-circle" aria-hidden="true"></i>
</span>
<span class="form-text">Cost Mult: the base item's price is multiplied by this value when sold, repaired or bought from a vendor.</span>
</div>
@@ -228,7 +236,7 @@
<div class="col-2" style="background: #def;">
<p>CostAdd</p>
<input value="" name="costadd" type="text" aria-describedby="costaddHelpBlock" required="required" class="form-control"><span class="help"><i class="fa fa-question-circle" aria-hidden="true"></i>
<input value="" name="cost add" type="text" aria-describedby="costaddHelpBlock" class="form-control"><span class="help"><i class="fa fa-question-circle" aria-hidden="true"></i>
</span>
<span class="form-text">Cost Add: after the price has been multiplied, this amount of gold is added to the price on top.</span>
</div>
@@ -293,7 +301,7 @@
foreach (range(01, 12) as $p) {
?>
<div class="col-2" style="padding: 15px;margin: 10px 0px; background: #ddd;">
<div class="col-2" style="background: #ddd;">
<p>Prop <?php echo $p ?>:</p>
<select class="custom-select prop<?php echo $p ?>-select" name="prop<?php echo $p ?>">
<option class="PropFirst" value=""></option>