View Single Post
Old 28.10.2005, 17:24   #2
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

nice guide, i'll explain how to decode dat files with kcinick php since l2clientdat doesn't decode all the dat files.

kcinick decoder can be found in any l2tools version.

First- Decrypt using l2encdec -s any dat file we want and move it to input folder.
ex:
l2encdec -s armorgrp.dat
then move dec-armorgrp.dat to our_folder\input\

right click on decode.bat, click on edit, that will open our notepad, and we have to select what file are we going to decode, in this case it will be armorgrp.dat, so we edit that like and will be like this one

..\php dumparmorgrp.php

the rest should be like

rem ..\php dumpcastlename.php

with the rem at the beggining so it will skip it.
save the bat and run it. it will create a decoded armorgrp.php in output folder.

this is how data is saved
Code:
  $rs[0] = array("nose01" => "1", "id" => "21", "drop_type" => "0", "drop_anim_type" => "3", "drop_radius" => "7", "drop_height" => "0", "nose02" => "0", "drop_mesh" => "dropitems.drop_mfighter_m001_t02_u_m00", "drop_texture" => "MFighter.MFighter_m001_t02_u", "icon" => array("1" => "", "2" => "", "0" => "icon.armor_t02_u_i00"), "nose03" => "0", "nose04" => "0", "durability" => "90", "weight" => "4830", "material_type" => "cloth", "crystallizable" => "0", "nose06" => "44889960", "body_part" => "chest", "mfighter_mesh" => array("0" => "LineageWarriors.MFighter_m001_u"), "mfighter_texture" => array("0" => "MFighter.MFighter_m001_t02_u"), "ffighter_mesh" => array("0" => "LineageWarriors.FFighter_m001_u"), "ffighter_texture" => array("0" => "FFighter.FFighter_m001_t02_u"), "mdarkelf_mesh" => array("0" => "LineageWarriors.MDarkElf_m001_u"), "mdarkelf_texture" => array("0" => "MDarkElf.MDarkElf_m001_t02_u"), "fdarkelf_mesh" => array("0" => "LineageWarriors.FDarkElf_m001_u"), "fdarkelf_texture" => array("0" => "FDarkElf.FDarkElf_m001_t02_u"), "mdwarf_mesh" => array("0" => "LineageWarriors.MDwarf_m001_u"), "mdwarf_texture" => array("0" => "MDwarf.MDwarf_m001_t02_u"), "fdwarf_mesh" => array("0" => "LineageWarriors.FDwarf_m001_u"), "fdwarf_texture" => array("0" => "FDwarf.FDwarf_m001_t02_u"), "melf_mesh" => array("0" => "LineageWarriors.MElf_m001_u"), "melf_texture" => array("0" => "MElf.MElf_m001_t02_u"), "felf_mesh" => array("0" => "LineageWarriors.FElf_m001_u"), "felf_texture" => array("0" => "FElf.FElf_m001_t02_u"), "mmagic_mesh" => array("0" => "LineageWarriors.MMagic_m005_u"), "mmagic_texture" => array("0" => "MMagic.MMagic_m005_t02_u"), "fmagic_mesh" => array("0" => "LineageWarriors.FMagic_m003_u"), "fmagic_texture" => array("0" => "FMagic.FMagic_m003_t02_u"), "morc_mesh" => array("0" => "LineageWarriors.MOrc_m001_u"), "morc_texture" => array("0" => "MOrc.MOrc_m001_t02_u"), "forc_mesh" => array("0" => "LineageWarriors.FOrc_m001_u"), "forc_texture" => array("0" => "FOrc.FOrc_m001_t02_u"), "mshaman_mesh" => array("0" => "LineageWarriors.MShaman_m001_u"), "mshaman_texture" => array("0" => "MShaman.MShaman_m001_t02_u"), "fshaman_mesh" => array("0" => "LineageWarriors.FShaman_m001_u"), "fshaman_texture" => array("0" => "FShaman.FShaman_m001_t02_u"), "nose08" => "0", "nose09" => "0", "npc_mesh" => array("0" => ""), "npc_texture" => array("0" => ""), "attack_effect" => "LineageEffect.p_u002_a", "item_sound" => array("0" => "MonSound.Hit_normal_3", "1" => "MonSound.Hit_normal_12", "2" => "MonSound.Hit_wood_1", "3" => "MonSound.Hit_Shell_1"), "drop_sound" => "ItemSound.itemdrop_armor_cloth", "equip_sound" => "ItemSound.itemequip_armor_cloth", "armor_type" => "light", "crystal_type" => "none", "nose10" => "0", "physical_defense" => "36", "magical_defense" => "0", "mp_bonus" => "0");
    $rs[1] = array("nose01" => "1", "id" => "22", "drop_type" => "0", "drop_anim_type" => "3", "drop_radius" => "7", "drop_height" => "0", "nose02" => "0", "drop_mesh" => "dropitems.drop_mfighter_m001_t04_u_m00", "drop_texture" => "MFighter.MFighter_m001_t04_u", "icon" => array("1" => "", "2" => "", "0" => "icon.armor_t04_u_i00"), "nose03" => "0", "nose04" => "0", "durability" => "90", "weight" => "4830", "material_type" => "leather", "crystallizable" => "0", "nose06" => "40956784", "body_part" => "chest", "mfighter_mesh" => array("0" => "LineageWarriors.MFighter_m001_u"), "mfighter_texture" => array("0" => "MFighter.MFighter_m001_t04_u"), "ffighter_mesh" => array("0" => "LineageWarriors.FFighter_m001_u"), "ffighter_texture" => array("0" => "FFighter.FFighter_m001_t04_u"), "mdarkelf_mesh" => array("0" => "LineageWarriors.MDarkElf_m001_u"), "mdarkelf_texture" => array("0" => "MDarkElf.MDarkElf_m001_t04_u"), "fdarkelf_mesh" => array("0" => "LineageWarriors.FDarkElf_m001_u"), "fdarkelf_texture" => array("0" => "FDarkElf.FDarkElf_m001_t04_u"), "mdwarf_mesh" => array("0" => "LineageWarriors.MDwarf_m001_u"), "mdwarf_texture" => array("0" => "MDwarf.MDwarf_m001_t04_u"), "fdwarf_mesh" => array("0" => "LineageWarriors.FDwarf_m001_u"), "fdwarf_texture" => array("0" => "FDwarf.FDwarf_m001_t04_u"), "melf_mesh" => array("0" => "LineageWarriors.MElf_m001_u"), "melf_texture" => array("0" => "MElf.MElf_m001_t04_u"), "felf_mesh" => array("0" => "LineageWarriors.FElf_m001_u"), "felf_texture" => array("0" => "FElf.FElf_m001_t04_u"), "mmagic_mesh" => array("0" => "LineageWarriors.MMagic_m005_u"), "mmagic_texture" => array("0" => "MMagic.MMagic_m005_t04_u"), "fmagic_mesh" => array("0" => "LineageWarriors.FMagic_m003_u"), "fmagic_texture" => array("0" => "FMagic.FMagic_m003_t04_u"), "morc_mesh" => array("0" => "LineageWarriors.MOrc_m001_u"), "morc_texture" => array("0" => "MOrc.MOrc_m001_t04_u"), "forc_mesh" => array("0" => "LineageWarriors.FOrc_m001_u"), "forc_texture" => array("0" => "FOrc.FOrc_m001_t04_u"), "mshaman_mesh" => array("0" => "LineageWarriors.MShaman_m001_u"), "mshaman_texture" => array("0" => "MShaman.MShaman_m001_t04_u"), "fshaman_mesh" => array("0" => "LineageWarriors.FShaman_m001_u"), "fshaman_texture" => array("0" => "FShaman.FShaman_m001_t04_u"), "nose08" => "0", "nose09" => "0", "npc_mesh" => array("0" => ""), "npc_texture" => array("0" => ""), "attack_effect" => "LineageEffect.p_u002_a", "item_sound" => array("0" => "MonSound.Hit_normal_3", "1" => "ItemSound.armor_leather_3", "2" => "ItemSound.armor_leather_4", "3" => "MonSound.Hit_Shell_1"), "drop_sound" => "ItemSound.itemdrop_armor_leather", "equip_sound" => "ItemSound.itemequip_armor_leather", "armor_type" => "light", "crystal_type" => "none", "nose10" => "0", "physical_defense" => "43", "magical_defense" => "0", "mp_bonus" => "0");
after editing it, save it and edit encode.bat as we did with encode.bat

..\php makearmorgrp.php

and the rem for the rest.

run it, and a encoded dat file will be created in modded folder. then encrypt it with l2encdec -h 412 o 413 deppending on ur l2 version.
Sauron is offline