Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: AYUDA CON MODULO DE BORRAR SKILL INCOMPATIBLE CON MUEMU  (Visto 1089 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline lesagu Posteado: November 14, 2016, 01:14:55 AM | Modificado: November 22, 2016, 12:24:44 AM by ZabiinoOo

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 7
  • pe
Hola Alguien me puede apoyar a que este modulo sea compatible con los files muemu season 6.

La columna MagicList esta en la tabla Character (dbo.Character)

Gracias!

Code: [Select]
<?
$config = simplexml_load_file('engine/config_mods/clear_skills_settings.xml');
$active = trim($config->active);
if($active == '0'){
echo msg('0',text_sorry_feature_disabled);
}else{
if(isset($_GET['sid'])){
echo '<div style="margin-top: 10px;">';
$id = safe_input($_GET['sid'],'');
if(empty($id) || !is_numeric($id)){
header('Location: '.$core_run_script.'');
exit();
}else{
if(character_and_account($id,$user_auth_id) === false){
header('Location: '.$core_run_script.'');
exit();
}else {
if(account_online($user_auth_id) === true){
echo msg('0',text_clearskills_t1);
}else{
$clear = $core_db->Execute("Update Character set [SCFMasterLevel]='1',[MagicList]=CONVERT(varbinary(180), null) where mu_id=?",array($id));
if($clear){
echo msg('1',text_clearskills_t2);
}else{
echo msg('0',text_clearskills_t3);
}
}
}
}
}
echo '<div style="margin-top: 20px;">
<fieldset><legend>'.text_clearskills_t4.'</legend>
<table border="0" cellspacing="4" cellpadding="0" width="100%" style="padding-left: 10px;">
<tr>
<td align="left">'.text_clearskills_t5.'
</td>
</tr>
</table>
</fieldset>
</div>';
$characters = $core_db->Execute("Select mu_id,Name,Class from Character where AccountID=? order by cLevel desc ",array($user_auth_id));

echo '<table border="0" cellspacing="4" cellpadding="0" width="100%" style="margin-top: 10px; margin-bottom: 10px;">';
while (!$characters->EOF){
echo '  <tr>
    <td width="66" rowspan="2"><img src="template/'.$core['config']['template'].'/images/class/'.decode_class($characters->fields[2],'2').'" width="66" height="66" title="Class"></td>
     <td align="left" class="iR_name" width="100">'.htmlentities($characters->fields[1]).'</td>
    <td rowspan="2" class="iR_func_status" align="left"><input type="button" value="'.button_clear_skills.'" onclick="ask_url(\''.text_clearskills_t6.'\',\''.$core_run_script.'&sid='.$characters->fields[0].'\');"></td>
  </tr>
  <tr>
    <td algin="left" class="iR_class">'.decode_class($characters->fields[2]).'</td>
  </tr>
      <tr>
    <td colspan="3" class="iRg_line_top">&nbsp;</td>
  </tr>
  ';

$characters->MoveNext();
}
echo '</table>';


}
?>

Gracias:


Offline ZabiinoOo #1 Posteado: November 14, 2016, 02:05:32 AM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 7.270
  • Gracias recibida: 125163
  • pe



Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Offline lesagu #2 Posteado: November 14, 2016, 12:10:21 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 7
  • pe
@ZabiinoOo yo no quiero borrar el arbol quiero que se borre  todos los poderes de un personaje...


Offline ediiinson #3 Posteado: November 16, 2016, 12:06:51 PM | Modificado: November 22, 2016, 12:24:30 AM by ZabiinoOo

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 70
  • Gracias recibida: 6160
  • ve
este codigo es para borrar solo los skill pegalo en tu modulo php prueba y listoo e.e

Code: [Select]
<?
$config = simplexml_load_file('engine/config_mods/clear_skill_tree_settings.xml');
$active = trim($config->active);
if($active == '0'){
echo msg('0',text_sorry_feature_disabled);
}else{
if(isset($_GET['sid'])){
echo '<div style="margin-top: 10px;">';
$id = safe_input($_GET['sid'],'');
if(empty($id) || !is_numeric($id)){
header('Location: '.$core_run_script.'');
exit();
}else{
if(character_and_account($id,$user_auth_id) === false){
header('Location: '.$core_run_script.'');
exit();
}else {
if(account_online($user_auth_id) === true){
echo msg('0',Fatal_Error2);
}else{
$clear = $core_db->Execute("Update MasterSkillTree Set [MasterSkill]=CONVERT(varbinary(180), null) where Name=?",($user_auth_id));

$char_name_sql = mssql_query('SELECT Name from Character where mu_id = \''.$id.'\'');
$char_name = mssql_fetch_assoc($char_name_sql);
$clear2 = mssql_query('Update MasterSkillTree set [MasterSkill]=0, [MasterExperience]=0 where Name = \''.$char_name['Name'].'\'');

if($clear and $clear2){
echo msg('1',Master_Skill_borrados_con_Exito);
}else{
echo msg('0',Fatal_Error1);
}
}
}
}
}
echo '<div style="margin-top: 20px;">
<fieldset><legend>'.informacion_Borrar_Master_Skill.'</legend>
<table width="100%" border="0" cellpadding="0" cellspacing="4"  style="padding-left: 10px; padding-right: 10px;" class="iR_stats">
<tr>
<td align="left">'.Luego_de_utilizar_la_funcion_de_Borrar_Master_Skills,_los_Masre_Skills_del_Personaje_seran_borrados.'
</td>
</tr>
</table>
</fieldset>
</div>';
$characters = $core_db->Execute("Select mu_id,Name,Class from Character where AccountID=? order by cLevel desc ",array($user_auth_id));

echo '<table border="0" cellspacing="4" cellpadding="0" width="100%" style="margin-top: 10px; margin-bottom: 10px;">';
while (!$characters->EOF){
echo '  <tr>
    <td width="66" rowspan="2"><img src="template/'.$core['config']['template'].'/images/class/'.decode_class($characters->fields[2],'2').'" width="66" height="66" title="Class"></td>
     <td align="left" class="iR_name" width="100">'.htmlentities($characters->fields[1]).'</td>
    <td rowspan="2" class="iR_func_status" align="left"><input type="button" value="'.Borrar_Master_Skill.'" onclick="ask_url(\''.Seguro_que_quieres_borrar_los_Master_Skill.'\',\''.$core_run_script.'&sid='.$characters->fields[0].'\');"></td>
  </tr>
  <tr>
    <td algin="left" class="iR_class">'.decode_class($characters->fields[2]).'</td>
  </tr>
      <tr>
    <td colspan="3" class="iRg_line_top">&nbsp;</td>
  </tr>
  ';

$characters->MoveNext();
}
echo '</table>';


}
?>

El Que Frao

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1374 Views
Last post January 22, 2017, 12:59:28 AM
by ZabiinoOo
0 Replies
699 Views
Last post June 13, 2017, 04:29:37 PM
by humito
2 Replies
2114 Views
Last post March 27, 2018, 01:45:19 AM
by Azzlaer
0 Replies
880 Views
Last post July 16, 2018, 12:17:41 AM
by tosento
4 Replies
1412 Views
Last post August 28, 2018, 04:41:49 PM
by Dariox84