Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Reset Master Skill Three Modificado  (Visto 2044 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline zzbrandon Posteado: February 10, 2018, 04:41:48 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 208
  • Gracias recibida: 556
  • cl
Les vengo aportar el codigo reset master skill lo que hace es resetear al level 400 Entregar 10 puntos y mantiene los puntos en los skill que ya han ingresado.

Codigo:

Code: [Select]
<!--Modulo Por M4NU31-->
<?php
$Level='400';             //<- Aca modifican Level necesario para hacer el reset
?>
<style type="text/css">
<!--
.Estilo1 {color: #00FF33}
.Estilo2 {color: #FF9900}
-->
</style>


<fieldset>
<legend><strong>Resetear Master Skill Tree</strong></legend>
<p align="center"><img src="http://i.imgur.com/qsCh6cS.png" width="549" height="160" /></p>
<center>
  <p><strong>Se pondra tu arbol de habilidades todo en 0, tu <span class="Estilo2">MasterLevel 1</span> y con <span class="Estilo2">10 puntos</span> para distribuirlos</strong><br>
    <strong>1.</strong> Tu personaje debe ser <span class="Estilo2">MasterLevel 1</span><br>
    <strong>2.</strong> Tu personaje debe estar <span class="Estilo2">desconectado</span> </p>
  <p><strong><span class="Estilo1">Personaje</span>:</strong>
    <?
      $pj_list=mssql_query("SELECT Name FROM Character WHERE AccountID='$user_auth_id'");
echo '<form action="" method="post"><select name="pj">';
while($result=mssql_fetch_assoc($pj_list)){
    echo '<option value="'.$result['Name'].'">'.$result['Name'].'</option>';
}
echo '<input type="submit" name="Resetear" value="Resetear" /></select></form>';

      ?></p>
  <p>Module Adapted <span class="Estilo2">By  M4NU31</span><br />
  Modulo Actualizado  por <span class="Estilo2">Azzlaer</span> para Files <span class="Estilo2">MU Emu</span><br />
    www.tuservermu.com.ve
</p>
</center></fieldset>
<fieldset>
<legend><strong>Publicidad</strong></legend>
<p><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- nemesis -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6810315420985813"
     data-ad-slot="2767614986"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
</fieldset>


<?php


$res=mssql_connect($core['db_host'],$core['db_user'],$core['db_password']);
mssql_select_db($core['db_name'],$res);



if(!empty($_POST['pj'])){
    $nombre=safe_input($_POST['pj'],'');
}

$sql_vip_check = $core_db -> Execute("SELECT ConnectStat from MEMB_STAT");
$vip_check = $sql_vip_check->numrows();
$ConnectStat = $sql_vip_check->fetchrow();
if($ConnectStat[1] == '1'){


echo die("<script>alert('Tienes que estar desconectado del juego para acceder a este modulo!!');
      location='javascript:history.back()'</script>");
}else{

$query=mssql_query("SELECT MasterLevel from MasterSkillTree WHERE Name='$nombre'");
while($row=mssql_fetch_assoc($query)){
$levelz=$row['MasterLevel'];

  if($levelz < $Level){
   echo die("<script>alert('Tu personaje debe ser MasterLevel $Level, tu personaje es nivel $levelz');
location='javascript:history.back()'</script>");
 
}else{


$reset=mssql_query("Update MasterSkillTree set  [MasterLevel]='1', [MasterPoint]=(MasterPoint + 10), [MasterExperience]=NULL  where Name='$nombre'");
$reset=mssql_query("Update Character set  [MasterResetCount]=(MasterResetCount + 1));



echo die("<script>alert('Has utilizado el Master Level reset, tu personaje $nombre, ah sido reseteado con exito');
   </script>");

}
}
 }
?>

- [MasterPoint]=(MasterPoint + 10) <-En ese 10 Modifican la cantidad de puntos que quieren dar por cada reset de arbol , el resto no toquen mas nada

Gracias:


Offline dio #1 Posteado: February 11, 2018, 10:27:05 AM

  • 0 puntos por ventas
  • *
  • Rank: Sup. destacado
  • Posts: 100
  • Gracias recibida: 2486
  • py
Les vengo aportar el codigo reset master skill lo que hace es resetear al level 400 Entregar 10 puntos y mantiene los puntos en los skill que ya han ingresado.

Codigo:

Code: [Select]
<!--Modulo Por M4NU31-->
<?php
$Level='400';             //<- Aca modifican Level necesario para hacer el reset
?>
<style type="text/css">
<!--
.Estilo1 {color: #00FF33}
.Estilo2 {color: #FF9900}
-->
</style>


<fieldset>
<legend><strong>Resetear Master Skill Tree</strong></legend>
<p align="center"><img src="http://i.imgur.com/qsCh6cS.png" width="549" height="160" /></p>
<center>
  <p><strong>Se pondra tu arbol de habilidades todo en 0, tu <span class="Estilo2">MasterLevel 1</span> y con <span class="Estilo2">10 puntos</span> para distribuirlos</strong><br>
    <strong>1.</strong> Tu personaje debe ser <span class="Estilo2">MasterLevel 1</span><br>
    <strong>2.</strong> Tu personaje debe estar <span class="Estilo2">desconectado</span> </p>
  <p><strong><span class="Estilo1">Personaje</span>:</strong>
    <?
      $pj_list=mssql_query("SELECT Name FROM Character WHERE AccountID='$user_auth_id'");
echo '<form action="" method="post"><select name="pj">';
while($result=mssql_fetch_assoc($pj_list)){
    echo '<option value="'.$result['Name'].'">'.$result['Name'].'</option>';
}
echo '<input type="submit" name="Resetear" value="Resetear" /></select></form>';

      ?></p>
  <p>Module Adapted <span class="Estilo2">By  M4NU31</span><br />
  Modulo Actualizado  por <span class="Estilo2">Azzlaer</span> para Files <span class="Estilo2">MU Emu</span><br />
    www.tuservermu.com.ve
</p>
</center></fieldset>
<fieldset>
<legend><strong>Publicidad</strong></legend>
<p><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- nemesis -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6810315420985813"
     data-ad-slot="2767614986"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></p>
</fieldset>


<?php


$res=mssql_connect($core['db_host'],$core['db_user'],$core['db_password']);
mssql_select_db($core['db_name'],$res);



if(!empty($_POST['pj'])){
    $nombre=safe_input($_POST['pj'],'');
}

$sql_vip_check = $core_db -> Execute("SELECT ConnectStat from MEMB_STAT");
$vip_check = $sql_vip_check->numrows();
$ConnectStat = $sql_vip_check->fetchrow();
if($ConnectStat[1] == '1'){


echo die("<script>alert('Tienes que estar desconectado del juego para acceder a este modulo!!');
      location='javascript:history.back()'</script>");
}else{

$query=mssql_query("SELECT MasterLevel from MasterSkillTree WHERE Name='$nombre'");
while($row=mssql_fetch_assoc($query)){
$levelz=$row['MasterLevel'];

  if($levelz < $Level){
   echo die("<script>alert('Tu personaje debe ser MasterLevel $Level, tu personaje es nivel $levelz');
location='javascript:history.back()'</script>");
 
}else{


$reset=mssql_query("Update MasterSkillTree set  [MasterLevel]='1', [MasterPoint]=(MasterPoint + 10), [MasterExperience]=NULL  where Name='$nombre'");
$reset=mssql_query("Update Character set  [MasterResetCount]=(MasterResetCount + 1));



echo die("<script>alert('Has utilizado el Master Level reset, tu personaje $nombre, ah sido reseteado con exito');
   </script>");

}
}
 }
?>

- [MasterPoint]=(MasterPoint + 10) <-En ese 10 Modifican la cantidad de puntos que quieren dar por cada reset de arbol , el resto no toquen mas nada
No funciona man :(

Gracias:


Offline zzbrandon #2 Posteado: February 11, 2018, 11:13:43 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 208
  • Gracias recibida: 556
  • cl
yo lo probe y a mi si me funciona amigo


Offline deivifalle #3 Posteado: January 19, 2019, 12:07:07 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 56
  • Gracias recibida: 35
  • pe
yo lo probe y a mi si me funciona amigo
Hola amigo, monte tu modulo y pasa que al darle resetear master skill, no pasa nada
no se si tu me puedes ayudar a ponerlo bien, quizás en algo este fallando, por favor espero su ayuda!


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
911 Views
Last post June 26, 2017, 10:12:57 PM
by humito
13 Replies
2617 Views
Last post July 08, 2017, 11:25:15 PM
by pujosx
0 Replies
836 Views
Last post July 13, 2017, 01:52:35 PM
by pujosx
3 Replies
871 Views
Last post October 06, 2021, 09:12:42 PM
by javiertyu
0 Replies
518 Views
Last post December 26, 2019, 09:28:13 AM
by ghostx