Doublexp doubleskill.png Double Exp & Skill: Matar monstros rende o dobro de pontos de experiência. O progresso de skills é duas vezes mais rápido! Doublexp doubleskill.png
Bone Overlord.gif The Roost of the Graveborn Quest Spoiler!
Domine Graveborn: todos os bosses e mecânicas ilustradas!
Saiba mais ➔
Winter Tree.png Winter Update 2025
Acompanhe tudo sobre o Winter Update 2025!
Saiba mais ➔
Stag.gif The Order of the Stag Quest Spoiler!
Conheça Isle of Ada: sua quest, missões secundárias e todos os bosses!
Saiba mais ➔

Tibia Wiki:Imbuing/Codigo: mudanças entre as edições

De Tibia Wiki - A Enciclopédia do Tibia
Ir para navegação Ir para pesquisar
Linha 7: Linha 7:
   </tr>
   </tr>
   <tr>
   <tr>
     <td id="fonte-2">Categoria:
     <td class="janela">Categoria:
       <select>
       <select>
         <option value="escudo">Escudos</option>
         <option value="escudo">Escudos</option>
Linha 13: Linha 13:
       </select>
       </select>
     </td>
     </td>
     <td id="escudos">Item:
     <td class="janela" id="escudos">Item:
       <select>
       <select>
         <option value="escudo">Demon Shield</option>
         <option value="escudo">Demon Shield</option>
       </select>
       </select>
     </td>
     </td>
     <td id="armaduras">Item:
     <td class="janela" id="armaduras">Item:
       <select>
       <select>
         <option value="armadura">Demon Armor</option>
         <option value="armadura">Demon Armor</option>
Linha 53: Linha 53:
               <tr>
               <tr>
                 <td>
                 <td>
                   <select name="tipo" multiple>
                   <select id="tipo" multiple="multiple" style="overflow:hidden;">
                     <option value="basic">Basic Lich Shroud</option>
                     <option value="1" selected>Basic Lich Shroud</option>
                     <option value="intricate">Intricate Lich Shroud (premium)</option>
                     <option value="2">Intricate Lich Shroud (premium)</option>
                     <option value="powerful">Powerful Lich Shroud (premium)</option>
                     <option value="3">Powerful Lich Shroud (premium)</option>
                   </select>
                   </select>
                 </td>
                 </td>
Linha 63: Linha 63:
           </td>
           </td>
         </tr>
         </tr>
         <tr>
         <tr id="fonte-2">
          <td id="fonte-2">Reduces death damage by 3%.
          <td>Reduces death damage by 3%.
             <br /> Lasts for 20h 0min while equipped.
             <br /> Lasts for 20h 0min while equipped.
             <br />
             <br />
             <br /> Requires the following astral sources:
             <br /> Requires the following astral sources:
          </td>
          <td valign="bottom" style="text-align:right;">
            Sucess rate: <span id="chance">90%</span><span class="no" id="chancecharm" style="color:green;">100%</span>
            <br />
           </td>
           </td>
         </tr>
         </tr>
Linha 91: Linha 95:
             </table>
             </table>
           </td>
           </td>
           <td id="fonte-2">
           <td>
            Protection Charm: 10,000 gold
            <table id="fonte-2" style="width:100%;text-align:center;">
            <br /> Sucess rate: 90%
              <tr>
            <br /> Total cost: 5,000 gold
                <td>
          </td>
                  <button id="charm" type="button">Protection Charm</button>
                </td>
                <td>
                  Total cost:
                </td>
              </tr>
              <tr>
                <td class="titulo" style="width:50%;">
                  <span id="preco">10,000</span> gps
                </td>
                <td class="titulo">
                  <span id="total">5,000</span><span class="no" id="totalcharm">15,000</span> gps
                </td>
              </tr>
            </table>
         </tr>
         </tr>
       </table>
       </table>
    </td>
      </td>
   </tr>
   </tr>
