Edited Items Finder V1.1 - Buscar objetos editados en el server

Topic created · 8 Mensajes · 2033 Visitas
  • Hola, hace ya mucho tiempo que no posteo en UJ, pero hoy he decidido compartir con vosotros un script echo en php para que podais encontrar todos los objetos editados ya sea por la mysql o por programas externos.

    Es muy facil e intuitivo de usar, si hay objetos editados, apareceran en una lista como un enlace. Al abrir ese enlace, apareceran todos los datos del personaje, como el nombre, la id, que arma esta editada, su id y los bonus que tiene.

    No me ha parecido conveniente darle ningun tipo de diseño, asi que no espereis gran cosa, lo bueno esta en el interior.

    Solo una cosa mas, espero que hos guste, y comentad!

    Imagenes:
    Asi se veria la lista de los objetos editados:

    Asi se veria el objeto con todos sus datos y los datos del jugador y su cuenta.

    Nombre del archivo: editeditemsfinder.php
    [php]//******************************************************\\
    //******************************************************\\
    //******* EditedItemsFinder - V1.1 *********\\
    //******* Created By Jumarras ********\\
    //******************************************************\\
    //******************************************************\\

    // Está obra está sujeta a la licencia Reconocimiento-NoComercial-CompartirIgual 3.0 Unported de Creative Commons.
    // Para ver una copia de esta licencia, visite:
    // http://creativecommons.org/licenses/by-nc-sa/3.0/.

    // PONER LOS DATOS DE TU MYSQL
    $hostname = ''; // MySQL Host
    $username = ''; // MySQL Username
    $password = ''; // MySQL Password
    $connect = mysql_connect($hostname, $username, $password) or die ('No se ha podido conectar con la base de datos.
    Comprueba que tus datos estan escritos correctamente.');

    // EDITAR SOLO EL TERCER CAMPO. EJEMPLO:
    // $_1 = array(1 ,'MAX HP' , 4000); //HP MAX
    // $_1 = array(1 ,'MAX HP' , ***EDITAR SOLO ESTO CON LOS VALORES DE TU SERVIDOR**); //HP MAX

    $_1 = array(1 ,'MAX HP' , 4000); //HP MAX
    $_2 = array(2, 'MAX SP', 2000); //SP MAX
    $_3 = array(3, 'CON', 12); //LIVE
    $_4 = array(4, 'INT', 12); //INT
    $_5 = array(5, 'STR', 12); //STR
    $_6 = array(6, 'DEX', 12); //DEX
    $_7 = array(7, 'ATACK SPEED', 15); //STACK SPEED
    $_8 = array(8, 'MOVEMENT SPEED', 15); //MOVEMENT SPEED
    $_9 = array(9, 'CAST_SPEED', 20); //SPEED OF FATE
    $_10 = array(10, 'HP REGENERATION', 30); //HP REGENERATION
    $_11 = array(11, 'SP REGENERATION', 30); //SP REGENERATION
    $_12 = array(12, 'POISONING', 10); //LUCK POISON
    $_13 = array(13, 'STUN', 15); //LUCK STUN
    $_14 = array(14, 'SLOW', 15); //LUCK SLOW DOWN
    $_15 = array(15, 'CRITICAL ATACK', 15); //LUCK CRITICAL ATACK
    $_16 = array(16, 'PENETRATION ATACK', 15); //LUCK PERCANT BLOW
    $_17 = array(17, 'ATTBONUS HUMAN', 15); //AGAINST HALF-HUMAN
    $_18 = array(18, 'ATTBONUS ANIMAL', 20); //AGAINST ANIMAL
    $_19 = array(19, 'ATTBONUS ORC', 20); //AGAINST ORCS
    $_20 = array(20, 'ATTBONUS MYSTIC', 20); //AGAINST MYSTIC
    $_21 = array(21, 'ATTBONUS UNDEAD', 20); //AGAINST DIED-ALIVED
    $_22 = array(22, 'ATTBONUS DEVIL', 20); //AGAINST DEVIL
    $_23 = array(23, 'STEAL HP', 'none'); //STEAL HP
    $_24 = array(24, 'STEAL SP', 'none'); //STEAL SP
    $_25 = array(25, '', 'none'); //LUCK TAKE SP TO ENEMIES
    $_26 = array(26, '', 'none'); //LUCK GET BACK SP
    $_27 = array(27, '', 'none'); //LUCK BLOCK ATACK
    $_28 = array(28, '', 'none'); //LUCK AVOID ARROWS
    $_29 = array(29, 'RESISTENCE SWORD', 15); //DEFENSE SWORD
    $_30 = array(30, 'RESISTENCE TWO HANDS', 15); //DEFENSE TWO HANDS
    $_31 = array(31, 'RESISTENCE DAGGER', 15); //DEFENSE DAGGER
    $_32 = array(32, 'RESISTENCE BELL', 15); //DEFENSE BELL
    $_33 = array(33, 'RESISTENCE FAN', 15); //DEFENSE FAN
    $_34 = array(34, 'RESISTENCE ARROWS', 15); //RESISTENCE ARROWS
    $_35 = array(35, 'RESISTENCE FIRE', 15); //RESISTENCE FIRE
    $_36 = array(36, 'RESISTENCE LIGHT', 15); //RESISTENCE LIGHT
    $_37 = array(37, 'RESISTENCE MAGIC', 15); //RESISTENCE MAGIC
    $_38 = array(38, 'RESISTENCE WIND', 15); //RESISTENCE WIND
    $_39 = array(39, '', 'none'); //
    $_40 = array(40, '', 'none'); //
    $_41 = array(41, 'RESISTENCE POISON', 15); //RESISTENCE POSIN
    $_42 = array(42, '', 'none'); //LUCK RESTORE SP
    $_43 = array(43, 'BONUS DOUBLE EXP', 20); //LUCK OBTAIN EXP
    $_44 = array(44, 'BONUS DOUBLE YANG', 20); //LUCK DOUBLE YANG
    $_45 = array(45, 'BONUS DOUBLE ITEM', 20); //LUCK DOUBLE OBJECT
    $_46 = array(46,'',''); //
    $_47 = array(47,'', 'none'); //LUCK RESTORE HP
    $_48 = array(48,'',''); //IMMUNE TOXIC
    $_49 = array(49,'',''); //IMMUNE SLOWING DOWN
    $_50 = array(50,'', ''); //IMMUNE FALLS
    $_51 = array(51, '', 'none'); //
    $_52 = array(52, '', 'none'); //
    $_53 = array(53, '', 'none'); //ATACK
    $_54 = array(54, '', 'none'); //
    $_55 = array(55, '', 'none'); //MAGIC ATACK
    $_56 = array(56, '', 'none'); //MAGICK DEFENSE
    $_57 = array(57, '', 'none'); //DONT EXIST¿?
    $_58 = array(58, '', 'none'); //
    $_59 = array(59, '', 'none'); //BONUS WARRIOR
    $_60 = array(60, '', 'none'); //BONUS NINJA
    $_61 = array(61, '', 'none'); //BONUS SURA
    $_62 = array(62, '', 'none'); //BONUS SHAMAN
    $_63 = array(63, '', 'none'); //BONUS MONSTERS
    $_64 = array(64, '', 'none'); //
    $_65 = array(65, '', 'none'); //
    $_66 = array(66, '', 'none'); //
    $_67 = array(67, '', 'none'); //
    $_68 = array(68, '', 'none'); //
    $_69 = array(69, '', 'none'); //
    $_70 = array(70, '', 'none'); //
    $_71 = array(71, '', 'none'); //
    $_72 = array(72, '', 'none'); //
    $_73 = array(73, '', 'none'); //
    $_74 = array(74, '', 'none'); //
    $_75 = array(75, '', 'none'); //
    $_76 = array(76, '', 'none'); //
    $_77 = array(77, '', 'none'); //
    $_78 = array(78, '', 'none'); //
    $_79 = array(79, '', 'none'); //
    $_80 = array(80, '', 'none'); //
    $_81 = array(81, '', 'none'); //
    $bonuses = array($_1, $_2, $_3, $_4, $_5, $_6, $_7, $_8, $_9, $_10, $_11, $_12, $_13, $_14, $_15, $_16, $_17, $_18, $_19, $_20, $_21, $_22, $_23, $_24, $_25, $_26, $_27, $_28, $_29, $_30, $_31, $_32, $_33, $_34, $_35, $_36, $_37, $_38, $_39, $_40, $_41, $_42, $_43, $_44, $_45, $_46, $_47, $_48, $_49, $_50, $_51, $_52, $_53, $_54, $_55, $_56, $_57, $_58, $_59, $_60, $_61, $_62, $_63, $_64, $_65, $_66, $_67, $_68, $_69, $_70, $_71, $_72, $_73, $_74, $_75, $_76, $_77, $_78, $_79, $_80, $_81);
    if(!empty($_GET['item'])){
    $item_id = mysql_real_escape_string($_GET['item']);
    $query = mysql_query('SELECT id, owner_id, vnum, attrtype0, attrtype1, attrtype2, attrtype3, attrtype4, attrvalue0, attrvalue1, attrvalue2, attrvalue3, attrvalue4 FROM player.item WHERE id = "'.$item_id .'" LIMIT 1');
    while($row = mysql_fetch_assoc($query)){
    $find_user = mysql_query('SELECT account_id, name FROM player.player WHERE id = "'.$row['owner_id'].'"');
    $user = mysql_fetch_assoc($find_user);
    $find_item = mysql_query('SELECT locale_name FROM player.item_proto WHERE vnum = "'.$row['vnum'].'"');
    $item = mysql_fetch_assoc($find_item);
    echo '

    OWNER:
    '.$user['name'].' ('.$user['account_id'].') - (Player Name and Acount ID)

    ITEM:
    '.$item['locale_name'].'('.$row['id'].') - (Item Name and Item ID)

    BONUS 1:
    '.$bonuses[$row['attrtype0'] - 1][1].'('.$row['attrtype0'].')'.' -> '.$row['attrvalue0'].'

    BONUS 2:
    '.$bonuses[$row['attrtype1'] -1][1].'('.$row['attrtype1'].')'.' -> '.$row['attrvalue1'].'

    BONUS 3:
    '.$bonuses[$row['attrtype2'] -1][1].'('.$row['attrtype2'].')'.' -> '.$row['attrvalue2'].'

    BONUS 4:
    '.$bonuses[$row['attrtype3'] -1][1].'('.$row['attrtype3'].')'.' -> '.$row['attrvalue3'].'

    BONUS 5:
    '.$bonuses[$row['attrtype4'] - 1][1].'('.$row['attrtype4'].')'.' -> '.$row['attrvalue4'].'

    ';
    }
    }
    else{
    $bonuses_count = count($bonuses);
    $i = '';
    for ($i = 1; $i

  • Muy bueno, a ver si Salva amplia el cuadrito del codigo.

  • He remodelado un poco el archivo, y ahora es mas sencillo, a parte de editar unos errores pequeños, ya funciona perfectamente.

    esta probado al 100%, y ademas, hos pongo unas imagenes.

  • De que forma , Algun usuario editaria un item?

    Me urge saber :wtf:

  • te sorprenderia si pasas este archivo por tu server de lo que son capaces los usuarios... Esto esta funcionando en el metin2elements, y la verdad, he encontrado a muchos usuarios con unos bonus elevadisimos.

  • @'stivenelmero' said:

    De que forma , Algun usuario editaria un item?

    Me urge saber :wtf:

    Un usuario no los edita, sino que algun miembro del staff que tenga esos "poderes" lo hace xd

  • Useless.

  • No es por nada, pero con esto tambien podeis ver si algun gm o tm o lo que sea, esta regalando objetos editados, y no quereis que eso ocurra.