EP11 Item.enc Template

Results 1 to 5 of 5
  1. #1
    TheOne jaguar666 is offline
    MemberRank
    Aug 2012 Join Date
    Comfort RoomLocation
    407Posts

    idea EP11 Item.enc Template

    Since I haven't seen a release of a new working EP11 Item.enc template, so here it is;

    Spoiler:

    //-------------------------------------##
    // Game: CABAL Online
    // File Format: Item.enc
    // Description: Template for CABAL's Item.enc file
    //--------------------------------------##
    // Author: Yamachi
    // Team: The Divinity Project
    // Website: http://board.thedivinityproject.com
    //--------------------------------------##

    #include "Common_Cabal.bt"

    //-Local-Variables----------------------

    local string estType = "Item.ENC";

    //-Enumerations-------------------------

    typedef enum <uint32> {
    _1x1 = 0,
    _1x2,
    _1x3,
    _1x4,
    _2x1,
    _2x2,
    _2x3,
    _2x4,
    _3x1,
    _3x2,
    _3x3,
    _3x4,
    _4x1,
    _4x2,
    _4x3,
    _4x4,
    } Slots; // Width x Height

    typedef enum <uint32> {
    Z_MARTIAL = 0,
    M_BATTLE,
    A_ARMOUR,
    } Display;

    typedef enum <uint32> {
    ROW = 0
    } Table_Row;

    typedef enum <uint32> {
    NORMAL = 0,
    NO_DROP,
    NO_TRADE,
    BIND_ACT,
    NO_SELL,
    NO_DROPSELL,
    NO_SELLTRADE,
    BIND_ACT_NO_SELL,
    NO_STOR,
    NO_DROPSTOR,
    NO_STORTRADE,
    BIND_CHAR,
    NO_SELLSTOR,
    NO_DROPSELLSTOR,
    NO_SELLSTORTRADE,
    BIND_CHAR_NO_SELL
    } Property;

    typedef enum <uint32> {
    WA = 1,
    BL,
    WI,
    FA,
    FS,
    FB
    } Class;

    typedef enum <ubyte> {
    WA2 = 1,
    BL2,
    WI2,
    FA2,
    FS2,
    FB2
    } ClassB;

    typedef enum <uint32> {
    IDT_UCOR = 0,
    IDT_OCOR,
    IDT_QDID,
    IDT_QDIT,
    IDT_WSCL,
    IDT_MWPN,
    IDT_1HND,
    IDT_2HND,
    IDT_SUIT,
    IDT_GLOV,
    IDT_BOOT,
    IDT_HMET,
    IDT_ALZS = 13,
    IDT_PTON,
    IDT_RING,
    IDT_NLCE,
    IDT_CLOK,
    IDT_QSTS,
    IDT_QSTN,
    IDT_QDMI,
    IDT_VEHI = 22,
    IDT_PANT = 24,
    IDT_SPOS = 27,
    IDT_FMUC,
    IDT_EXTR,
    IDT_CTOL,
    IDT_CLVU,
    IDT_ERNG,
    IDT_BSLI,
    IDT_LOTT,
    IDT_COEN,
    IDT_FXTS,
    IDT_FXTN,
    IDT_BLBD,
    IDT_WCCL,
    IDT_RSRT = 42,
    IDT_CURE,
    IDT_CHNG,
    IDT_RNCD,
    IDT_RSPN,
    IDT_GLDE = 50,
    IDT_PETN,
    IDT_FXFS,
    IDT_AVAN = 54,
    IDT_BALN,
    IDT_GEND,
    IDT_RPNS,
    IDT_FTSM,
    IDT_LKWP,
    } Type;

    typedef enum <uint32> {
    Upgrade_Core = 0,
    Force_Core,
    DT,
    Dungeon_Count,
    Return_Stone,
    Force_Controller,
    Two_Handed_Sword,
    One_Handed_Sword,
    Suit,
    Glove,
    Boot,
    Headgear,
    Headgear2,
    Alz,
    Potion,
    Ring,
    Amulet,
    Epaulet,
    QSTS,
    QSTN,
    Dungeon_Mission,
    Auto_Trap,
    Astral_Bike_Card,
    Skill_Curcuit,
    Plasma_Coating_Kit,
    Event_Item,
    SerialS,
    Special_Potion,
    Formula_Card,
    Slot_Extender,
    CA_Transmuter,
    Craft_License,
    Earring,
    Bracelet,
    Chaos_Lamp,
    Core_Enhancer,
    FX_ItemS,
    FX_ItemN,
    Blessing_Bead,
    Return_Core,
    Summon_Card,
    Special_Warp_Card,
    Ressurrection_Potion,
    Cure_Potion,
    Change_Kit,
    Rename_Card,
    Remote_Shop_Pannel,
    Treasure_Hunting_Kit,
    Summoning_Ritual_Kit,
    Epaulet2,
    Guild_Emblem,
    Summoning_Pet,
    FX_Item_S,
    FX_Item_N,
    Avatar_Item,
    Dialog_Bubble_Item,
    Change_Gender_Item,
    Remote_Shop_Pannel2,
    Recall_Force_Tower,
    Link_Weapon,
    Recovery_Kit,
    Pet_Rename_Card,
    Pet_Seal_Item,
    Pet_Buff_Remover,
    Gamble_Ticket,
    Pet_Change_Kit,
    Remote_Consignment_Agency,
    EventS,
    EventN,
    Lottery,
    FontS,
    Ability_Rune,
    Event_Formula_Card,
    Pet_Sleeping_Kit,
    Anima_Lune,
    Ability_Rune2,
    Warp_Stone,
    Skill_Book,
    Belt
    } TypeN;

    //-Structures---------------------------

    typedef struct {
    Table_Row row_id;
    char visual_id[60];
    char item_id[60];
    char desc_id[60];
    ubyte unkba0[20];
    Type type <read=CommentType>;
    Display display_code_pt1;
    int display_code_pt2;
    Vector3 translation_male;
    Vector3 translation_female;
    Vector3 rotation_male;
    Vector3 rotation_female;
    float scale_male;
    float scale_female;
    uint limit_level;
    Class limit_class;
    int limit_reputation;
    ubyte unkba2[31];
    uint d_str_2;
    uint d_dex_2;
    uint d_int_2;
    uint price_sell;
    Slots slot_spaces;
    uint value_lv;
    uint attack_rate__opt_1;
    uint defen_rate__opt_1_val__phy_att_max;
    uint defense__lev_lmt__mag_att_val;
    uint max_core;
    uint str_lmt_1__opt2;
    uint dex_lmt_1__opt_2_val;
    uint int_lmt_1__opt_3;
    uint str_lmt_2__opt_3_val;
    uint dex_lmt_2__opt_4;
    uint int_lmt_2__opt_4_val;
    uint d_str_1;
    uint d_dex_1;
    uint d_int_1;
    Property property;
    ubyte NoneEp8_1[20];
    ubyte enchant_code_lnk;
    ubyte unkb;
    ubyte grade;
    ubyte unkb;
    ClassB class_id_1;
    ClassB class_id_2;
    ubyte period_type;
    ubyte period_use;
    ubyte NoneEp8_2[5];
    ubyte unkba3[5];
    ubyte NoneEp8_3[3];

    } Item;

    //-Main---------------------------------

    FSeek(0);

    Item items[FileSize() / 436] <optimize=false>;

    //-English------------------------------

    string CommentType(Type &t) {
    string s;
    TypeN tn = t;
    SPrintf( s, "%s - %s (%i)", EnumToString(tn), EnumToString(t), t);
    return s;
    }


    credits: yamachi and px2000


  2. #2
    Member li198306 is offline
    MemberRank
    Aug 2009 Join Date
    72Posts

    idea Re: EP11 Item.enc Template

    Display an error
    qqtu-pian-20140724004631.jpg

    qqtu-pian-20140724004607.jpg

  3. #3
    Proficient Member Ken Ken Bueno is offline
    MemberRank
    Sep 2013 Join Date
    169Posts

    Re: EP11 Item.enc Template

    Quote Originally Posted by li198306 View Post
    Display an error
    qqtu-pian-20140724004631.jpg

    qqtu-pian-20140724004607.jpg
    it works only with Item.enc 11 korea..

  4. #4
    Member li198306 is offline
    MemberRank
    Aug 2009 Join Date
    72Posts

    sad Re: EP11 Item.enc Template

    Yes, but it's still wrong

    qqtu-pian-20140724175135.jpg

  5. #5
    Proficient Member Ken Ken Bueno is offline
    MemberRank
    Sep 2013 Join Date
    169Posts

    Re: EP11 Item.enc Template

    Quote Originally Posted by li198306 View Post
    Yes, but it's still wrong

    qqtu-pian-20140724175135.jpg
    that is cabal online europe, isn't it?

    Cabal online europe i think is only EP 10 , im not sure, i had the latest enc files from cabal online europe i tried to open it (item enc) with Item template ep11 but it doesn't work.

    I tested it works with item ep 11.korea, 100% or you should try to use other editor, im using 010 editor ;)

    - - - Updated - - -




Advertisement