</table>
</table>
Linha 189: Linha 207:
   cursor: default;
   cursor: default;
}
}
.no {
  display: none;
}
</pre>
<pre id="imbuing_js">
$(document).ready(function() {
  $("#tipo").change(function() {
    var tipo = $("#tipo").children("option").filter(":selected").val();
    if (tipo == 1) {
      $('#chance').text('90%').css({
        "color": "#B2A898"
      });
      $('#preco').text('10,000');
      $('#total').text('5,000');
      $('#totalcharm').text('15,000');
    } else if (tipo == 2) {
      $('#chance').text('70%').css({
        "color": "#B2A898"
      });
      $('#preco').text('30,000');
      $('#total').text('25,000');
      $('#totalcharm').text('55,000');
    } else if (tipo == 3) {
      $('#chance').text('50%').css({
        "color": "red"
      });
      $('#preco').text('50,000');
      $('#total').text('100,000');
      $('#totalcharm').text('150,000');
    }
  });
  $("#charm").click(function() {
    $('#chance, #chancecharm, #total, #totalcharm').toggleClass("no");
  });
});
</pre>
</pre>

Edição das 20h27min de 9 de novembro de 2016

<table height="243" class="outfiter_main_table">
  <tr>
    <td style="height: 30px;" colspan="3">
      <div class="titulo">Imbuing System</div>
    </td>
  </tr>
  <tr>
    <td class="janela">Categoria:
      <select>
        <option value="escudo">Escudos</option>
        <option value="armadura">Armaduras</option>
      </select>
    </td>
    <td class="janela" id="escudos">Item:
      <select>
        <option value="escudo">Demon Shield</option>
      </select>
    </td>
    <td class="janela" id="armaduras">Item:
      <select>
        <option value="armadura">Demon Armor</option>
      </select>
    </td>
  </tr>
  <tr>
    <td style="height: 30px;" colspan="3">
      <div class="titulo">Opções para Imbuir</div>
    </td>
  </tr>
  <tr>
    <td style="vertical-align: top; height: 127px;">
      <table class="direita">
        <tr style="height:104px">
          <td>
            <table class="tabela_opcoes">
              <tr>
                <td>
                  <select name="elemento" multiple>
                    <option value="death">Elemental Protection (Death)</option>
                    <option value="earth">Elemental Protection (Earth)</option>
                    <option value="fire">Elemental Protection (Fire)</option>
                    <option value="ice">Elemental Protection (Ice)</option>
                    <option value="energy">Elemental Protection (Energy)</option>
                    <option value="holy">Elemental Protection (Holy)</option>
                  </select>
                </td>
              </tr>
            </table>
          </td>
          <td>
            <table class="tabela_opcoes">
              <tr>
                <td>
                  <select id="tipo" multiple="multiple" style="overflow:hidden;">
                    <option value="1" selected>Basic Lich Shroud</option>
                    <option value="2">Intricate Lich Shroud (premium)</option>
                    <option value="3">Powerful Lich Shroud (premium)</option>
                  </select>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr id="fonte-2">
          <td>Reduces death damage by 3%.
            <br /> Lasts for 20h 0min while equipped.
            <br />
            <br /> Requires the following astral sources:
          </td>
          <td valign="bottom" style="text-align:right;">
            Sucess rate: <span id="chance">90%</span><span class="no" id="chancecharm" style="color:green;">100%</span>
            <br />
          </td>
        </tr>
      </table>
  </tr>
  <tr>
    <td>
      <table style="width:100%;">
        <tr>
          <td style="width:50%;">
            <table style="width:100%;">
              <tr>
                <td>
                  <span class="item"><img src="http://www.tibiawiki.com.br/images/c/c2/Flask_of_Embalming_Fluid.gif" /></span>
                </td>
                <td>
                  <span class="item"><img src="http://www.tibiawiki.com.br/images/c/c2/Flask_of_Embalming_Fluid.gif" /></span>
                </td>
                <td>
                  <span class="item"><img src="http://www.tibiawiki.com.br/images/c/c2/Flask_of_Embalming_Fluid.gif" /></span>
                </td>
              </tr>
            </table>
          </td>
          <td>
            <table id="fonte-2" style="width:100%;text-align:center;">
              <tr>
                <td>
                  <button id="charm" type="button">Protection Charm</button>
                </td>
                <td>
                  Total cost:
                </td>
              </tr>
              <tr>
                <td class="titulo" style="width:50%;">
                  <span id="preco">10,000</span> gps
                </td>
                <td class="titulo">
                  <span id="total">5,000</span><span class="no" id="totalcharm">15,000</span> gps
                </td>
              </tr>
            </table>
        </tr>
      </table>
      </td>
  </tr>
</table>
.outfiter_main_table {
  border: #7B6E4C 1px solid;
  background: #181E23;
  color: #C9BDAB;
  margin: 5px;
  -webkit-box-shadow: 0px 0px 10px 2px rgba(255, 255, 255, 1);
  -moz-box-shadow: 0px 0px 10px 2px rgba(255, 255, 255, 1);
  box-shadow: 0px 0px 10px 2px rgba(255, 255, 255, 1);
}

.titulo {
  position: relative;
  margin: 1px 2px 0 2px;
  border: #7B6E4C 1px solid;
  background: #11161A;
  padding: 0 auto;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-weight: bold;
  font-size: 12px;
  cursor: default;
}

.janela {
  background: url('/wiki/Especial:Filepath/Arquivo:Outfiter Janela Fundo.png');
  background-repeat: no-repeat;
  position: relative;
  vertical-align: top;
}

table.tabela_opcoes select {
  background: #11161A;
  width: 272px;
  height: 90px;
  margin-top: -2px;
  padding: 1px 1px 1px 1px;
  border: #CBB47A 1px solid;
  border-collapse: separate;
  font-family: Verdana, Arial, Times New Roman, sans-serif;
  font-size: 13px;
  color: #B2A898;
}

table.tabela_opcoes td {
  width: 10px;
  height: 10px;
}

.tabela_opcoes option:hover {
  -webkit-box-shadow: inset 0 0 0 1px rgba(200, 188, 170, 1), inset 0 0 0 2px rgba(34, 34, 34, 0.65);
  -moz-box-shadow: inset 0 0 0 1px rgba(200, 188, 170, 1), inset 0 0 0 2px rgba(34, 34, 34, 0.65);
  box-shadow: inset 0 0 0 1px rgba(200, 188, 170, 1), inset 0 0 0 2px rgba(34, 34, 34, 0.65);
}

#escudos,
#armaduras {
  display: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: #7B6E4C 1px solid;
  margin: 1em 0;
  padding: 0;
}

#fonte-2 {
  font-family: Verdana, Arial, Times New Roman, sans-serif;
  font-size: 13px;
  color: #B2A898;
}

.item img {
  position: relative;
  margin: 1px 2px 0 2px;
  border: #7B6E4C 1px solid;
  background: #11161A;
  padding: 0 auto;
  height: 32px;
  width: 32px;
  text-align: center;
  cursor: default;
}

.no {
  display: none;
}
$(document).ready(function() {
  $("#tipo").change(function() {
    var tipo = $("#tipo").children("option").filter(":selected").val();
    if (tipo == 1) {
      $('#chance').text('90%').css({
        "color": "#B2A898"
      });
      $('#preco').text('10,000');
      $('#total').text('5,000');
      $('#totalcharm').text('15,000');
    } else if (tipo == 2) {
      $('#chance').text('70%').css({
        "color": "#B2A898"
      });
      $('#preco').text('30,000');
      $('#total').text('25,000');
      $('#totalcharm').text('55,000');
    } else if (tipo == 3) {
      $('#chance').text('50%').css({
        "color": "red"
      });
      $('#preco').text('50,000');
      $('#total').text('100,000');
      $('#totalcharm').text('150,000');
    }
  });
  $("#charm").click(function() {
    $('#chance, #chancecharm, #total, #totalcharm').toggleClass("no");
  });
});