#include "game/proto.h"

#include <stdio.h>

#include "game/criticals.h"
#include "game/critter.h"
#include "game/damage_type.h"
#include "game/descriptions.h"
#include "game/level.h"
#include "game/light.h"
#include "game/magictech.h"
#include "game/material.h"
#include "game/obj_private.h"
#include "game/object.h"
#include "game/oname.h"
#include "game/resistance.h"
#include "game/script.h"
#include "game/spell.h"
#include "game/stat.h"
#include "game/tech.h"

typedef enum ProtoField {
    PROTO_F_DESCRIPTION,
    PROTO_F_INTERNAL_NAME,
    PROTO_F_LEVEL,
    PROTO_F_ART_NUMBER_AND_PALETTE,
    PROTO_F_SCALE,
    PROTO_F_ALIGNMENT,
    PROTO_F_CRITTER_FLAG,
    PROTO_F_CRITTER2_FLAG,
    PROTO_F_NPC_FLAG,
    PROTO_F_BLIT_FLAG,
    PROTO_F_SPELL_FLAG,
    PROTO_F_HIT_CHART,
    PROTO_F_BASIC_STAT,
    PROTO_F_SPELL,
    PROTO_F_FACTION,
    PROTO_F_AI_PACKET,
    PROTO_F_MATERIAL,
    PROTO_F_HIT_POINTS,
    PROTO_F_SCRIPT,
    PROTO_F_DAMAGE_RESISTANCE,
    PROTO_F_FIRE_RESISTANCE,
    PROTO_F_ELECTRICAL_RESISTANCE,
    PROTO_F_POISON_RESISTANCE,
    PROTO_F_MAGIC_RESISTANCE,
    PROTO_F_NORMAL_DAMAGE,
    PROTO_F_POISON_DAMAGE,
    PROTO_F_ELECTRICAL_DAMAGE,
    PROTO_F_FIRE_DAMAGE,
    PROTO_F_FATIGUE_DAMAGE,
    PROTO_F_SOUND_BANK,
    PROTO_F_INVENTORY_SOURCE,
    PROTO_F_PORTRAIT,
    PROTO_F_RETAIL_PRICE_MULTIPLIER,
    PROTO_F_SOCIAL_CLASS,
    PROTO_F_OBJECT_FLAG,
    PROTO_F_AUTO_LEVEL_SCHEME,
    PROTO_F_CATEGORY,
    PROTO_F_COUNT,
} ProtoField;

static ObjectType sub_4685D0(int description);
static int sub_468600(ObjectType object_type);
static void sub_468660(bool* rescan_ptr);
static int sub_468720(ObjectType object_type);
static void sub_468800();
static bool proto_save(int64_t obj);
static ObjectID sub_468860(int a1);
static void sub_468890(int description);
static void sub_468930(int64_t obj, int description);
static void sub_49AFF0(int64_t obj, int description);
static void sub_49B010(int64_t obj, int description);
static void sub_49B220(int64_t obj, int description);
static void sub_49B240(int64_t obj, int f, int percent);
static void sub_49B2E0(int64_t obj);
static void sub_49B340(int64_t obj, int description);
static int sub_49B5A0(TigFile* stream, int64_t obj, int type);
static void sub_49BB40(int64_t obj, int a2);
static bool sub_49BB70(const char* str, int* fld_ptr, int* a3, int* a4, int* a5);
static int sub_49BF10(const char* str, const char** identifiers, int size);
static void sub_49C060(int64_t obj, TigFile* stream, int type);
static void sub_49C610(TigFile* stream, const char* name, int value, const char** identifiers, int size);
static void proto_id_list_create(int** proto_ids_ptr, int* cnt_ptr);
static int proto_id_list_sort(const void* va, const void* vb);
static bool proto_id_list_check(int* proto_ids, int cnt, int id);
static void proto_id_list_destroy(int* proto_ids);

// 0x5B37FC
static int dword_5B37FC[OBJ_TYPE_COUNT] = {
    /*          OBJ_TYPE_WALL */ 1000,
    /*        OBJ_TYPE_PORTAL */ 2008,
    /*     OBJ_TYPE_CONTAINER */ 3023,
    /*       OBJ_TYPE_SCENERY */ 4006,
    /*    OBJ_TYPE_PROJECTILE */ 5028,
    /*        OBJ_TYPE_WEAPON */ 6029,
    /*          OBJ_TYPE_AMMO */ 7038,
    /*         OBJ_TYPE_ARMOR */ 8042,
    /*          OBJ_TYPE_GOLD */ 9056,
    /*          OBJ_TYPE_FOOD */ 10057,
    /*        OBJ_TYPE_SCROLL */ 11059,
    /*           OBJ_TYPE_KEY */ 12060,
    /*      OBJ_TYPE_KEY_RING */ 13061,
    /*       OBJ_TYPE_WRITTEN */ 14062,
    /*       OBJ_TYPE_GENERIC */ 15065,
    /*            OBJ_TYPE_PC */ 16066,
    /*           OBJ_TYPE_NPC */ 17067,
    /*          OBJ_TYPE_TRAP */ 26000,
    /*       OBJ_TYPE_MONSTER */ 27309,
    /*    OBJ_TYPE_UNIQUE_NPC */ 28310,
};

// 0x5B384C
static int dword_5B384C[OBJ_TYPE_COUNT] = {
    /*          OBJ_TYPE_WALL */ 1008,
    /*        OBJ_TYPE_PORTAL */ 2023,
    /*     OBJ_TYPE_CONTAINER */ 3061,
    /*       OBJ_TYPE_SCENERY */ 4051,
    /*    OBJ_TYPE_PROJECTILE */ 5029,
    /*        OBJ_TYPE_WEAPON */ 6179,
    /*          OBJ_TYPE_AMMO */ 7042,
    /*         OBJ_TYPE_ARMOR */ 8293,
    /*          OBJ_TYPE_GOLD */ 9057,
    /*          OBJ_TYPE_FOOD */ 10145,
    /*        OBJ_TYPE_SCROLL */ 11143,
    /*           OBJ_TYPE_KEY */ 12063,
    /*      OBJ_TYPE_KEY_RING */ 13062,
    /*       OBJ_TYPE_WRITTEN */ 14130,
    /*       OBJ_TYPE_GENERIC */ 15213,
    /*            OBJ_TYPE_PC */ 16079,
    /*           OBJ_TYPE_NPC */ 17317,
    /*          OBJ_TYPE_TRAP */ 26008,
    /*       OBJ_TYPE_MONSTER */ 27394,
    /*    OBJ_TYPE_UNIQUE_NPC */ 28472,
};

// 0x5B389C
static int race_to_body_type_tbl[RACE_COUNT] = {
    /*     RACE_HUMAN */ TIG_ART_CRITTER_BODY_TYPE_HUMAN,
    /*     RACE_DWARF */ TIG_ART_CRITTER_BODY_TYPE_DWARF,
    /*       RACE_ELF */ TIG_ART_CRITTER_BODY_TYPE_ELF,
    /*  RACE_HALF_ELF */ TIG_ART_CRITTER_BODY_TYPE_ELF,
    /*     RACE_GNOME */ TIG_ART_CRITTER_BODY_TYPE_HALFLING,
    /*  RACE_HALFLING */ TIG_ART_CRITTER_BODY_TYPE_HALFLING,
    /*  RACE_HALF_ORC */ TIG_ART_CRITTER_BODY_TYPE_HUMAN,
    /* RACE_HALF_OGRE */ TIG_ART_CRITTER_BODY_TYPE_HALF_OGRE,
    /*  RACE_DARK_ELF */ TIG_ART_CRITTER_BODY_TYPE_ELF,
    /*      RACE_OGRE */ TIG_ART_CRITTER_BODY_TYPE_HALF_OGRE,
    /*       RACE_ORC */ TIG_ART_CRITTER_BODY_TYPE_HUMAN,
};

// 0x5B38C8
static const char* off_5B38C8[] = {
    /*             PROTO_F_DESCRIPTION */ "Description",
    /*           PROTO_F_INTERNAL_NAME */ "Internal Name",
    /*                   PROTO_F_LEVEL */ "Level",
    /*  PROTO_F_ART_NUMBER_AND_PALETTE */ "Art Number and Palette",
    /*                   PROTO_F_SCALE */ "Scale",
    /*               PROTO_F_ALIGNMENT */ "Alignment",
    /*            PROTO_F_CRITTER_FLAG */ "Critter Flag",
    /*           PROTO_F_CRITTER2_FLAG */ "Critter2 Flag",
    /*                PROTO_F_NPC_FLAG */ "NPC Flag",
    /*               PROTO_F_BLIT_FLAG */ "Blit Flag",
    /*              PROTO_F_SPELL_FLAG */ "Spell Flag",
    /*               PROTO_F_HIT_CHART */ "Hit Chart",
    /*              PROTO_F_BASIC_STAT */ "Basic Stat",
    /*                   PROTO_F_SPELL */ "Spell",
    /*                 PROTO_F_FACTION */ "Faction",
    /*               PROTO_F_AI_PACKET */ "AI Packet",
    /*                PROTO_F_MATERIAL */ "Material",
    /*              PROTO_F_HIT_POINTS */ "Hit Points",
    /*                  PROTO_F_SCRIPT */ "Script",
    /*       PROTO_F_DAMAGE_RESISTANCE */ "Damage Resistance",
    /*         PROTO_F_FIRE_RESISTANCE */ "Fire Resistance",
    /*   PROTO_F_ELECTRICAL_RESISTANCE */ "Electrical Resistance",
    /*       PROTO_F_POISON_RESISTANCE */ "Poison Resistance",
    /*        PROTO_F_MAGIC_RESISTANCE */ "Magic Resistance",
    /*           PROTO_F_NORMAL_DAMAGE */ "Normal Damage",
    /*           PROTO_F_POISON_DAMAGE */ "Poison Damage",
    /*       PROTO_F_ELECTRICAL_DAMAGE */ "Electrical Damage",
    /*             PROTO_F_FIRE_DAMAGE */ "Fire Damage",
    /*          PROTO_F_FATIGUE_DAMAGE */ "Fatigue Damage",
    /*              PROTO_F_SOUND_BANK */ "Sound Bank",
    /*        PROTO_F_INVENTORY_SOURCE */ "Inventory Source",
    /*                PROTO_F_PORTRAIT */ "Portrait",
    /* PROTO_F_RETAIL_PRICE_MULTIPLIER */ "Retail Price Multiplier",
    /*            PROTO_F_SOCIAL_CLASS */ "Social Class",
    /*             PROTO_F_OBJECT_FLAG */ "Object Flag",
    /*       PROTO_F_AUTO_LEVEL_SCHEME */ "Auto Level Scheme",
    /*                PROTO_F_CATEGORY */ "Category",
};

// 0x5B395C
static const char* off_5B395C[] = {
    "TAB_FLIP_X",
    "TAB_FLIP_Y",
    "TAB_PALETTE_ORIGINAL",
    "TAB_PALETTE_OVERRIDE",
    "TAB_BLEND_ADD",
    "TAB_BLEND_SUB",
    "TAB_BLEND_MUL",
    "TAB_BLEND_ALPHA_AVG",
    "TAB_BLEND_ALPHA_CONST",
    "TAB_BLEND_ALPHA_SRC",
    "TAB_BLEND_ALPHA_LERP_X",
    "TAB_BLEND_ALPHA_LERP_Y",
    "TAB_BLEND_ALPHA_LERP_BOTH",
    "TAB_BLEND_COLOR_CONST",
    "TAB_BLEND_COLOR_ARRAY",
    "TAB_BLEND_ALPHA_STIPPLE_S",
    "TAB_BLEND_ALPHA_STIPPLE_D",
    "TAB_BLEND_COLOR_LERP",
    "TAB_SCRATCH_VALID",
    "TAB_PALETTE_MASK",
    "TAB_BLEND_ALPHA_MASK",
    "TAB_BLEND_COLOR_MASK",
};

// 0x5E8828
static bool in_proto_save;

// 0x5E882C
static ObjectID* dword_5E882C;

// 0x5E8830
static bool initialized;

// 0x4681B0
bool proto_init(GameInitInfo* init_info)
{
    unsigned int index;
    bool rescan;
    TigFileList file_list;
    char path[TIG_MAX_PATH];
    TigFile* stream;
    int64_t obj;

    if (initialized) {
        return true;
    }

    dword_5E882C = (ObjectID*)CALLOC(OBJ_TYPE_COUNT, sizeof(ObjectID));

    tig_file_mkdir("proto");

    for (index = 0; index < OBJ_TYPE_COUNT; index++) {
        dword_5E882C[index] = sub_468860(sub_468600(index));
    }

    rescan = false;
    sub_468660(&rescan);

    if (rescan) {
        obj_exit();
        if (!obj_init(init_info)) {
            FREE(dword_5E882C);
            return false;
        }
    }

    tig_file_list_create(&file_list, "proto\\*.pro");
    for (index = 0; index < file_list.count; index++) {
        sprintf(path, "proto\\%s", file_list.entries[index].path);
        stream = tig_file_fopen(path, "rb");
        if (stream != NULL) {
            obj_read(stream, &obj);
            tig_file_fclose(stream);
        }
    }
    tig_file_list_destroy(&file_list);

    initialized = true;

    return true;
}

// 0x468310
void proto_exit()
{
    sub_468800();
    FREE(dword_5E882C);
    initialized = false;
}

// 0x468330
bool proto_save(int64_t obj)
{
    ObjectID oid;
    char* name = NULL;
    char path[TIG_MAX_PATH];
    TigFile* stream;

    oid = obj_get_id(obj);
    obj_field_string_get(obj, OBJ_F_NAME, &name);

    if (oid.type != 1) {
        return false;
    }

    sprintf(path, "proto\\%06d - %s.pro", oid.d.a, name);
    FREE(name);

    stream = tig_file_fopen(path, "wb");
    if (stream == NULL) {
        tig_debug_printf("Error - unable to open file %s in proto_save()\n", path);
        return false;
    }

    if (!obj_write(stream, obj)) {
        tig_debug_printf("Error - obj_write() returned 0 in proto_save() while trying to save %s\n", path);
        tig_file_fclose(stream);
        return false;
    }

    tig_file_fclose(stream);
    return true;
}

// 0x468570
int64_t sub_468570(ObjectType object_type)
{
    return objp_perm_lookup(dword_5E882C[object_type]);
}

// 0x4685A0
int64_t sub_4685A0(int a1)
{
    return objp_perm_lookup(sub_468860(a1));
}

// 0x4685D0
ObjectType sub_4685D0(int description)
{
    ObjectType object_type;

    for (object_type = OBJ_TYPE_WALL; object_type < OBJ_TYPE_MONSTER; object_type++) {
        if (description < dword_5B37FC[object_type + 1]) {
            break;
        }
    }

    if (object_type == OBJ_TYPE_MONSTER) {
        object_type = OBJ_TYPE_NPC;
    }

    return object_type;
}

// 0x468600
int sub_468600(ObjectType object_type)
{
    return dword_5B37FC[object_type];
}

// 0x468610
bool proto_is_valid(int description)
{
    ObjectType object_type;

    object_type = sub_4685D0(description);
    if (object_type == OBJ_TYPE_NPC) {
        if (description >= 28310) {
            object_type = OBJ_TYPE_UNIQUE_NPC;
        } else if (description >= 27309) {
            object_type = OBJ_TYPE_MONSTER;
        }
    }

    return description >= dword_5B37FC[object_type] && description < dword_5B384C[object_type];
}

// 0x468660
void sub_468660(bool* rescan_ptr)
{
    int type;
    int oname;
    ObjectID oid;
    int* proto_ids;
    int proto_ids_cnt;

    tig_debug_printf("Reading prototypes...\n");

    // FIX: Refactor scanning protos.
    //
    // There is a bug in the original code between this function and
    // `proto_save`. The latter attempts to build proto path by using a
    // different approach - instead of querying the name from the `o_name`
    // module (which simply returns the category name, i.e., "Wall", "Weapon",
    // etc.), it queries the object's name via the `OBJ_F_NAME` field. This
    // leads to some discrepancies because the prototype properties
    // initialization routine overrides `OBJ_F_NAME` on some objects. For
    // example, this function checks for the existence of `010144 - Food.pro`,
    // but `proto_save` writes it as `010144 - 3619 Dragon Pool Blood.pro`. On
    // startup, this leads to recreation of some protos, and reinitialization
    // of obj system.
    //
    // Instead of scanning entire folder for every prototype, we scan it once,
    // parse proto ids and store them in the sorted array. This way we're
    // covering both cases from `proto_save`.

    proto_id_list_create(&proto_ids, &proto_ids_cnt);

    for (type = 0; type < 20; type++) {
        for (oname = dword_5B37FC[type]; oname < dword_5B384C[type]; oname++) {
            oid = sub_468860(oname);
            if (!proto_id_list_check(proto_ids, proto_ids_cnt, oid.d.a)) {
                sub_468890(oname);
                *rescan_ptr = true;
            }
        }
    }

    proto_id_list_destroy(proto_ids);

    tig_debug_printf("Reading prototypes completed.\n");
}

// 0x468720
int sub_468720(ObjectType object_type)
{
    switch (object_type) {
    case OBJ_TYPE_WALL:
        return 400;
    case OBJ_TYPE_PORTAL:
        return 800;
    case OBJ_TYPE_CONTAINER:
        return 1200;
    case OBJ_TYPE_SCENERY:
        return 1600;
    case OBJ_TYPE_PROJECTILE:
        return 1980;
    case OBJ_TYPE_WEAPON:
        return 2000;
    case OBJ_TYPE_AMMO:
        return 2400;
    case OBJ_TYPE_ARMOR:
        return 2800;
    case OBJ_TYPE_GOLD:
        return 3200;
    case OBJ_TYPE_FOOD:
        return 3600;
    case OBJ_TYPE_SCROLL:
        return 4000;
    case OBJ_TYPE_KEY:
        return 4400;
    case OBJ_TYPE_KEY_RING:
        return 4800;
    case OBJ_TYPE_WRITTEN:
        return 5200;
    case OBJ_TYPE_GENERIC:
        return 5600;
    case OBJ_TYPE_PC:
        return 6000;
    case OBJ_TYPE_NPC:
        return 6400;
    case OBJ_TYPE_TRAP:
        return 10001;
    case OBJ_TYPE_MONSTER:
        return 6401;
    case OBJ_TYPE_UNIQUE_NPC:
        return 6402;
    }
    return 0;
}

// 0x468800
void sub_468800()
{
    ObjectType object_type;
    int description;

    for (object_type = 0; object_type < OBJ_TYPE_COUNT; object_type++) {
        for (description = dword_5B37FC[object_type]; description < dword_5B384C[object_type]; description++) {
            obj_deallocate(objp_perm_lookup(sub_468860(description)));
        }
    }
}

// 0x468860
ObjectID sub_468860(int a1)
{
    return sub_4E6540(a1 + 20);
}

// 0x468890
void sub_468890(int description)
{
    ObjectType object_type;
    int64_t obj;

    object_type = sub_4685D0(description);
    obj_create_proto(object_type, &obj);
    obj_field_int32_set(obj, OBJ_F_NAME, sub_468720(object_type));
    sub_408020(obj, description + 20);
    sub_468930(obj, description);
    in_proto_save = true;
    proto_save(obj);
    in_proto_save = false;
    obj_deallocate(obj);
}

// 0x468930
void sub_468930(int64_t obj, int description)
{
    Script scr;
    tig_art_id_t art_id;
    unsigned int rgb;
    const char* str;

    obj_field_int32_set(obj, OBJ_F_DESCRIPTION, description);
    scr.num = 0;
    scr.hdr.flags = 0;
    scr.hdr.counters = 0;

    switch (sub_4685D0(description)) {
    case OBJ_TYPE_WALL:
        switch (description) {
        case BP_RED_BRICK_WALL:
            sub_49B240(obj, OBJ_F_HP_PTS, -30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_BRICK);
            break;
        case BP_GREY_BRICK_WALL:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_BRICK);
            break;
        case BP_SOLID_ROCK_WALL:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            break;
        case BP_LIGHT_WOOD_WALL:
            sub_49B240(obj, OBJ_F_HP_PTS, -50);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            break;
        case BP_HEAVY_WOOD_WALL:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            break;
        case BP_WOOD_FENCE:
            sub_49B240(obj, OBJ_F_HP_PTS, -60);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x30);
            break;
        case BP_METAL_FENCE:
            sub_49B240(obj, OBJ_F_HP_PTS, -30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x30);
            break;
        case BP_FACADE_WALL:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_WALL_FLAGS, obj_field_int32_get(obj, OBJ_F_WALL_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x800);
            break;
        }
        break;
    case OBJ_TYPE_PORTAL:
        obj_field_int32_set(obj, OBJ_F_PORTAL_FLAGS, 9);
        switch (description) {
        case BP_LIGHT_WOOD_DOOR:
            sub_49B240(obj, OBJ_F_HP_PTS, -30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8060);
            break;
        case BP_HEAVY_WOOD_DOOR:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8065);
            break;
        case BP_METAL_GATE:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x30);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8055);
            break;
        case BP_METAL_DOOR:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8075);
            break;
        case BP_GLASS_DOOR:
            sub_49B240(obj, OBJ_F_HP_PTS, -70);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x10);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8060);
            break;
        case BP_STONE_DOOR:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8070);
            break;
        case BP_ROCK_CAVE_IN:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_PORTAL_FLAGS, 2);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8070);
            break;
        case BP_WINDOW:
            sub_49B240(obj, OBJ_F_HP_PTS, -70);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x10);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8100);
            break;
        case BP_NON_OPENING_WINDOW:
            sub_49B240(obj, OBJ_F_HP_PTS, -70);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x10);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_PORTAL_FLAGS, 2);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8100);
            break;
        case BP_CURTAINS:
            sub_49B240(obj, OBJ_F_HP_PTS, -90);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x420);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8100);
            break;
        case BP_BARRED_WINDOWS:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x30);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_PORTAL_FLAGS, 2);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8100);
            break;
        case BP_WOODEN_SHUTTERS:
            sub_49B240(obj, OBJ_F_HP_PTS, -30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8110);
            break;
        case BP_METAL_SHUTTERS:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8105);
            break;
        case BP_STAINED_GLASS:
            sub_49B240(obj, OBJ_F_HP_PTS, -50);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_PORTAL_FLAGS, 2);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8100);
            break;
        case BP_BOARDED_UP_WINDOW:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_PORTAL_FLAGS, 2);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8110);
            break;
        }
        break;
    case OBJ_TYPE_CONTAINER:
        obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, 9);
        switch (description) {
        case BP_JUNK_PILE:
            tig_art_container_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400400);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8025);
            break;
        case BP_WOOD_CHEST_1:
            tig_art_container_id_create(0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xAu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_BARREL:
            tig_art_container_id_create(0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8015);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_BLACK_CHEST_1:
            tig_art_container_id_create(1, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xBu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            break;
        case BP_CHEST_1:
            tig_art_container_id_create(2, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(3, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            break;
        case BP_CHEST_2:
            tig_art_container_id_create(4, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(5, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            break;
        case BP_FANCY_CHEST_1:
            tig_art_container_id_create(6, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(7, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            break;
        case BP_FANCY_CHEST_2:
            tig_art_container_id_create(8, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(9, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            break;
        case BP_WOOD_CHEST_2:
            tig_art_container_id_create(0xCu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            break;
        case BP_BLACK_CHEST_2:
            tig_art_container_id_create(0xEu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xFu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            break;
        case BP_SAFE_1:
            tig_art_container_id_create(1, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(2, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8020);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_SAFE_2:
            tig_art_container_id_create(3, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(4, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8020);
            break;
        case BP_MAGICK_CHEST_1:
            tig_art_container_id_create(6, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(7, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8005);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 69);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_MYSTIC_CHEST_1:
            tig_art_container_id_create(6, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(7, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8005);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 70);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_ARCANE_CHEST_1:
            tig_art_container_id_create(6, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(7, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8005);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 71);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_MAGICK_CHEST_2:
            tig_art_container_id_create(8, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(9, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8005);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 69);
            break;
        case BP_MYSTIC_CHEST_2:
            tig_art_container_id_create(8, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(9, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8005);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 70);
            break;
        case BP_ARCANE_CHEST_2:
            tig_art_container_id_create(8, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(9, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8005);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 71);
            break;
        case BP_FACTORY_DISCARDS_1:
            tig_art_container_id_create(0x2Cu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xAu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8010);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 56);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            break;
        case BP_PARTS_CRATE_1:
            tig_art_container_id_create(0x2Cu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xAu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8010);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 57);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_SHIPPING_CRATE_1:
            tig_art_container_id_create(0x2Bu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xAu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8010);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 58);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_STORAGE_CRATE_1:
            tig_art_container_id_create(0x2Bu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xAu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8010);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 59);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_PACKAGED_COMPONENTS_1:
            tig_art_container_id_create(0x2Au, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xAu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8030);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 60);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_INDUSTRIAL_SALVAGE_1:
            tig_art_container_id_create(0x29, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xAu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8030);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 64);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_FACTORY_DISCARDS_2:
            tig_art_container_id_create(0x30, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8010);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 56);
            break;
        case BP_PARTS_CRATE_2:
            tig_art_container_id_create(0x30, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8010);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 57);
            break;
        case BP_SHIPPING_CRATE_2:
            tig_art_container_id_create(0x2Fu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8010);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 58);
            break;
        case BP_STORAGE_CRATE_2:
            tig_art_container_id_create(0x2Fu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8010);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 59);
            break;
        case BP_PACKAGED_COMPONENTS_2:
            tig_art_container_id_create(0x2Eu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8030);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 60);
            break;
        case BP_INDUSTRIAL_SALVAGE_2:
            tig_art_container_id_create(0x2Du, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8030);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 64);
            break;
        case BP_DWARVEN_CHEST_1:
            tig_art_container_id_create(0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xAu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 102);
            break;
        case BP_DWARVEN_CHEST_2:
            tig_art_container_id_create(0xCu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8000);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 102);
            break;
        case BP_RUBBISH_BIN:
            tig_art_container_id_create(0x33, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8020);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_INDEPENDENT);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_INVENTORY_SOURCE, 64);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_BODY:
            tig_art_container_id_create(0x32, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8025);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 14);
            break;
        case BP_ALTAR_GOOD:
            tig_art_container_id_create(0x20, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8035);
            break;
        case BP_ALTAR_NEUTRAL:
            tig_art_container_id_create(0x1Du, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8040);
            break;
        case BP_ALTAR_EVIL:
            tig_art_container_id_create(0x1Bu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8045);
            break;
        case BP_PLANT_CONTAINER:
            tig_art_container_id_create(0x34, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_container_id_create(0xDu, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_DESTROYED_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_CONTAINER_FLAGS, obj_field_int32_get(obj, OBJ_F_CONTAINER_FLAGS) | OCOF_INVEN_SPAWN_INDEPENDENT | OCOF_INVEN_SPAWN_ONCE);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8025);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 15);
            break;
        }
        break;
    case OBJ_TYPE_SCENERY:
        switch (description) {
        case BP_BIG_TREE:
            tig_art_scenery_id_create(0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4030);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400800);
            tig_art_light_id_create(0x13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_FLAGS, 18);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_TREE:
            tig_art_scenery_id_create(0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4030);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400800);
            tig_art_light_id_create(0x14, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_FLAGS, 18);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_SMALL_TREE:
            tig_art_scenery_id_create(0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400800);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_DEAD_TREE:
            tig_art_scenery_id_create(0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4030);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400800);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_PLANT_SCENERY:
            tig_art_scenery_id_create(0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400C00);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_SMALL_METAL_OBJECT:
            tig_art_scenery_id_create(0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400400);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_METAL_OBJECT:
            tig_art_scenery_id_create(0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_BIG_METAL_OBJECT:
            tig_art_scenery_id_create(0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4030);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 14);
            break;
        case BP_SMALL_STONE:
            tig_art_scenery_id_create(0, 9, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400400);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_STONE:
            tig_art_scenery_id_create(0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_BIG_STONE:
            tig_art_scenery_id_create(0, 11, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4030);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_SMALL_WOODEN_OBJECT:
            tig_art_scenery_id_create(0, 12, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400400);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            break;
        case BP_WOODEN_OBJECT:
            tig_art_scenery_id_create(0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_BIG_WOODEN_OBJECT:
            tig_art_scenery_id_create(0, 14, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_SOMETHING_SMALL:
            tig_art_scenery_id_create(0, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 17);
            break;
        case BP_SOMETHING_MID_SIZED:
            tig_art_scenery_id_create(0, 16, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 16);
            break;
        case BP_SOMETHING_BIG:
            tig_art_scenery_id_create(0, 17, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~4030);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 18);
            break;
        case BP_BIG_MACHINE:
            tig_art_scenery_id_create(0, 18, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_MAGIC, 80);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4030);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 15);
            break;
        case BP_MACHINE:
            tig_art_scenery_id_create(0, 19, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 250);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_MAGIC, 80);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 15);
            break;
        case BP_BED:
            tig_art_scenery_id_create(0, 22, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x800);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 20);
            break;
        case BP_LIGHT_1:
            tig_art_scenery_id_create(0, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 21);
            break;
        case BP_PASSAGE:
            tig_art_scenery_id_create(0, 20, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30000);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_MAGIC, 100);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4030);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 19);
            break;
        case BP_POOL_OF_BLOOD:
            tig_art_scenery_id_create(0, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400C34);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x201);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            break;
        case BP_STINKING_CLOUD:
        case BP_ICE_STORM:
            tig_art_scenery_id_create(0xBu, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400C30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GAS);
            break;
        case BP_WALL_OF_FORCE:
            tig_art_scenery_id_create(0x66, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400010);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FORCE);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            break;
        case BP_WALL_OF_FIRE:
            tig_art_scenery_id_create(0x65, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400420);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FIRE);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x10);
            break;
        case BP_WALL_OF_STONE:
            tig_art_scenery_id_create(0x64, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            break;
        case BP_FOG_CLOUD:
            tig_art_scenery_id_create(0xBu, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400C20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GAS);
            break;
        case BP_LIGHT_2:
            tig_art_scenery_id_create(0, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(255, 255, 240, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_3:
            tig_art_scenery_id_create(4, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(0xBu, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(244, 254, 255, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_4:
            tig_art_scenery_id_create(4, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(244, 254, 255, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_5:
            tig_art_scenery_id_create(1, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(0xBu, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(255, 255, 240, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_6:
            tig_art_scenery_id_create(6, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(0xEu, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(244, 254, 255, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_7:
            tig_art_scenery_id_create(6, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(0xFu, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(244, 254, 0xFFu, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_8:
            tig_art_scenery_id_create(6, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(0x10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(244, 254, 255, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_9:
            tig_art_scenery_id_create(6, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(0x11, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(244, 254, 0xFFu, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_10:
            tig_art_scenery_id_create(4, 16, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 250);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_MAGIC, 80);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8500);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x10);
            break;
        case BP_LIGHT_11:
            tig_art_scenery_id_create(7, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(0xBu, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(193, 255, 255, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_12:
            tig_art_scenery_id_create(8, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(0xBu, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(193, 255, 255, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIGHT_13:
            tig_art_scenery_id_create(9, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100400);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
            tig_art_light_id_create(0xBu, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
            light_build_color(193, 255, 255, &rgb);
            obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);
            obj_field_int32_set(obj, OBJ_F_SCENERY_FLAGS, obj_field_int32_get(obj, OBJ_F_SCENERY_FLAGS) | 0x4);
            break;
        case BP_LIT_DYNAMITE:
            tig_art_scenery_id_create(0x4Bu, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 250);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8521);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            break;
        case BP_SMOKE:
            tig_art_scenery_id_create(0x1Du, 21, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) & ~0x4000);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100C00);
            obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 64);
            break;
        case BP_TICKING_TIME_BOMB:
            tig_art_scenery_id_create(0x61, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 250);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 8521);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400000);
            break;
        case BP_TORCH_FLAME:
            tig_art_scenery_id_create(0xBu, 15, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x400420);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FIRE);
            break;
        }
        break;
    case OBJ_TYPE_PROJECTILE:
        tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
        break;
    case OBJ_TYPE_WEAPON:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        switch (description) {
        case BP_DAGGER:
            tig_art_item_id_create(4, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_SWORD:
            tig_art_item_id_create(12, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_AXE:
            tig_art_item_id_create(1, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_MACE:
            tig_art_item_id_create(1, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 8);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_REVOLVER:
            tig_art_item_id_create(6, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_BROADSWORD:
            tig_art_item_id_create(0, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_BOW:
            tig_art_item_id_create(0, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_SHOTGUN:
            tig_art_item_id_create(1, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_STAFF:
            tig_art_item_id_create(2, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_ENVENOMED_SWORD:
            tig_art_item_id_create(19, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(19, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(19, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_POISON, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_POISON, 35);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            break;
        case BP_ELEPHANT_GUN:
            tig_art_item_id_create(4, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_TESLA_ROD:
            tig_art_item_id_create(4, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_CHARGE);
            tig_art_scenery_id_create(8, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_ELECTRICAL);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_ELECTRICAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_ELECTRICAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_ELECTRICAL, 40);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 45);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_FLAME_THROWER:
            tig_art_item_id_create(13, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_FUEL);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_FIRE);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_FIRE);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FIRE, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FIRE, 30);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 5070);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_ENCHANTED_SWORD:
            tig_art_item_id_create(14, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_UNUSED:
            tig_art_item_id_create(0, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_EXPLOSIVE);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 16);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            scr.num = 29006;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            scr.num = 29006;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_MISS, &scr);
            break;
        case BP_FINE_REVOLVER:
            tig_art_item_id_create(8, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_field_int32_set(obj, OBJ_F_WEAPON_BONUS_TO_HIT, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -35);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_REPEATER_RIFLE:
            tig_art_item_id_create(10, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_NAME, 5678);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_HUNTING_RIFLE:
            tig_art_item_id_create(11, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -25);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_RAILROAD_SPIKE:
            tig_art_item_id_create(10, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_BALANCED_SWORD:
            tig_art_item_id_create(4, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 18);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_BRONWYCKS_GUN:
            tig_art_item_id_create(3, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_FUEL);
            tig_art_scenery_id_create(0x20, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_FIRE);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_FIRE);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FIRE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_ELECTRICAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_ELECTRICAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 8);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 32);
            break;
        case BP_RUSTY_DAGGER:
            tig_art_item_id_create(5, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 2, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 2, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_FINE_STEEL_DAGGER:
            tig_art_item_id_create(2, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 25);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_THROWING_DAGGER:
            tig_art_item_id_create(8, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 40);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            tig_art_scenery_id_create(0x24, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 536);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MECHANICAL_DAGGER:
            tig_art_item_id_create(16, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(16, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(16, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 40);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 24);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -33);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MAGES_DAGGER:
            tig_art_item_id_create(7, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29688);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_DAGGER_OF_SPEED:
            tig_art_item_id_create(6, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 16);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_SPEED_ADJ, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29688);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_RUSTY_SWORD:
            tig_art_item_id_create(12, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 3, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 3, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_QUALITY_SWORD:
            tig_art_item_id_create(3, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 3, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 3, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_CALADON_ELITE_SWORD:
            tig_art_item_id_create(3, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            goto LABEL_252;
        case BP_RAPIER:
            tig_art_item_id_create(9, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 90);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_SHORT_SWORD:
            tig_art_item_id_create(8, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 65);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_SCIMITAR:
            tig_art_item_id_create(17, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(17, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(17, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 120);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_KATANA:
            tig_art_item_id_create(16, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(16, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(16, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_FALCHION:
            tig_art_item_id_create(15, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
        LABEL_252:
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 120);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_SWORD_OF_DEFENSE:
            tig_art_item_id_create(13, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            scr.num = 28001;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28002;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_STILLWATER_BLADE:
            tig_art_item_id_create(14, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 3, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 3, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 53);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_RUSTY_AXE:
            tig_art_item_id_create(5, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_QUALITY_AXE:
            tig_art_item_id_create(3, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_POWER_AXE:
            tig_art_item_id_create(0, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 18);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 11);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_FEATHER_WEIGHT_AXE:
            tig_art_item_id_create(4, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 11);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_REAPERS_AXE:
            tig_art_item_id_create(6, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29723);
            scr.num = 28003;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            obj_field_int32_set(obj, OBJ_F_NAME, 2027);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_AXE_OF_STRENGTH:
            tig_art_item_id_create(7, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29723);
            scr.num = 28004;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28005;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_RUSTY_MACE:
            tig_art_item_id_create(2, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 40);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_QUALITY_MACE:
            tig_art_item_id_create(8, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_HAMMER:
            tig_art_item_id_create(0, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 8);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 85);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_RUSTY_HAMMER:
            tig_art_item_id_create(5, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 40);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 25);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_QUALITY_HAMMER:
            tig_art_item_id_create(7, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 7);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_MACHINED_HAMMER:
            tig_art_item_id_create(10, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_CRUSHING_HAMMER:
            tig_art_item_id_create(6, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29691);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_INFERNO_HAMMER:
            tig_art_item_id_create(9, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_FIRE);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FIRE, 10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29691);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_OLD_REVOLVER:
            tig_art_item_id_create(9, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 70);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_field_int32_set(obj, OBJ_F_WEAPON_BONUS_TO_HIT, -10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_FLINTLOCK_PISTOL:
            tig_art_item_id_create(11, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 70);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_BONUS_TO_HIT, -5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_OLD_FLINTLOCK_PISTOL:
            tig_art_item_id_create(0, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 60);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_field_int32_set(obj, OBJ_F_WEAPON_BONUS_TO_HIT, -10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_QUALITY_REVOLVER:
            tig_art_item_id_create(8, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_HUSHED_PISTOL:
            tig_art_item_id_create(7, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 5080);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_HIGH_VELOCITY_PISTOL:
            tig_art_item_id_create(0, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_FANCY_PISTOL:
            tig_art_item_id_create(1, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_SCHRECKS_PISTOL:
            tig_art_item_id_create(2, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            break;
        case BP_LONG_RANGE_PISTOL:
            tig_art_item_id_create(5, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_QUALITY_BROADSWORD:
            tig_art_item_id_create(3, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 18);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 280);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_RUSTY_BROADSWORD:
            tig_art_item_id_create(4, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_CLAYMORE:
            tig_art_item_id_create(5, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 18);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_FLAMBERGE:
            tig_art_item_id_create(8, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 130);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_BARBARIANS_HEAVY_BLADE:
            tig_art_item_id_create(6, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 16);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_SWORD_OF_AIR:
            tig_art_item_id_create(1, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_WEIGHT_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_SWORD_OF_SICKNESS:
            tig_art_item_id_create(2, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 11);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_POISON, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_POISON, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_COMPOUND_BOW:
            tig_art_item_id_create(1, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 18);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_SHORT_BOW:
            tig_art_item_id_create(4, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 3);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 60);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_LONG_BOW:
            tig_art_item_id_create(3, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 8);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 25);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 130);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_ELVEN_HUNTERS_BOW:
            tig_art_item_id_create(2, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            scr.num = 28007;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_BOW_OF_TERROR:
            tig_art_item_id_create(5, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 130);
            scr.num = 28006;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29693);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_FOLDING_RIFLE:
            tig_art_item_id_create(5, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            break;
        case BP_REPEATER_RIFLE_VARIANT_1:
            tig_art_item_id_create(3, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_NAME, 5678);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            break;
        case BP_REPEATER_RIFLE_VARIANT_2:
            tig_art_item_id_create(0, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_NAME, 5678);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            break;
        case BP_MECHANIZED_GUN:
            tig_art_item_id_create(8, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_LOOKING_GLASS_RIFLE:
            tig_art_item_id_create(7, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 25);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_WEAPON_BONUS_TO_HIT, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_MARKSMAN_RIFLE:
            tig_art_item_id_create(9, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 110);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -52);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_LEVERED_MACHINE_GUN:
            tig_art_item_id_create(2, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_RIFLE:
            tig_art_item_id_create(6, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_RUSTED_RIFLE:
            tig_art_item_id_create(12, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_WEAPON_BONUS_TO_HIT, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_SHOCKING_STAFF:
            tig_art_item_id_create(3, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 147);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_QUALITY_STAFF:
            tig_art_item_id_create(1, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_STAFF_OF_HEALING:
            tig_art_item_id_create(2, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 62);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29692);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_SHAMANS_STAFF:
            tig_art_item_id_create(2, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 62);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_2, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_3, 54);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29692);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_MAGES_STAFF:
            tig_art_item_id_create(2, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 65);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_2, 42);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29692);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_HUSHED_REVOLVER:
            tig_art_item_id_create(12, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_HAND_CRAFTED_FLINTLOCK:
            tig_art_item_id_create(13, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 70);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_field_int32_set(obj, OBJ_F_WEAPON_BONUS_TO_HIT, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 18);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_LARGE_PIPE:
            tig_art_item_id_create(11, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 40);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_HAND_CANNON:
            tig_art_item_id_create(14, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 35);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_CLARINGTON_RIFLE:
            tig_art_item_id_create(5, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 110);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_NAME, 2026);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_FILAMENT_SWORD:
            tig_art_item_id_create(1, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_EFFECT, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_MISS_CHANCE, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_FINELY_CRAFTED_DAGGER:
            tig_art_item_id_create(14, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 16);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 70);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_CHARMED_DAGGER:
            tig_art_item_id_create(12, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 3);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29688);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MAGICK_DAGGER:
            tig_art_item_id_create(17, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(17, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(17, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29688);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MYSTIC_DAGGER:
            tig_art_item_id_create(3, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 2);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29688);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ARCANE_DAGGER:
            tig_art_item_id_create(11, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 60);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29688);
            obj_field_int32_set(obj, OBJ_F_NAME, 2027);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_CHARGED_SWORD:
            tig_art_item_id_create(2, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_ELECTRICAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_ELECTRICAL, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -45);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_CHARMED_SWORD:
            tig_art_item_id_create(7, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 3, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 3, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_MAGICK_SWORD:
            tig_art_item_id_create(14, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 3, 0, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 3, 0, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 9);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_MYSTIC_SWORD:
            tig_art_item_id_create(7, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 75);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_ARCANE_SWORD:
            tig_art_item_id_create(0, 0, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 3, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 65);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 16);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_ENVENOMED_AXE:
            tig_art_item_id_create(8, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_POISON, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_POISON, 40);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -25);
            break;
        case BP_CHARGED_AXE:
            tig_art_item_id_create(10, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_ELECTRICAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_ELECTRICAL, 30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            break;
        case BP_PYROTECHNIC_AXE:
            tig_art_item_id_create(9, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FIRE, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FIRE, 50);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -75);
            break;
        case BP_CHARMED_AXE:
            tig_art_item_id_create(11, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 140);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29723);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_MAGICK_AXE:
            tig_art_item_id_create(12, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 130);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29723);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_MYSTIC_AXE:
            tig_art_item_id_create(13, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 110);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 13);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 13);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 6);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29723);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_ARCANE_AXE:
            tig_art_item_id_create(14, 0, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 4, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 13);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_HANDLED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 9);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 16);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29723);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_CHARMED_MACE:
            tig_art_item_id_create(13, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 130);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 110);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29690);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_MAGICK_MACE:
            tig_art_item_id_create(16, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(16, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(16, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 125);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 110);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 9);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 16);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29690);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_MYSTIC_MACE:
            tig_art_item_id_create(14, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 24);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29690);
            break;
        case BP_ARCANE_MACE:
            tig_art_item_id_create(17, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(17, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(17, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 110);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 12);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 32);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29690);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_CHARMED_GREAT_SWORD:
            tig_art_item_id_create(7, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_MAGICK_GREAT_SWORD:
            tig_art_item_id_create(12, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_MYSTIC_GREAT_SWORD:
            tig_art_item_id_create(13, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 16);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 12);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 16);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 6);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_ARCANE_GREAT_SWORD:
            tig_art_item_id_create(11, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 16);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 16);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29689);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_PYROTECHNIC_BOW:
            tig_art_item_id_create(6, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_ENVENOMED_BOW:
            tig_art_item_id_create(7, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_POISON, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_POISON, 30);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_CHARMED_BOW:
            tig_art_item_id_create(9, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29693);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_MAGICK_BOW:
            tig_art_item_id_create(8, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29693);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_MYSTIC_BOW:
            tig_art_item_id_create(11, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 6);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29693);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_ARCANE_BOW:
            tig_art_item_id_create(10, 0, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 8, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_ARROW);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BOWS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 14);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29693);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_RIFLED_CANNON:
            tig_art_item_id_create(21, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(21, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(21, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 141);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_ACID_GUN:
            tig_art_item_id_create(16, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(16, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(16, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 269);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -48);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_TESLA_GUN:
            tig_art_item_id_create(14, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_CHARGE);
            tig_art_scenery_id_create(8, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 11);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_ELECTRICAL);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_ELECTRICAL);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_ELECTRICAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_ELECTRICAL, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 44);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 500);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_GRENADE_LAUNCHER:
            tig_art_item_id_create(15, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 130);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_FUEL);
            tig_art_scenery_id_create(8, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_FIRE);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_EXPLOSIVE);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FIRE, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FIRE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 45);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 800);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 203);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_CHARGED_ACCELERATOR_GUN:
            tig_art_item_id_create(17, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(17, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(17, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_ELECTRICAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -48);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_BLADE_LAUNCHER:
            tig_art_item_id_create(19, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(19, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(19, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            tig_art_scenery_id_create(0, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 60);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -75);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_PYROTECHNIC_GUN:
            tig_art_item_id_create(18, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(18, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(18, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FIRE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FIRE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -95);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_TRANQUILIZER_GUN:
            tig_art_item_id_create(20, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(20, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(20, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 204);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_CHARMED_STAFF:
            tig_art_item_id_create(8, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 6);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29692);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_MAGICK_STAFF:
            tig_art_item_id_create(9, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 60);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 12);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29692);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_MYSTIC_STAFF:
            tig_art_item_id_create(10, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 70);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 18);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29692);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_ARCANE_STAFF:
            tig_art_item_id_create(11, 0, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 13, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 12);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 4, 24);
            obj_field_int32_set(obj, OBJ_F_ITEM_MANA_STORE, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29692);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            break;
        case BP_BOOMERANG:
            tig_art_item_id_create(0, 0, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 60);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            tig_art_scenery_id_create(0x1Cu, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29694);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            break;
        case BP_BLADED_BOOMERANG:
            tig_art_item_id_create(1, 0, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            tig_art_scenery_id_create(0x1Cu, 0, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 2);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29694);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            break;
        case BP_BALANCED_BOOMERANG:
            tig_art_item_id_create(2, 0, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            tig_art_scenery_id_create(0x1Cu, 0, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29694);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            break;
        case BP_CHAKRAM:
            tig_art_item_id_create(3, 0, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            tig_art_scenery_id_create(0x18, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 120);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29695);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            break;
        case BP_SERRATED_CHAKRAM:
            tig_art_item_id_create(4, 0, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            tig_art_scenery_id_create(0x18, 0, 0, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29695);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            break;
        case BP_MYSTICAL_CHAKRAM:
            tig_art_item_id_create(5, 0, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            tig_art_scenery_id_create(0x18, 0, 0, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 7);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 82);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29695);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            break;
        case BP_AZRAMS_STAR:
            tig_art_item_id_create(6, 0, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            tig_art_scenery_id_create(0x14, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 16);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_MAGIC_DAMAGE_ADJ_IDX, 0, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MAGIC_CRIT_HIT_CHANCE, 50);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 82);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29695);
            break;
        case BP_AERIAL_DECAPITATOR:
            tig_art_item_id_create(7, 0, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 1, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            tig_art_scenery_id_create(0x10, 0, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 12);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 40);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29695);
            scr.num = 2486;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            break;
        case BP_VOID_SWORD:
            tig_art_item_id_create(10, 0, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 7, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 14);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CUTTING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 25);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            break;
        case BP_DROCHS_WARBRINGER:
            tig_art_item_id_create(15, 0, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 6, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 40);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_ELECTRICAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_ELECTRICAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 10);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            break;
        case BP_LARGE_BORE_VENDIGROTHIAN_RIFLE:
            tig_art_item_id_create(22, 0, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(22, 1, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(22, 2, 0, 0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 110);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, TIG_ART_AMMO_TYPE_BULLET);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 5);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 15);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_GUNS);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 25);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 7);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 13);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 400);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            break;
        case BP_OAK_AXE_HANDLE_WEAPON:
            tig_art_item_id_create(12, 0, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 5, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 60);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 4);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_CRUSHING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLUDGEON);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_FATIGUE, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_FATIGUE, 3);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_STILETTO:
            tig_art_item_id_create(13, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 8);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 2);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_BONE_DAGGER:
            tig_art_item_id_create(15, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 40);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 1);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_NAME, 2027);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_KITE_SWORD:
            tig_art_item_id_create(18, 0, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(18, 1, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(18, 2, 0, 0, 2, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_WEAPON_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_TYPE, 10000);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MISSILE_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_VISUAL_EFFECT_AID, -1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_SPEED_FACTOR, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_RANGE, 1);
            obj_field_int32_set(obj, OBJ_F_WEAPON_MIN_STRENGTH, 3);
            obj_field_int32_set(obj, OBJ_F_WEAPON_AMMO_CONSUMPTION, 0);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_HIT_CHART, CRIT_HIT_TYPE_IMPALING);
            obj_field_int32_set(obj, OBJ_F_WEAPON_CRIT_MISS_CHART, CRIT_MISS_TYPE_BLADED);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_LOWER_IDX, DAMAGE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_WEAPON_DAMAGE_UPPER_IDX, DAMAGE_TYPE_NORMAL, 6);
            obj_field_int32_set(obj, OBJ_F_WEAPON_FLAGS, 26);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        }
        sub_49B2E0(obj);
        if (obj_field_int32_get(obj, OBJ_F_SOUND_EFFECT) == 0) {
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 2 * (5 * (tig_art_item_id_subtype_get(obj_field_int32_get(obj, OBJ_F_ITEM_INV_AID)) - 2) + 2000));
        }
        break;
    case OBJ_TYPE_AMMO:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        switch (description) {
        case BP_ARROW:
            tig_art_item_id_create(0, 0, 0, 0, 0, 1, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 1, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_AMMO_TYPE, 0);
            obj_field_int32_set(obj, OBJ_F_AMMO_QUANTITY, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_BULLET:
            tig_art_item_id_create(0, 0, 0, 0, 1, 1, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 1, 1, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_AMMO_TYPE, 1);
            obj_field_int32_set(obj, OBJ_F_AMMO_QUANTITY, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 3);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        case BP_BATTERY:
            tig_art_item_id_create(0, 0, 0, 0, 2, 1, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 2, 1, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_AMMO_TYPE, 2);
            obj_field_int32_set(obj, OBJ_F_AMMO_QUANTITY, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 3);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_FUEL:
            tig_art_item_id_create(0, 0, 0, 0, 3, 1, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 3, 1, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_AMMO_TYPE, 3);
            obj_field_int32_set(obj, OBJ_F_AMMO_QUANTITY, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -8);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 6);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        }
        break;
    case OBJ_TYPE_ARMOR:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        switch (description) {
        case BP_HEAVY_WOOL_CLOTHES:
        case BP_SMALL_HEAVY_WOOL_CLOTHES:
        case BP_LARGE_HEAVY_WOOL_CLOTHES:
            tig_art_item_id_create(9, 0, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 1, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_HEAVY_WOOL_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(10, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(10, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(10, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            case BP_LARGE_HEAVY_WOOL_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(11, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(11, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(11, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            }
            break;
        case BP_GUARD_LEATHER:
        case BP_SMALL_GUARD_LEATHER:
        case BP_LARGE_GUARD_LEATHER:
            tig_art_item_id_create(0, 0, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 470);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            switch (description) {
            case BP_SMALL_GUARD_LEATHER:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 145);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 15);
                break;
            case BP_LARGE_GUARD_LEATHER:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(2, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(2, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(2, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 155);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 17);
                break;
            }
            break;
        case BP_CHAINMAIL:
            tig_art_item_id_create(0, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 670);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_MACHINED_PLATEMAIL:
        case BP_SMALL_MACHINED_PLATEMAIL:
            tig_art_item_id_create(0, 0, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1200);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -90);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_WEIGHT_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 600);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, -5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, -10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, -20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2000);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            scr.num = 30303;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28005;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            switch (description) {
            case BP_SMALL_MACHINED_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 15);
                break;
            }
            break;
        case BP_PRIEST_ROBES:
        case BP_SMALL_PRIEST_ROBES:
            tig_art_item_id_create(2, 0, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, -15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_PRIEST_ROBES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(3, 0, 0, 0, 5, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(3, 1, 0, 0, 5, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(3, 2, 0, 0, 5, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            }
            break;
        case BP_MITHRIL_PLATEMAIL:
        case BP_SMALL_MITHRIL_PLATEMAIL:
        case BP_LARGE_MITHRIL_PLATEMAIL:
            tig_art_item_id_create(13, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 600);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 950);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            switch (description) {
            case BP_SMALL_MITHRIL_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(14, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(14, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(14, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 800);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 15);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            case BP_LARGE_MITHRIL_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(15, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(15, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(15, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 25);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29719);
                break;
            }
            break;
        case BP_DREAD_ARMOUR:
        case BP_SMALL_DREAD_ARMOUR:
            tig_art_item_id_create(3, 0, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 7, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10000);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 19);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 31);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 60);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 500);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 10;
            scr.num = 30287;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30288;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            switch (description) {
            case BP_SMALL_DREAD_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                break;
            }
            break;
        case BP_NICE_SUIT:
        case BP_SMALL_NICE_SUIT:
        case BP_LARGE_NICE_SUIT:
            tig_art_item_id_create(0, 0, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_NICE_SUIT:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 9);
                tig_art_item_id_create(1, 0, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            case BP_LARGE_NICE_SUIT:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 12);
                tig_art_item_id_create(2, 0, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(2, 1, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(2, 2, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            default:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 10);
                break;
            }
            break;
        case BP_BATTERED_WOODEN_SHIELD:
            tig_art_item_id_create(0, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_HELMET:
            tig_art_item_id_create(7, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 125);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_GAUNTLETS:
            tig_art_item_id_create(2, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 90);
            obj_field_int32_set(obj, OBJ_F_ARMOR_UNARMED_BONUS_DAMAGE, 3);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 2;
            scr.num = 28014;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28015;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_BOOTS:
            tig_art_item_id_create(5, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_FANCY_RING:
            tig_art_item_id_create(0, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_MEDALLION:
            tig_art_item_id_create(0, 0, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_LEATHER_GLOVES:
            tig_art_item_id_create(3, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 2);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_UNARMED_BONUS_DAMAGE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_CHARGED_RING:
            tig_art_item_id_create(3, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -25);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            scr.hdr.counters &= 0xFF7602FF;
            scr.hdr.counters |= 0x760200;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_SMALL_CHAINMAIL:
            tig_art_item_id_create(1, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 450);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 21);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 670);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_SUEDE_JACKET:
        case BP_SMALL_SUEDE_JACKET:
        case BP_HEAVY_RAGS:
            tig_art_item_id_create(0, 0, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 1, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 3);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 275);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_SUEDE_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            case BP_HEAVY_RAGS:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(2, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(2, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(2, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            }
            break;
        case BP_OILED_THIEVES_LEATHER:
        case BP_SMALL_OILED_THIEVES_LEATHER:
        case BP_LARGE_OILED_THIEVES_LEATHER:
            tig_art_item_id_create(3, 0, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 2, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 500);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            scr.num = 28008;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28009;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            switch (description) {
            case BP_SMALL_OILED_THIEVES_LEATHER:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(4, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(4, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(4, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 145);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 14);
                obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 5);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            case BP_LARGE_OILED_THIEVES_LEATHER:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(4, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(4, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(4, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 160);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 18);
                obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -5);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29719);
                break;
            }
            break;
        case BP_MITHRIL_CHAINMAIL:
        case BP_SMALL_MITHRIL_CHAINMAIL:
            tig_art_item_id_create(8, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_WEIGHT_ADJ, -350);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 670);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            switch (description) {
            case BP_SMALL_MITHRIL_CHAINMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(9, 0, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(9, 1, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(9, 2, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 450);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 21);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            }
            break;
        case BP_MACHINED_PLATE:
        case BP_SMALL_MACHINED_PLATE:
        case BP_LARGE_MACHINED_PLATEMAIL:
            tig_art_item_id_create(0, 0, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 4, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1200);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 25);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 45);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -90);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_WEIGHT_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 600);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, -10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, -10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, -20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 900);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            scr.num = 30303;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28005;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            switch (description) {
            case BP_SMALL_MACHINED_PLATE:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 38);
                break;
            case BP_LARGE_MACHINED_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(2, 0, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(2, 1, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(2, 2, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                tig_art_item_id_create(2, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1400);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 53);
                break;
            }
            break;
        case BP_SHADOWING_ROBES:
        case BP_SMALL_ROBE_OF_THE_CHAMELEON:
            tig_art_item_id_create(2, 0, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 7);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 3);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            scr.hdr.counters &= 0xFF8F05FF;
            scr.hdr.counters |= 0x8F0500;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_ROBE_OF_THE_CHAMELEON:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(2, 0, 0, 0, 5, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(2, 1, 0, 0, 5, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(2, 2, 0, 0, 5, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_BASIC_PLATEMAIL:
        case BP_LARGE_BASIC_PLATEMAIL:
            tig_art_item_id_create(0, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 6, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 36);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 870);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            switch (description) {
            case BP_SMALL_BASIC_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 30);
                break;
            case BP_LARGE_BASIC_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(2, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(2, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(2, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1200);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 38);
                break;
            }
            break;
        case BP_BRONZE_BARBARIAN_CLOTHES:
        case BP_SMALL_BRONZE_BARBARIAN_CLOTHES:
            tig_art_item_id_create(4, 0, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 7, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 11);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 60);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 70);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 40);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 40);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 0x0F;
            scr.num = 30287;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30288;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            switch (description) {
            case BP_SMALL_BRONZE_BARBARIAN_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                break;
            }
            break;
        case BP_SMOKING_JACKET:
        case BP_SMALL_SMOKING_JACKET:
        case BP_LARGE_SMOKING_JACKET:
            tig_art_item_id_create(10, 0, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 8, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            scr.num = 30020;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30021;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_SMOKING_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 9);
                tig_art_item_id_create(11, 0, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(11, 1, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(11, 2, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            case BP_LARGE_SMOKING_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 12);
                tig_art_item_id_create(12, 0, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(12, 1, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(12, 2, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            default:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 10);
                break;
            }
            break;
        case BP_SMALL_BASIC_PLATEMAIL:
            tig_art_item_id_create(1, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 6, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 250);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 800);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_WOOL_JACKET:
        case BP_SMALL_WOOL_JACKET:
        case BP_LARGE_WOOL_JACKET:
            tig_art_item_id_create(3, 0, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 1, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 7);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 340);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_WOOL_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(4, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(4, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(4, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            case BP_LARGE_WOOL_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(5, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(5, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(5, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            }
            break;
        case BP_LEATHER_ARMOUR:
        case BP_SMALL_LEATHER_ARMOUR:
        case BP_LARGE_LEATHER_ARMOUR:
            tig_art_item_id_create(0, 0, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 470);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            switch (description) {
            case BP_SMALL_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 140);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 14);
                break;
            case BP_LARGE_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(2, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(2, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(2, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 160);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 17);
                break;
            }
            break;
        case BP_OILED_CHAINMAIL:
            tig_art_item_id_create(10, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 3, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 680);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_BASIC_MACHINED_PLATE:
        case BP_SMALL_BASIC_MACHINED_PLATEMAIL:
            tig_art_item_id_create(0, 0, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 4, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1500);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            switch (description) {
            case BP_SMALL_BASIC_MACHINED_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 25);
                break;
            }
            break;
        case BP_ROBES:
        case BP_SMALL_ROBES:
            tig_art_item_id_create(0, 0, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, -5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_ROBES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 5, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 5, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 5, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            }
            break;
        case BP_BRONZED_PLATE:
        case BP_SMALL_BRONZED_PLATE:
        case BP_LARGE_BRONZED_PLATE:
            tig_art_item_id_create(3, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 6, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 36);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 930);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            switch (description) {
            case BP_SMALL_BRONZED_PLATE:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(4, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(4, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(4, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 32);
                break;
            case BP_LARGE_BRONZED_PLATE:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(5, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(5, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(5, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1100);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 38);
                break;
            }
            break;
        case BP_DARK_BARBARIAN_CLOTHES:
        case BP_SMALL_DARK_BARBARIAN_CLOTHES:
            tig_art_item_id_create(1, 0, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 7, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 11);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 0x05;
            scr.num = 30287;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30288;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            switch (description) {
            case BP_SMALL_DARK_BARBARIAN_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                break;
            }
            break;
        case BP_SERVANTS_CLOTHES:
        case BP_SMALL_MANSERVANTS_CLOTHES:
        case BP_LARGE_MANSERVANTS_UNIFORM:
            tig_art_item_id_create(13, 0, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 8, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_NAME, 2805);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_MANSERVANTS_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 9);
                tig_art_item_id_create(14, 0, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(14, 1, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(14, 2, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            case BP_LARGE_MANSERVANTS_UNIFORM:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 12);
                tig_art_item_id_create(15, 0, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(15, 1, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(15, 2, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            default:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 10);
                break;
            }
            break;
        case BP_SMALL_OILED_CHAINMAIL:
            tig_art_item_id_create(11, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 3, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 430);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 700);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_JACKET:
        case BP_SMALL_JACKET:
        case BP_LARGE_JACKET:
            tig_art_item_id_create(6, 0, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            case BP_LARGE_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(8, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(8, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(8, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            }
            break;
        case BP_STUDDED_LEATHER:
        case BP_SMALL_STUDDED_LEATHER:
        case BP_LARGE_STUDDED_LEATHER:
            tig_art_item_id_create(6, 0, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 2, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 18);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 540);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            switch (description) {
            case BP_SMALL_STUDDED_LEATHER:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 480);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
                break;
            case BP_LARGE_STUDDED_LEATHER:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(8, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(8, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(8, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 520);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
                break;
            }
            break;
        case BP_GUARD_CHAINMAIL:
        case BP_SMALL_GUARD_CHAINMAIL:
            tig_art_item_id_create(0, 0, 0, 0, 3, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 3, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 3, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 3, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 670);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            switch (description) {
            case BP_SMALL_GUARD_CHAINMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 3, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 3, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 3, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 450);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 21);
                break;
            }
            break;
        case BP_GUARD_PLATE:
        case BP_SMALL_GUARD_PLATE:
            tig_art_item_id_create(0, 0, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 4, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 37);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 900);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            switch (description) {
            case BP_SMALL_GUARD_PLATE:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 33);
                break;
            }
            break;
        case BP_MAGICK_ROBES_1:
        case BP_SMALL_MAGICK_ROBES_1:
            tig_art_item_id_create(2, 0, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 7);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 3);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_WEIGHT_ADJ, -30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 8);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_MAGICK_ROBES_1:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(3, 0, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(3, 1, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(3, 2, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_ELITE_PLATE:
        case BP_SMALL_ELITE_PLATE:
        case BP_LARGE_ELITE_PLATE:
            tig_art_item_id_create(17, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(17, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(17, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(17, 2, 0, 0, 6, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 800);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 40);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -35);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            switch (description) {
            case BP_SMALL_ELITE_PLATE:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(18, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(18, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(18, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 600);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 35);
                break;
            case BP_LARGE_ELITE_PLATE:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(19, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(19, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(19, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 45);
                break;
            }
            break;
        case BP_RED_BARBARIAN_CLOTHES:
        case BP_SMALL_RED_BARBARIAN_CLOTHES:
            tig_art_item_id_create(2, 0, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 7, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 11);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 0x05;
            scr.num = 30287;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30288;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 7);
            switch (description) {
            case BP_SMALL_RED_BARBARIAN_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                break;
            }
            break;
        case BP_RUSTIC_FINERY:
        case BP_SMALL_RUSTIC_FINERY:
        case BP_LARGE_RUSTIC_FINERY:
            tig_art_item_id_create(3, 0, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 8, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_RUSTIC_FINERY:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 9);
                tig_art_item_id_create(8, 0, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(8, 1, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(8, 2, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            case BP_LARGE_RUSTIC_FINERY:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 12);
                tig_art_item_id_create(9, 0, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(9, 1, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(9, 2, 0, 0, 8, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            default:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 10);
                break;
            }
            break;
        case BP_FEATHER_WEIGHT_CHAIN:
        case BP_SMALL_FEATHER_WEIGHT_CHAIN:
        case BP_LARGE_FEATHER_WEIGHT_CHAIN:
            tig_art_item_id_create(3, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 3, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 250);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 13);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 24);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_WEIGHT_ADJ, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            switch (description) {
            case BP_SMALL_FEATHER_WEIGHT_CHAIN:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(4, 0, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(4, 1, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(4, 2, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
                break;
            case BP_LARGE_FEATHER_WEIGHT_CHAIN:
                tig_art_item_id_create(3, 2, 0, 0, 6, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(5, 0, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(5, 1, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(5, 2, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 270);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 25);
                break;
            }
            break;
        case BP_COPPER_RING:
            tig_art_item_id_create(1, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 2, 5, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 0, 2, 5, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_PLAIN_DRESS:
        case BP_SMALL_LADIES_CITY_DWELLER_CLOTHES:
        case BP_LARGE_LADIES_CITY_DWELLER_CLOTHES:
            tig_art_item_id_create(5, 0, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_LADIES_CITY_DWELLER_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 17);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            case BP_LARGE_LADIES_CITY_DWELLER_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 20);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            default:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 18);
                break;
            }
            break;
        case BP_ELEGANT_DRESS:
        case BP_SMALL_LADIES_SMOKING_JACKET:
        case BP_LARGE_LADIES_SMOKING_JACKET:
            tig_art_item_id_create(7, 0, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 8, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            scr.num = 30020;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30021;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_LADIES_SMOKING_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 17);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            case BP_LARGE_LADIES_SMOKING_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 20);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            default:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 18);
                break;
            }
            break;
        case BP_SERVANTS_DRESS:
        case BP_SMALL_LADYSERVANTS_CLOTHES:
        case BP_LARGE_LADYSERVANTS_CLOTHES:
            tig_art_item_id_create(4, 0, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 8, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_LADYSERVANTS_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 17);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            case BP_LARGE_LADYSERVANTS_CLOTHES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 20);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            default:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 18);
                break;
            }
            break;
        case BP_RUSTIC_DRESS:
        case BP_SMALL_LADIES_RUSTIC_FINERY:
        case BP_LARGE_LADIES_RUSTIC_FINERY:
            tig_art_item_id_create(6, 0, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 8, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_LADIES_RUSTIC_FINERY:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 17);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            case BP_LARGE_LADIES_RUSTIC_FINERY:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 20);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            default:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 18);
                break;
            }
            break;
        case BP_VENOM_SHIELDED_GARMENT:
        case BP_SMALL_VENOM_SHIELDED_GARMENT:
        case BP_LARGE_VENOM_SHIELDED_GARMENT:
            tig_art_item_id_create(9, 0, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 1, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 140);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29701);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_VENOM_SHIELDED_GARMENT:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(10, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(10, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(10, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29718);
                break;
            case BP_LARGE_VENOM_SHIELDED_GARMENT:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(11, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(11, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(11, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29721);
                break;
            }
            break;
        case BP_REGENERATIVE_JACKET:
        case BP_SMALL_REGENERATIVE_JACKET:
        case BP_LARGE_REGENERATIVE_JACKET:
            tig_art_item_id_create(15, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 250);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 400);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 168);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            switch (description) {
            case BP_SMALL_REGENERATIVE_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(16, 0, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(16, 1, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(16, 2, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            case BP_LARGE_REGENERATIVE_JACKET:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(17, 0, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(17, 1, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(17, 2, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            }
            break;
        case BP_DRAGON_SKIN_LEATHER:
        case BP_SMALL_DRAGON_SKIN_LEATHER:
        case BP_LARGE_DRAGON_SKIN_LEATHER:
            tig_art_item_id_create(9, 0, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 2, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 470);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            switch (description) {
            case BP_SMALL_DRAGON_SKIN_LEATHER:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(10, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(10, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(10, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 140);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            case BP_LARGE_DRAGON_SKIN_LEATHER:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(11, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(11, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(11, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 160);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29719);
                break;
            }
            break;
        case BP_CREEP_ARMOUR:
            tig_art_item_id_create(18, 0, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(18, 1, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(18, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(18, 2, 0, 0, 2, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 70);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 400);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            scr.num = 28010;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28011;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            break;
        case BP_CALADON_ELITE_GUARD_CHAINMAIL:
            tig_art_item_id_create(14, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 400);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 13);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 25);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 735);
            break;
        case BP_DWARVEN_CHAINMAIL:
            tig_art_item_id_create(13, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 650);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 27);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 800);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_ELVEN_CHAINMAIL:
            tig_art_item_id_create(2, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_WEIGHT_ADJ, -150);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 670);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_GNOMISH_CHAINMAIL:
            tig_art_item_id_create(12, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 670);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_MOLOCHEAN_HAND_AMULET:
            tig_art_item_id_create(1, 0, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_NAME, 2807);
            scr.num = 1341;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_EXAMINE, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_MEDALLION_OF_BEAUTY:
            tig_art_item_id_create(3, 0, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29708);
            obj_field_int32_set(obj, OBJ_F_NAME, 2827);
            scr.hdr.counters &= 0xFF8602FF;
            scr.hdr.counters |= 0x860200;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_DORIAN_AMULET:
            tig_art_item_id_create(2, 0, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29708);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_DECENT_GOLD_RING:
            tig_art_item_id_create(1, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_GILBERT_BATES_RING:
            tig_art_item_id_create(2, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_RING_OF_PROTECTION:
            tig_art_item_id_create(4, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29706);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_FATED_RING:
            tig_art_item_id_create(5, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29706);
            scr.hdr.counters &= 0xFF8701FF;
            scr.hdr.counters |= 0x870100;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_METAL_BOOTS:
            tig_art_item_id_create(0, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_FINE_STOUT_BOOTS:
            tig_art_item_id_create(1, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 8);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 130);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_SHOES:
            tig_art_item_id_create(8, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 35);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_WORN_SHOES:
            tig_art_item_id_create(3, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 40);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 15);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_WORN_BOOTS:
            tig_art_item_id_create(9, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 40);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 15);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_LADIES_FANCY_BOOTS:
            tig_art_item_id_create(6, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 15);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 16);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_WORN_LADIES_BOOTS:
            tig_art_item_id_create(6, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 40);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 35);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 16);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_ELVEN_BOOTS:
            tig_art_item_id_create(4, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29711);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_ENCHANTED_WAR_BOOTS:
            tig_art_item_id_create(7, 0, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 0, 2, 4, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 60);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 6);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29711);
            scr.hdr.counters &= 0xFF8805FF;
            scr.hdr.counters |= 0x880500;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 11);
            break;
        case BP_DWARVEN_GAUNTLETS:
            tig_art_item_id_create(1, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 145);
            obj_field_int32_set(obj, OBJ_F_ARMOR_UNARMED_BONUS_DAMAGE, 7);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 0x02;
            scr.num = 28014;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28015;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_MACHINED_GAUNTLETS:
            tig_art_item_id_create(0, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 25);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 7);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_UNARMED_BONUS_DAMAGE, 15);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 0x04;
            scr.num = 28014;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28015;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_WAR_GAUNTLETS:
            tig_art_item_id_create(6, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 25);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 8);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 260);
            obj_field_int32_set(obj, OBJ_F_ARMOR_UNARMED_BONUS_DAMAGE, 10);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 0x05;
            scr.num = 28014;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28015;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_CHAIN_GLOVES:
            tig_art_item_id_create(4, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 6);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 183);
            obj_field_int32_set(obj, OBJ_F_ARMOR_UNARMED_BONUS_DAMAGE, 2);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 0x01;
            scr.num = 28014;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28015;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_LIGHT_FINGERED_GAUNTLETS:
            tig_art_item_id_create(5, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29705);
            scr.hdr.counters &= 0xFF8A01FF;
            scr.hdr.counters |= 0x8A0100;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_GLOVES_OF_DEXTERITY:
            tig_art_item_id_create(7, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29705);
            scr.hdr.counters &= 0xFF8B02FF;
            scr.hdr.counters |= 0x8B0200;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_FINE_HELMET:
            tig_art_item_id_create(1, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 9);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_PIG_FACE_BASSET:
            tig_art_item_id_create(3, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 12);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 275);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_EYE_GEAR:
            tig_art_item_id_create(4, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            scr.hdr.counters &= 0xFF8C02FF;
            scr.hdr.counters |= 0x8C0200;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_EYE_GLASSES:
            tig_art_item_id_create(5, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            scr.num = 28017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28018;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_TOP_HAT:
            tig_art_item_id_create(6, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_HELMET_OF_VISION:
            tig_art_item_id_create(19, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(19, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(19, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 130);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 7);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_CHAPEAU_OF_MAGNETIC_INVERSION:
            tig_art_item_id_create(10, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -50);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 182);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_HELM_OF_LIGHT:
            tig_art_item_id_create(2, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 7);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 2048);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29702);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_GELEAMS_HELM:
            tig_art_item_id_create(9, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 7);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29702);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_WOODEN_SHIELD:
            tig_art_item_id_create(1, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 220);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_DENTED_IRON_SHIELD:
            tig_art_item_id_create(2, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(2, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 18);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_QUALITY_IRON_SHIELD:
            tig_art_item_id_create(3, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 550);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_KITE_SHIELD:
            tig_art_item_id_create(4, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 360);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_FLOW_SPECKTROMETER:
            tig_art_item_id_create(7, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_NAME, 2866);
            scr.num = 29016;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            break;
        case BP_SHIELD_OF_FORCE:
            tig_art_item_id_create(5, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(5, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29712);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 87);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_SHADOW_SHIELD:
            tig_art_item_id_create(6, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29712);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_DWARVEN_PLATEMAIL:
            tig_art_item_id_create(16, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(16, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(16, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(16, 2, 0, 0, 6, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1300);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 500);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 17);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 40);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1000);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_MINUTE_PLATEMAIL_OF_REGENERATION:
            tig_art_item_id_create(9, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 6, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 800);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 7);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 850);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
            scr.hdr.counters &= 0xFF8E08FF;
            scr.hdr.counters |= 0x8E0800;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            break;
        case BP_GREAT_HELM:
            tig_art_item_id_create(9, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 18);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_SUNDAYS_BEST_DRESS:
            tig_art_item_id_create(7, 0, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 8, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 8, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 1);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            scr.num = 30020;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30021;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 18);
            break;
        case BP_OFFICERS_UNIFORM:
        case BP_SMALL_OFFICERS_UNIFORM:
            tig_art_item_id_create(12, 0, 0, 0, 1, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 1, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 3);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 275);
            obj_field_int32_set(obj, OBJ_F_NAME, 2849);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            switch (description) {
            case BP_SMALL_OFFICERS_UNIFORM:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(13, 0, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(13, 1, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(13, 2, 0, 0, 1, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            }
            break;
        case BP_AMULET_OF_LEADERSHIP:
            tig_art_item_id_create(0, 0, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29707);
            scr.hdr.counters &= 0xFFD501FF;
            scr.hdr.counters |= 0xD50100;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 64);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_DARK_HELM:
            tig_art_item_id_create(0, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 9);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29702);
            scr.hdr.counters &= 0xFFD804FF;
            scr.hdr.counters |= 0xD80400;
            scr.num = 30293;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30294;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 64);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_TEAMSTER_GLOVES:
            tig_art_item_id_create(3, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29705);
            scr.hdr.counters &= 0xFFD702FF;
            scr.hdr.counters |= 0xD70200;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 64);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_SERPENTINE_NECKLACE:
            tig_art_item_id_create(21, 0, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(21, 1, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(21, 2, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29709);
            scr.hdr.counters &= 0xFFD601FF;
            scr.hdr.counters |= 0xD60100;
            scr.num = 28012;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28013;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 64);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_WHEEL_CLAN_SPECTACLES:
            tig_art_item_id_create(12, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_NAME, 2806);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            break;
        case BP_CHARMED_LEATHER_ARMOUR:
        case BP_SMALL_CHARMED_LEATHER_ARMOUR:
        case BP_LARGE_CHARMED_LEATHER_ARMOUR:
            tig_art_item_id_create(12, 0, 0, 0, 2, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 2, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 2, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 170);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 470);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            switch (description) {
            case BP_SMALL_CHARMED_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 160);
                tig_art_item_id_create(13, 0, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(13, 1, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(13, 2, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 14);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            case BP_LARGE_CHARMED_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 180);
                tig_art_item_id_create(14, 0, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(14, 1, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(14, 2, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 18);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29719);
                break;
            }
            break;
        case BP_MAGICK_LEATHER_ARMOUR:
        case BP_SMALL_MAGICK_LEATHER_ARMOUR:
        case BP_LARGE_MAGICK_LEATHER_ARMOUR:
            tig_art_item_id_create(12, 0, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 2, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 160);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 470);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            switch (description) {
            case BP_SMALL_MAGICK_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
                tig_art_item_id_create(13, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(13, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(13, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 14);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            case BP_LARGE_MAGICK_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 180);
                tig_art_item_id_create(14, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(14, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(14, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 18);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29719);
                break;
            }
            break;
        case BP_MYSTIC_LEATHER_ARMOUR:
        case BP_SMALL_MYSTIC_LEATHER_ARMOUR:
        case BP_LARGE_MYSTIC_LEATHER_ARMOUR:
            tig_art_item_id_create(15, 0, 0, 0, 2, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 2, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 2, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 470);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            switch (description) {
            case BP_SMALL_MYSTIC_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 160);
                tig_art_item_id_create(16, 0, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(16, 1, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(16, 2, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 14);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            case BP_LARGE_MYSTIC_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 180);
                tig_art_item_id_create(17, 0, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(17, 1, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(17, 2, 0, 0, 2, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 18);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29719);
                break;
            }
            break;
        case BP_ARCANE_LEATHER_ARMOUR:
        case BP_SMALL_ARCANE_LEATHER_ARMOUR:
        case BP_LARGE_ARCANE_LEATHER_ARMOUR:
            tig_art_item_id_create(15, 0, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 2, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 2, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 170);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 9);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 6);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 470);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            switch (description) {
            case BP_SMALL_ARCANE_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 160);
                tig_art_item_id_create(16, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(16, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(16, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 14);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            case BP_LARGE_ARCANE_LEATHER_ARMOUR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 180);
                tig_art_item_id_create(17, 0, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(17, 1, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(17, 2, 0, 0, 2, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 18);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29719);
                break;
            }
            break;
        case BP_QINTARRA_CHAINMAIL:
            tig_art_item_id_create(0, 0, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 14);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_WEIGHT_ADJ, -150);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 670);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            break;
        case BP_CHARMED_CHAINMAIL:
        case BP_SMALL_CHARMED_CHAINMAIL:
            tig_art_item_id_create(6, 0, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 520);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 870);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            switch (description) {
            case BP_SMALL_CHARMED_CHAINMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 3, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            }
            break;
        case BP_MAGICK_CHAINMAIL:
        case BP_SMALL_MAGICK_CHAINMAIL:
            tig_art_item_id_create(6, 0, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 3, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 3, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 510);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 870);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            switch (description) {
            case BP_SMALL_MAGICK_CHAINMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 3, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 3, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 3, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 490);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            }
            break;
        case BP_MYSTIC_CHAINMAIL:
        case BP_SMALL_MYSTIC_CHAINMAIL:
            tig_art_item_id_create(6, 0, 0, 0, 3, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 3, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 3, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 3, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 870);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            switch (description) {
            case BP_SMALL_MYSTIC_CHAINMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 3, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 3, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 3, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 490);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            }
            break;
        case BP_ARCANE_CHAINMAIL:
        case BP_SMALL_ARCANE_CHAINMAIL:
            tig_art_item_id_create(6, 0, 0, 0, 3, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 3, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 3, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 3, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 23);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -25);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 870);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            switch (description) {
            case BP_SMALL_ARCANE_CHAINMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 3, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 3, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 3, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 490);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 21);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            }
            break;
        case BP_ELECTRO_ARMOR:
        case BP_SMALL_ELECTRO_ARMOR:
        case BP_LARGE_ELECTRO_ARMOR:
            tig_art_item_id_create(3, 0, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(3, 1, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(3, 2, 0, 0, 4, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 18);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 45);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 65);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_WEIGHT_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, -10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, -15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, -10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 900);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 6);
            switch (description) {
            case BP_SMALL_ELECTRO_ARMOR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(4, 0, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(4, 1, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(4, 2, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 40);
                break;
            case BP_LARGE_ELECTRO_ARMOR:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 4);
                tig_art_item_id_create(5, 0, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(5, 1, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(5, 2, 0, 0, 4, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1400);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 47);
                tig_art_item_id_create(2, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
                break;
            }
            break;
        case BP_CHARMED_ROBES:
        case BP_SMALL_CHARMED_ROBES:
            tig_art_item_id_create(4, 0, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_CHARMED_ROBES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(5, 0, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(5, 1, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(5, 2, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_MAGICK_ROBES_2:
        case BP_SMALL_MAGICK_ROBES_2:
            tig_art_item_id_create(4, 0, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_MAGICK_ROBES_2:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(5, 0, 0, 0, 5, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(5, 1, 0, 0, 5, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(5, 2, 0, 0, 5, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_MYSTIC_ROBES:
        case BP_SMALL_MYSTIC_ROBES:
            tig_art_item_id_create(4, 0, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 35);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 35);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 35);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 35);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_MYSTIC_ROBES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(5, 0, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(5, 1, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(5, 2, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_ARCANE_ROBES:
        case BP_SMALL_ARCANE_ROBES:
            tig_art_item_id_create(4, 0, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(4, 2, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_ARCANE_ROBES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(5, 0, 0, 0, 5, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(5, 1, 0, 0, 5, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(5, 2, 0, 0, 5, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_CHARMED_TRAVELERS_CLOAK:
        case BP_SMALL_CHARMED_TRAVELERS_CLOAK:
            tig_art_item_id_create(6, 0, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 5, 2, 0, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_CHARMED_TRAVELERS_CLOAK:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 5, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 5, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 5, 2, 0, 2, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_MAGICK_TRAVELERS_CLOAK:
        case BP_SMALL_MAGICK_TRAVELERS_CLOAK:
            tig_art_item_id_create(6, 0, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 5, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_MAGICK_TRAVELERS_CLOAK:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 5, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 5, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 5, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_MYSTIC_TRAVELERS_CLOAK:
        case BP_SMALL_MYSTIC_TRAVELERS_CLOAK:
            tig_art_item_id_create(6, 0, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 5, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_MYSTIC_TRAVELERS_CLOAK:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 5, 2, 0, 3, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_ARCANE_TRAVELERS_CLOAK:
        case BP_SMALL_ARCANE_TRAVELERS_CLOAK:
            tig_art_item_id_create(6, 0, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29715);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_ARCANE_TRAVELERS_CLOAK:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 5, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 5, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 5, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29722);
                break;
            }
            break;
        case BP_QUALITY_ROBES:
        case BP_SMALL_QUALITY_ROBES:
            tig_art_item_id_create(0, 0, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(0, 2, 0, 0, 5, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 7);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 3);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            switch (description) {
            case BP_SMALL_QUALITY_ROBES:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(1, 0, 0, 0, 5, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(1, 1, 0, 0, 5, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(1, 2, 0, 0, 5, 2, 0, 1, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                break;
            }
            break;
        case BP_CHARMED_PLATEMAIL:
        case BP_SMALL_CHARMED_PLATEMAIL:
            tig_art_item_id_create(6, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(6, 2, 0, 0, 6, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 36);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1500);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            switch (description) {
            case BP_SMALL_CHARMED_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(7, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(7, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(7, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 32);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            }
            break;
        case BP_MAGICK_PLATEMAIL:
        case BP_SMALL_MAGICK_PLATEMAIL:
            tig_art_item_id_create(8, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 6, 2, 0, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 36);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1500);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            switch (description) {
            case BP_SMALL_MAGICK_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(9, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(9, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(9, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 32);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            }
            break;
        case BP_MYSTIC_PLATEMAIL:
        case BP_SMALL_MYSTIC_PLATEMAIL:
            tig_art_item_id_create(10, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 6, 2, 0, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 36);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1500);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            switch (description) {
            case BP_SMALL_MYSTIC_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(11, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(11, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(11, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 32);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            }
            break;
        case BP_ARCANE_PLATEMAIL:
        case BP_SMALL_ARCANE_PLATEMAIL:
            tig_art_item_id_create(13, 0, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 6, 2, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 400);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 36);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, -20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, -80);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 15);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_SILENT_MOVE_ADJ, 15);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1500);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29696);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 5);
            switch (description) {
            case BP_SMALL_ARCANE_PLATEMAIL:
                obj_field_int32_set(obj, OBJ_F_ARMOR_FLAGS, 1);
                tig_art_item_id_create(14, 0, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                tig_art_item_id_create(14, 1, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
                tig_art_item_id_create(14, 2, 0, 0, 6, 2, 0, 0, &art_id);
                obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
                obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 900);
                obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 32);
                obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29716);
                break;
            }
            break;
        case BP_FLOW_DISRUPTOR_SHIELD:
            tig_art_item_id_create(8, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 30);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 30);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29712);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_CHARMED_SHIELD:
            tig_art_item_id_create(9, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29712);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_MAGICK_SHIELD:
            tig_art_item_id_create(10, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29712);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_MYSTIC_SHIELD:
            tig_art_item_id_create(11, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 85);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 12);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 12);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29712);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_ARCANE_SHIELD:
            tig_art_item_id_create(12, 0, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(12, 2, 0, 0, 0, 2, 1, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 85);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 180);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 2);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 16);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 16);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29712);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 13);
            break;
        case BP_MINERS_HELMET:
            tig_art_item_id_create(14, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 125);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 1024);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29702);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            break;
        case BP_CHARMED_HELMET:
            tig_art_item_id_create(15, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(15, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 12);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 400);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29702);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_MAGICK_HELMET:
            tig_art_item_id_create(16, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(16, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(16, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 12);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 400);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29702);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_MYSTIC_HELMET:
            tig_art_item_id_create(17, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(17, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(17, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 12);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 8);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 6);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 400);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29702);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_ARCANE_HELMET:
            tig_art_item_id_create(18, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(18, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(18, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 12);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 400);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29702);
            scr.num = 30291;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30292;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        case BP_CHARMED_GAUNTLETS:
            tig_art_item_id_create(10, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 2);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 2);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29705);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_MAGICK_GAUNTLETS:
            tig_art_item_id_create(10, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 2, 3, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 0, 2, 3, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 3);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 3);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29705);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_MYSTIC_GAUNTLETS:
            tig_art_item_id_create(10, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 2, 3, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 0, 2, 3, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 4);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29705);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_ARCANE_GAUNTLETS:
            tig_art_item_id_create(10, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 2, 3, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 0, 2, 3, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 0);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_field_int32_set(obj, OBJ_F_ARMOR_MAGIC_AC_ADJ, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29705);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 12);
            break;
        case BP_CHARMED_RING:
            tig_art_item_id_create(8, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 2, 5, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 0, 2, 5, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 5);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29706);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_MAGICK_RING:
            tig_art_item_id_create(8, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 10);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29706);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_MYSTIC_RING:
            tig_art_item_id_create(9, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 75);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 15);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 15);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29706);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_ARCANE_RING:
            tig_art_item_id_create(10, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(10, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_MAGIC, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_FIRE, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_POISON, 20);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_MAGIC_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_ELECTRICAL, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29706);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_VENDIGROTHIAN_PADDED_LEATHER_GLOVES:
            tig_art_item_id_create(9, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(9, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 4);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_ARMOR_UNARMED_BONUS_DAMAGE, 2);
            break;
        case BP_VENDIGROTHIAN_WAR_GAUNTLETS:
            tig_art_item_id_create(8, 0, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(8, 2, 0, 0, 0, 2, 3, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 25);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 15);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_UNARMED_BONUS_DAMAGE, 15);
            scr.hdr.counters &= ~0xFF;
            scr.hdr.counters |= 0x02;
            scr.num = 28014;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 28015;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            break;
        case BP_VOID_RING:
            tig_art_item_id_create(14, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(14, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_NAME, 2857);
            break;
        case BP_EMERALD_RING:
            tig_art_item_id_create(7, 0, 0, 0, 0, 2, 5, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 2, 5, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 0, 2, 5, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_RUBY_RING:
            tig_art_item_id_create(7, 0, 0, 0, 0, 2, 5, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 2, 5, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 0, 2, 5, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_NAME, 5684);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_SAPPHIRE_RING:
            tig_art_item_id_create(7, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(7, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 350);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_DIAMOND_RING:
            tig_art_item_id_create(13, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 400);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_WOODEN_RING:
            tig_art_item_id_create(11, 0, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(11, 2, 0, 0, 0, 2, 5, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_SILVER_RING:
            tig_art_item_id_create(1, 0, 0, 0, 0, 2, 5, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 2, 5, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 0, 2, 5, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_MITHRIL_RING:
            tig_art_item_id_create(1, 0, 0, 0, 0, 2, 5, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 2, 5, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(1, 2, 0, 0, 0, 2, 5, 3, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 9);
            break;
        case BP_EMERALD_NECKLACE:
            tig_art_item_id_create(24, 0, 0, 0, 0, 2, 6, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(24, 1, 0, 0, 0, 2, 6, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(24, 2, 0, 0, 0, 2, 6, 1, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 600);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_RUBY_NECKLACE:
            tig_art_item_id_create(24, 0, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(24, 1, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(24, 2, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 900);
            obj_field_int32_set(obj, OBJ_F_NAME, 5684);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_SAPPHIRE_NECKLACE:
            tig_art_item_id_create(24, 0, 0, 0, 0, 2, 6, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(24, 1, 0, 0, 0, 2, 6, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(24, 2, 0, 0, 0, 2, 6, 2, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_DIAMOND_NECKLACE:
            tig_art_item_id_create(25, 0, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(25, 1, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(25, 2, 0, 0, 0, 2, 6, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1500);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 10);
            break;
        case BP_GOGGLED_HELMET:
            tig_art_item_id_create(13, 0, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            tig_art_item_id_create(13, 2, 0, 0, 0, 2, 2, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ARMOR_PAPER_DOLL_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_USE_AID_FRAGMENT, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 120);
            obj_field_int32_set(obj, OBJ_F_ARMOR_AC_ADJ, 6);
            obj_arrayfield_int32_set(obj, OBJ_F_ARMOR_RESISTANCE_ADJ_IDX, RESISTANCE_TYPE_NORMAL, 9);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_ARMOR_SILENT_MOVE_ADJ, 0);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 120);
            scr.hdr.counters &= 0xFFE703FF;
            scr.hdr.counters |= 0xE70300;
            scr.num = 30289;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_ON, &scr);
            scr.num = 30290;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_WIELD_OFF, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 8);
            break;
        }
        sub_49B2E0(obj);
        break;
    case OBJ_TYPE_GOLD:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        tig_art_item_id_create(0, 0, 0, 0, 0, 3, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
        tig_art_item_id_create(0, 1, 0, 0, 0, 3, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
        obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
        break;
    case OBJ_TYPE_FOOD:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 0x180);
        switch (description) {
        case BP_BREAD:
            tig_art_item_id_create(88, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(88, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_WATER:
            tig_art_item_id_create(51, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(51, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_HEALING_SALVE:
            tig_art_item_id_create(11, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(11, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -65);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 35);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_FATIGUE_RESTORER:
            tig_art_item_id_create(9, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 151);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_GINKA_ROOT:
            tig_art_item_id_create(12, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(12, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_KADURA_STEM:
            tig_art_item_id_create(13, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -6);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_COCA_LEAVES:
            tig_art_item_id_create(5, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_TOBACCO_LEAVES:
            tig_art_item_id_create(17, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(17, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_POISON:
            tig_art_item_id_create(4, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 164);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ELECTROLYTE_SOLUTION:
            tig_art_item_id_create(25, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(25, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_VARHAMS_AQUA_VITAE:
            tig_art_item_id_create(32, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(32, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 173);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MONROES_CLEANER:
            tig_art_item_id_create(27, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(27, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -7);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 170);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_POTION_OF_PERSUASION:
            tig_art_item_id_create(42, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(42, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -56);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 157);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ELIXIR_OF_PHYSICAL_PROWESS:
            tig_art_item_id_create(49, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(49, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -78);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 158);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_SPIRIT_OF_CAMPHOR:
            tig_art_item_id_create(48, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(48, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_FAMOUS_BLOOD_PILLS:
            tig_art_item_id_create(36, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(36, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_AMMONIA:
            tig_art_item_id_create(43, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(43, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_HEAL_LESSER_WOUNDS:
            tig_art_item_id_create(79, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(79, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            scr.num = 30282;
            scr.hdr.counters = 0x32002314;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x300000);
            obj_field_int32_set(obj, OBJ_F_ITEM_AI_ACTION, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_STRONG_POISON:
            tig_art_item_id_create(29, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(29, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -75);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 171);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_CURE_ALL:
            tig_art_item_id_create(6, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 156);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_CURE_POISON:
            tig_art_item_id_create(7, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 152);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_FATIGUE_LIMITER:
            tig_art_item_id_create(8, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 153);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ACCELERATE_HEALING:
            tig_art_item_id_create(10, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 45);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 154);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_WITCHBANE:
            tig_art_item_id_create(14, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_POPPY_FLOWERS:
            tig_art_item_id_create(15, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 3);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_BIG_CHIEF_SNAKE_OIL:
            tig_art_item_id_create(16, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(16, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_VENOM:
            tig_art_item_id_create(18, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(18, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -25);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 169);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_WONDER_DRUG:
            tig_art_item_id_create(19, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(19, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 155);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_CORROSIVE_ACID:
            tig_art_item_id_create(20, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(20, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 166);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ANIMAL_LURE:
            tig_art_item_id_create(21, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(21, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 183);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ANIMAL_SCENT:
            tig_art_item_id_create(22, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(22, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 167);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_BREWERS_YEAST:
            tig_art_item_id_create(23, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(23, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -25);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 7);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_PETES_CARBOLIC_ACID:
            tig_art_item_id_create(24, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(24, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -45);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_HALLUCINITE:
            tig_art_item_id_create(26, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(26, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 165);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 384);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MUSHROOMS:
            tig_art_item_id_create(28, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(28, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_SULPHUR_PILLS:
            tig_art_item_id_create(30, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(30, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_WINE:
            tig_art_item_id_create(31, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(31, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 172);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_NAME, 3608);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MORNING_STAR_PERFUME:
            tig_art_item_id_create(33, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(33, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_DRAGON_COLOGNE:
            tig_art_item_id_create(34, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(34, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_LINGHAMS_BELLADONNA:
            tig_art_item_id_create(35, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(35, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -25);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_REVITALIZER:
            tig_art_item_id_create(37, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(37, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 163);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MIND_MARVEL:
            tig_art_item_id_create(38, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(38, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 161);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_TONIC_OF_INCREASED_REFLEXES:
            tig_art_item_id_create(39, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(39, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 160);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ENERGIZER:
            tig_art_item_id_create(40, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(40, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -92);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 90);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 162);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_DOOLITTLES_GLYCERIDE:
            tig_art_item_id_create(41, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(41, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -32);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_NERVE_PILLS:
            tig_art_item_id_create(44, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(44, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_LIQUID_OF_AWARENESS:
            tig_art_item_id_create(45, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(45, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 159);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_NIMMS_PHOSPHOROUS_TINCTURE:
            tig_art_item_id_create(46, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(46, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_QUININE:
            tig_art_item_id_create(47, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(47, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_WITCH_HAZEL_EXTRACT:
            tig_art_item_id_create(50, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(50, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_RHEUMATISM_CURE:
            tig_art_item_id_create(52, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(52, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -46);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MIGRAINE_CURE:
            tig_art_item_id_create(53, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(53, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -8);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_TINCTURE_OF_ARNICA:
            tig_art_item_id_create(54, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(54, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -35);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_CK_SUGAR:
            tig_art_item_id_create(55, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(55, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ELIXIR_OF_HYPNOTIC_SUGGESTION:
            tig_art_item_id_create(64, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(64, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -93);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 142);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_BRAIN_BUILDER:
            tig_art_item_id_create(65, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(65, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -83);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 141);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MUSCLE_MAKER:
            tig_art_item_id_create(66, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(66, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -83);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 144);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_INVIGORATOR:
            tig_art_item_id_create(56, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(56, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 189);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_REANIMATOR:
            tig_art_item_id_create(57, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(57, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -95);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 190);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MIRACLE_CURE:
            tig_art_item_id_create(58, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(58, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -95);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 192);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MENTAL_INHIBITOR:
            tig_art_item_id_create(59, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(59, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -74);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 193);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_NECROMIZER:
            tig_art_item_id_create(60, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(60, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -64);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 194);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_FORTIFIER:
            tig_art_item_id_create(61, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(61, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 195);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ANAESTHISIZER:
            tig_art_item_id_create(62, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(62, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -75);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 25);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 196);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            break;
        case BP_PARALYZER:
            tig_art_item_id_create(63, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(63, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 197);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_LEMON:
            tig_art_item_id_create(68, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(68, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_POTATO:
            tig_art_item_id_create(69, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(69, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_VIAL_OF_DRAGONS_BLOOD:
            tig_art_item_id_create(70, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(70, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_NAME, 3619);
            scr.num = 2545;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x100000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_PASSION_ROOT:
            tig_art_item_id_create(67, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(67, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_NAME, 3609);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_CHATEAU_DE_BERON_BRANDY:
            tig_art_item_id_create(71, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(71, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 25);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_NAME, 3613);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_DWARVEN_SNUFF:
            tig_art_item_id_create(72, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(72, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 25);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_NAME, 3614);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ELVEN_SPRING_WATER:
            tig_art_item_id_create(73, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(73, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 25);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_NAME, 3615);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_EARL_GREY_TEA:
            tig_art_item_id_create(74, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(74, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 4);
            obj_field_int32_set(obj, OBJ_F_NAME, 3616);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ABSINTHE:
            tig_art_item_id_create(75, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(75, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 25);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 3);
            obj_field_int32_set(obj, OBJ_F_NAME, 3617);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_SWEET_CAKES:
            tig_art_item_id_create(76, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(76, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 3);
            obj_field_int32_set(obj, OBJ_F_NAME, 3618);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_VENDIGROTHIAN_ELIXIR:
            tig_art_item_id_create(77, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(77, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 161);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            break;
        case BP_VIVIFIER:
            tig_art_item_id_create(78, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(78, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -99);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 206);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            break;
        case BP_GREATER_HEALING:
            tig_art_item_id_create(80, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(80, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            scr.num = 30282;
            scr.hdr.counters = 0x50002550;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x300000);
            obj_field_int32_set(obj, OBJ_F_ITEM_AI_ACTION, 6);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_LIGHT_FATIGUE_RESTORE:
            tig_art_item_id_create(81, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(81, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            scr.num = 30282;
            scr.hdr.counters = 0x3201271E;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x300000);
            obj_field_int32_set(obj, OBJ_F_ITEM_AI_ACTION, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_GREATER_FATIGUE_RESTORE:
            tig_art_item_id_create(82, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(82, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            scr.num = 30282;
            scr.hdr.counters = 0x50012946;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x300000);
            obj_field_int32_set(obj, OBJ_F_ITEM_AI_ACTION, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_HEAL_POISON:
            tig_art_item_id_create(83, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(83, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            scr.num = 30282;
            scr.hdr.counters = 0x32022B78;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x300000);
            obj_field_int32_set(obj, OBJ_F_ITEM_AI_ACTION, 7);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_MORGANAS_TEARS:
            tig_art_item_id_create(84, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(84, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            scr.num = 30282;
            scr.hdr.counters = 0x50032D78;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x300000);
            obj_field_int32_set(obj, OBJ_F_ITEM_AI_ACTION, 6);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_FATIGUE_SLOWER:
            tig_art_item_id_create(86, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(86, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 210);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_ESSENCE_OF_INTELLECT:
            tig_art_item_id_create(2, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 211);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_POTION_OF_HASTE:
            tig_art_item_id_create(1, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(1, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 212);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_LIQUID_OF_SKIN_THICKENING:
            tig_art_item_id_create(87, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(87, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 213);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_KALISPIS_VENOM:
            tig_art_item_id_create(85, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(85, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 214);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            break;
        case BP_RESTORE_LIFE:
            tig_art_item_id_create(57, 0, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(57, 1, 0, 0, 0, 4, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -95);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 190);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        }
        break;
    case OBJ_TYPE_SCROLL:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 384);
        tig_art_item_id_create(0, 0, 0, 0, 0, 5, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
        tig_art_item_id_create(0, 1, 0, 0, 0, 5, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
        obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, 1);
        obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
        obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
        if (description < BP_KERGHANS_DEATH_SCROLL) {
            int spell = description - BP_SCROLL_OF_DISARM;
            int level = spell % 5;
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, spell);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 20 * (level + 1));
            if (level != 0) {
                obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 750 * level);
            } else {
                obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            }
        } else {
            switch (description) {
            case BP_KERGHANS_DEATH_SCROLL:
                obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 207);
                obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
                obj_field_int32_set(obj, OBJ_F_NAME, 4004);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            case BP_KERGHANS_ATTACK_SCROLL:
                obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 208);
                obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 100);
                obj_field_int32_set(obj, OBJ_F_NAME, 4005);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            case BP_SCROLL_OF_EXITING:
                obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 218);
                obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 30);
                obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
                break;
            case BP_MED_SPIDER_HEAL:
                obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 191);
                obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
                obj_field_int32_set(obj, OBJ_F_NAME, 4006);
                obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
                break;
            }
        }
        obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
        break;
    case OBJ_TYPE_KEY:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
        obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
        obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
        obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
        switch (description) {
        case BP_KEY:
            tig_art_item_id_create(0, 0, 0, 0, 0, 6, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 6, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_IRON_CLAN_KEY:
            tig_art_item_id_create(2, 0, 0, 0, 0, 6, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 6, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_KEY_KEY_ID, 62);
            break;
        case BP_VORMAN_MANOR_KEY:
            tig_art_item_id_create(0, 0, 0, 0, 0, 6, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 6, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_NAME, 4424);
            obj_field_int32_set(obj, OBJ_F_KEY_KEY_ID, 0);
            break;
        }
        break;
    case OBJ_TYPE_KEY_RING:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        tig_art_item_id_create(1, 0, 0, 0, 0, 7, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
        tig_art_item_id_create(1, 1, 0, 0, 0, 7, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
        obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
        obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
        obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
        obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
        obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
        break;
    case OBJ_TYPE_WRITTEN:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 128);
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
        switch (description) {
        case BP_BOOK:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            tig_art_item_id_create(2, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_NOTE:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 3);
            tig_art_item_id_create(8, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_TARANT_NEWSPAPER:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            tig_art_item_id_create(6, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_TELEGRAM:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 3);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 4);
            tig_art_item_id_create(9, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_GORADS_NOTE:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 1);
            obj_field_int32_set(obj, OBJ_F_NAME, 5212);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 1030);
            scr.num = 1146;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            scr.num = 1145;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_EXAMINE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            tig_art_item_id_create(8, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_IMAGE:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 4);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            tig_art_item_id_create(8, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_PAMPHLET:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            scr.num = 1832;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            tig_art_item_id_create(2, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_THE_LEGEND_OF_TERRE_D_VNT:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 0);
            obj_field_int32_set(obj, OBJ_F_NAME, 5229);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 1020);
            scr.num = 1891;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            tig_art_item_id_create(2, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_PROFESSOR_EAKINS_TELEGRAM:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 3);
            obj_field_int32_set(obj, OBJ_F_NAME, 5246);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 1050);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            tig_art_item_id_create(9, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_VENDIGROTH_NEWSPAPER:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            tig_art_item_id_create(6, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_INVIGORATOR_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_REANIMATOR_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4010);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_CLOCKWORK_PHYSICIAN_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4020);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_MIRACLE_CURE_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4030);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_MENTAL_INHIBITOR_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_NECROMIZER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4210);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_FORTIFIER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4220);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_FUEL_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4230);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_POTION_OF_PARALYSIS_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4240);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_LEMON_AND_POTATO_CHARGES_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4400);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_CHARGED_SWORD_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4410);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_FLOW_DISRUPTOR_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4420);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_TESLA_GUN_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4430);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_BELLRINGER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4440);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_ELECTRO_ARMOUR_MEDIUM_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4450);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_PYROTECHNIC_BOW_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4600);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_KNOCK_OUT_GAS_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4610);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_HALLUCINATION_GRENADE_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4620);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_ELECTROCUTION_GRENADE_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4630);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_GRENADE_LAUNCHER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4640);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_TIME_BOMB_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4650);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_CONCUSSION_GRENADE_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4660);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_PARALYSIS_GRENADE_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4670);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_MUSTARD_GAS_GRENADE_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4680);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_PLASTIQUE_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4690);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_DETONATOR_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4700);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_FLAME_THROWER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4710);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_MECHANIZED_GUN_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4800);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_ACID_GUN_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4820);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_ACCELERATOR_GUN_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4830);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_PYROTECHNIC_GUN_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4840);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_BLADE_LAUNCHER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4850);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_HIGH_VELOCITY_PISTOL_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4860);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_SCHRECKS_MULTI_BARRELED_PISTOL_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4870);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_LONG_RANGE_PISTOL_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4880);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_TRANQUILIZER_GUN_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 4890);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_POISON_ARACHNID_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_AUTOMATON_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5010);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_COMPOUND_BOW_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5020);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_ENVENOMED_BOW_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5030);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_MEDICAL_ARACHNID_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5040);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_ILLUMINATED_DECOY_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5050);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_EXPLOSIVE_DECOY_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5060);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_AUTOMATON_GUNNER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5070);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_GOGGLED_HELMET_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5080);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_MACHINED_PLATEMAIL_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5090);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_WHEEL_CLAN_SPECTACLES_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5200);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_ENVENOMED_SWORD_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5210);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_ENVENOMED_AXE_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5220);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_MINERS_HELMET_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5230);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_PYROTECHNIC_AXE_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5240);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_RIFLED_CANNON_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5250);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_MECHANICAL_DAGGER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5260);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_ELIXIR_OF_HYPNOTIC_SUGGESTION_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5400);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_BRAIN_BUILDER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5410);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_MUSCLE_MAKER_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5420);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        case BP_BULLETS_SCHEMATIC:
            obj_field_int32_set(obj, OBJ_F_WRITTEN_SUBTYPE, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_WRITTEN_TEXT_START_LINE, 5440);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            tig_art_item_id_create(7, 0, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 8, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            break;
        }
        break;
    case OBJ_TYPE_GENERIC:
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, description);
        obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_EFFECTS, description);
        tig_art_item_id_create(14, 0, 0, 0, 0, 9, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
        tig_art_item_id_create(14, 1, 0, 0, 0, 9, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
        obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
        switch (description) {
        case BP_MECHANIZED_ARACHNID:
            tig_art_item_id_create(14, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            scr.num = 1022;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_MISS, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 4000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_STILLWATER_TRAP_EMPTY:
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 384);
            tig_art_item_id_create(69, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(69, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_NAME, 5609);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_STILLWATER_TRAP_FULL:
            tig_art_item_id_create(70, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(70, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_NAME, 5610);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_METAL_PLATES:
            tig_art_item_id_create(28, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(28, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            break;
        case BP_ELECTRIC_LIGHT:
            tig_art_item_id_create(31, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(31, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 4096);
            break;
        case BP_FILAMENT:
            tig_art_item_id_create(32, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(32, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            break;
        case BP_LANTERN:
            tig_art_item_id_create(52, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(52, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 2048);
            break;
        case BP_CAPACITOR:
            tig_art_item_id_create(29, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(29, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            break;
        case BP_POTASSIUM_NITRATE:
            tig_art_item_id_create(0, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            break;
        case BP_COAL:
            tig_art_item_id_create(93, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(93, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_BRICK);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            break;
        case BP_MAGNESIUM:
            tig_art_item_id_create(43, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(43, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            break;
        case BP_METAL_SHAVINGS:
            tig_art_item_id_create(54, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(54, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            break;
        case BP_GUN_CHASSIS:
            tig_art_item_id_create(45, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(45, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            break;
        case BP_REVOLVER_CHAMBER:
            tig_art_item_id_create(46, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(46, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            break;
        case BP_SPIKE_TRAP:
            tig_art_item_id_create(15, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(15, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            scr.num = 30001;
            scr.hdr.counters &= 0xFFFF190F;
            scr.hdr.counters |= 0x190F;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 1048960);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 4);
            break;
        case BP_AUTO_SKELETON_KEY:
            tig_art_item_id_create(192, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(192, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -35);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_GENERIC_USAGE_BONUS, 10);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x2);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x180);
            break;
        case BP_LARGE_SPRING:
            tig_art_item_id_create(9, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(9, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_SMALL_SPRING:
            tig_art_item_id_create(13, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(13, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            break;
        case BP_LOCKPICKS:
            tig_art_item_id_create(10, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_GENERIC_USAGE_BONUS, 5);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x2);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x180);
            break;
        case BP_PURE_ORE:
            tig_art_item_id_create(63, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(63, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_NAME, 5622);
            break;
        case BP_IRON_ORE:
            tig_art_item_id_create(61, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(61, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 12);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_STEEL:
            tig_art_item_id_create(65, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(65, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_FINE_HILT_AND_GUARD:
            tig_art_item_id_create(59, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(59, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            break;
        case BP_THERMOMETER:
            tig_art_item_id_create(66, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(66, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 1);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            break;
        case BP_SMALL_STEAM_ENGINE:
            tig_art_item_id_create(7, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(7, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            break;
        case BP_LARGE_GEARS:
            tig_art_item_id_create(8, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(8, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 250);
            break;
        case BP_MECHANIZED_ARACHNID_POISON:
            tig_art_item_id_create(14, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            scr.num = 1343;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_MISS, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 4000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_ANCIENT_GUN_CHASSIS:
            tig_art_item_id_create(92, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(92, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            break;
        case BP_MITHRIL_ORE:
            tig_art_item_id_create(58, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(58, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_NAME, 5638);
            break;
        case BP_WINE_GLASS:
            tig_art_item_id_create(89, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(89, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            scr.num = 1436;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_EXAMINE, &scr);
            obj_field_int32_set(obj, OBJ_F_NAME, 5639);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            break;
        case BP_EMPTY_VIAL:
            tig_art_item_id_create(87, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(87, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            scr.num = 1435;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_EXAMINE, &scr);
            obj_field_int32_set(obj, OBJ_F_NAME, 5641);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            break;
        case BP_CRASH_SITE_CAMERA:
            tig_art_item_id_create(0, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_SMALL_STATUETTE:
            tig_art_item_id_create(2, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_CHEST_OF_GOLD:
            tig_art_item_id_create(4, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(4, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 6000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 6000);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 3000);
            break;
        case BP_BEAR_TRAP:
            tig_art_item_id_create(5, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(5, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            scr.num = 30001;
            scr.hdr.counters &= 0xFF0000;
            scr.hdr.counters |= 0x8C000A05;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 1048960);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 4);
            break;
        case BP_METAL_CLAMP:
            tig_art_item_id_create(6, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(6, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -65);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            break;
        case BP_TRAP_SPRINGER:
            tig_art_item_id_create(19, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(19, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 120);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 184);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 384);
            break;
        case BP_POCKET_WATCH_PARTS:
            tig_art_item_id_create(20, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(20, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -35);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 3);
            break;
        case BP_VASE:
            tig_art_item_id_create(21, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(21, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_MUSIC_BOX:
            tig_art_item_id_create(22, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(22, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_CANDLE_STICK:
            tig_art_item_id_create(23, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(23, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 15);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_OLD_GEARS:
            tig_art_item_id_create(27, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(27, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 130);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            break;
        case BP_ELECTRICAL_HARNESS:
            tig_art_item_id_create(30, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(30, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 8);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            break;
        case BP_LARGE_CAPACITOR:
            tig_art_item_id_create(35, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(35, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_TESLA_COIL:
            tig_art_item_id_create(38, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(38, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            break;
        case BP_BLACK_POWDER:
            tig_art_item_id_create(41, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(41, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -55);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            break;
        case BP_FIRE_OBSTRUCTION_1:
            tig_art_item_id_create(42, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(42, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 180);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            break;
        case BP_BREACH_LOADING_CHAMBER:
            tig_art_item_id_create(44, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(44, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            break;
        case BP_AUTO_LOADING_CHAMBER:
            tig_art_item_id_create(47, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(47, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 80);
            break;
        case BP_CLOCK_PARTS:
            tig_art_item_id_create(48, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(48, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_CLOCKWORK_DECOY_ITEM:
            tig_art_item_id_create(49, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(49, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            scr.num = 29017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_MISS, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x20);
            break;
        case BP_POCKET_WATCH:
            tig_art_item_id_create(50, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(50, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_SMALL_METAL_TUBE:
            tig_art_item_id_create(112, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(112, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            break;
        case BP_LEATHER_STRAPS:
            tig_art_item_id_create(53, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(53, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            break;
        case BP_ELECTRICAL_COMPONENT:
            tig_art_item_id_create(55, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(55, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            break;
        case BP_LOOKING_GLASS:
            tig_art_item_id_create(56, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(56, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_DWARVEN_ORE:
            tig_art_item_id_create(57, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(57, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -25);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            break;
        case BP_SPOOL_OF_HEAVY_WIRE:
            tig_art_item_id_create(60, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(60, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_OAK_AXE_HANDLE_GENERIC:
            tig_art_item_id_create(62, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(62, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_SHEET_METAL:
            tig_art_item_id_create(64, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(64, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 300);
            break;
        case BP_SHOVEL:
            tig_art_item_id_create(73, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(73, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_NAME, 5614);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 1048960);
            scr.num = 2942;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_CRYSTAL_BALL:
            tig_art_item_id_create(82, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(82, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 150);
            obj_field_int32_set(obj, OBJ_F_NAME, 5628);
            scr.num = 2947;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            break;
        case BP_ROUGH_CUT_SAPPHIRE:
            tig_art_item_id_create(83, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(83, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_ROUGH_CUT_EMERALD:
            tig_art_item_id_create(84, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(84, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_ROUGH_CUT_DIAMOND:
            tig_art_item_id_create(85, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(85, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_ROUGH_CUT_RUBY:
            tig_art_item_id_create(86, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(86, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 65);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_NAME, 5684);
            obj_field_int32_set(obj, OBJ_F_NAME, 5684);
            break;
        case BP_EXPLOSIVE_GRENADE:
            tig_art_item_id_create(119, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(119, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -60);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 175);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_AUTOMATON_NPC:
            tig_art_item_id_create(96, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(96, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            scr.num = 30008;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_MISS, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 4000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2000);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_DYNAMITE:
            tig_art_item_id_create(25, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(25, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_2, 176);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 384);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 4);
            break;
        case BP_BROMIDE:
            tig_art_item_id_create(98, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(98, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -35);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_POTASSIUM_CHLORIDE:
            tig_art_item_id_create(99, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(99, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -45);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_SMALL_ELECTRICAL_PARTS:
            tig_art_item_id_create(55, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(55, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_SALTPETER:
            tig_art_item_id_create(101, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(101, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            break;
        case BP_NITROGLYCERIN:
            tig_art_item_id_create(103, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(103, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            break;
        case BP_ELECTRICAL_COIL:
            tig_art_item_id_create(104, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(104, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -53);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_METAL_CAN:
            tig_art_item_id_create(106, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(106, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_ENGINE_MUFFLER:
            tig_art_item_id_create(108, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(108, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_METAL_CASING:
            tig_art_item_id_create(109, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(109, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_CHARCOAL:
            tig_art_item_id_create(111, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(111, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_BRICK);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_TOMS_FERTILIZER:
            tig_art_item_id_create(114, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(114, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -23);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_STEARIC_ACID:
            tig_art_item_id_create(115, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(115, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -38);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_LIQUID_SOAP:
            tig_art_item_id_create(116, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(116, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_BROKEN_FLINTLOCK_PISTOL:
            tig_art_item_id_create(117, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(117, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -8);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_COMPASS:
            tig_art_item_id_create(113, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(113, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_FLASH_GRENADE:
            tig_art_item_id_create(118, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(118, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 30);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 177);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_SMOKE_GRENADE:
            tig_art_item_id_create(120, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(120, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 35);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 178);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_STUN_GRENADE:
            tig_art_item_id_create(121, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(121, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 60);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 179);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_FIRE_OBSTRUCTION_2:
            tig_art_item_id_create(122, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(122, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -45);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 80);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 180);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_REVOLVER_PARTS:
            tig_art_item_id_create(117, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(117, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -15);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_DWARVEN_STEEL:
            tig_art_item_id_create(64, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(64, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 300);
            break;
        case BP_CAMERA:
            tig_art_item_id_create(0, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(0, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 384);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_COMPONENT_1:
            tig_art_item_id_create(128, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(128, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_COMPONENT_2:
            tig_art_item_id_create(129, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(129, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_JADE_WIZARD_STATUETTE:
            tig_art_item_id_create(2, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(2, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_DESCRIPTION_UNKNOWN, 29714);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 2097600);
            scr.num = 28019;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_AI_ACTION, 3);
            break;
        case BP_KATHORN_CRYSTAL:
            tig_art_item_id_create(130, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(130, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_NAME, 5693);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_KNOCK_OUT_GAS_GRENADE:
            tig_art_item_id_create(136, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(136, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 198);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_HALLUCINATION_GRENADE:
            tig_art_item_id_create(137, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(137, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -37);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 70);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 148);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_ELECTROCUTION_GRENADE:
            tig_art_item_id_create(138, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(138, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 199);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_CONCUSSION_GRENADE:
            tig_art_item_id_create(140, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(140, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -40);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 201);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_PARALYSIS_GRENADE:
            tig_art_item_id_create(141, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(141, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -45);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 40);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 202);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_MUSTARD_GAS_GRENADE:
            tig_art_item_id_create(142, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(142, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -35);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 30);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 35);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 16);
            break;
        case BP_BOAT_RIGGING:
            tig_art_item_id_create(147, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(147, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -22);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            break;
        case BP_NOISE_MAKER_DECOY:
            tig_art_item_id_create(135, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(135, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            break;
        case BP_CLOCKWORK_PHYSICIAN:
            tig_art_item_id_create(49, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(49, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            break;
        case BP_ILLUMINATED_DECOY:
        case BP_EXPLOSIVE_DECOY:
            tig_art_item_id_create(49, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(49, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 300);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_AUTOMATON_GUNNER:
            tig_art_item_id_create(96, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(96, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 4500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 350);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2200);
            scr.num = 30008;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_MISS, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_TIME_BOMB:
            tig_art_item_id_create(139, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(139, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -87);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_2, 220);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 384);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, 4);
            break;
        case BP_PLASTIQUE:
            tig_art_item_id_create(143, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(143, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PLANT);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 75);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_NAME, 5699);
            break;
        case BP_DETONATOR:
            tig_art_item_id_create(144, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(144, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 40);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 128);
            scr.num = 29019;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_MEDICAL_ARACHNID_NPC:
            tig_art_item_id_create(14, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 4200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1100);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_MINUTE_STEAM_WORKS:
            tig_art_item_id_create(148, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(148, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 150);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 500);
            break;
        case BP_CRUDE_LOCKPICKS:
            tig_art_item_id_create(10, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(10, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_GENERIC_USAGE_BONUS, 0);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x2);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x180);
            break;
        case BP_BANDAGES:
            tig_art_item_id_create(176, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(176, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_GENERIC_USAGE_BONUS, 0);
            obj_field_int32_set(obj, OBJ_F_GENERIC_USAGE_COUNT_REMAINING, 10);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x8);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x180);
            break;
        case BP_DEED_TO_THE_BESSIE_TOONE_MINE:
            tig_art_item_id_create(156, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(156, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_NAME, 6698);
            scr.num = 2631;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            break;
        case BP_LITANI:
            tig_art_item_id_create(158, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(158, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_NAME, 5682);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            break;
        case BP_HEARTSTONE:
            tig_art_item_id_create(151, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(151, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 500);
            obj_field_int32_set(obj, OBJ_F_NAME, 5683);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_MNURA_COIN:
            tig_art_item_id_create(157, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(157, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_NAME, 5691);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_LAVA_ROCK:
            tig_art_item_id_create(152, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(152, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 2);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_NAME, 5685);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 8);
            break;
        case BP_OLIVE_BRANCH:
            tig_art_item_id_create(153, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(153, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_WOOD);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 8);
            obj_field_int32_set(obj, OBJ_F_NAME, 5686);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            break;
        case BP_GEODE:
            tig_art_item_id_create(150, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(150, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 25);
            obj_field_int32_set(obj, OBJ_F_NAME, 5688);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 20);
            break;
        case BP_BLACK_DIAMOND:
            tig_art_item_id_create(149, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(149, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_STONE);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 500);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 20);
            obj_field_int32_set(obj, OBJ_F_NAME, 5687);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 3);
            break;
        case BP_CHEMISTRY_MANUALS:
            tig_art_item_id_create(159, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(159, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 750);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            scr.hdr.counters &= 0xFF;
            scr.hdr.counters |= 0x401A900;
            scr.num = 30017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            scr.num = 30018;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_REMOVE_ITEM, &scr);
            scr.num = 2914;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_EXPLOSIVES_MANUALS:
            tig_art_item_id_create(160, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(160, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 750);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            scr.hdr.counters &= 0xFF;
            scr.hdr.counters |= 0x401AB00;
            scr.num = 30017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            scr.num = 30018;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_REMOVE_ITEM, &scr);
            scr.num = 2916;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_HERBOLOGY_MANUALS:
            tig_art_item_id_create(162, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(162, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 750);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_HERBOLOGY);
            scr.hdr.counters &= 0xFF;
            scr.hdr.counters |= 0x401A800;
            scr.num = 30017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            scr.num = 30018;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_REMOVE_ITEM, &scr);
            scr.num = 2913;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_ELECTRICAL_MANUALS:
            tig_art_item_id_create(166, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(166, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 750);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_ELECTRIC);
            scr.hdr.counters &= 0xFF;
            scr.hdr.counters |= 0x401AA00;
            scr.num = 30017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            scr.num = 30018;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_REMOVE_ITEM, &scr);
            scr.num = 2915;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_THERAPEUTICS_MANUALS:
            tig_art_item_id_create(161, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(161, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 750);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_THERAPEUTICS);
            scr.hdr.counters &= 0xFF;
            scr.hdr.counters |= 0x401AF00;
            scr.num = 30017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            scr.num = 30018;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_REMOVE_ITEM, &scr);
            scr.num = 2920;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_MECHANICAL_MANUALS:
            tig_art_item_id_create(165, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(165, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 750);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            scr.hdr.counters &= 0xFF;
            scr.hdr.counters |= 0x401AD00;
            scr.num = 30017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            scr.num = 30018;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_REMOVE_ITEM, &scr);
            scr.num = 2918;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_SMITHY_MANUALS:
            tig_art_item_id_create(163, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(163, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 750);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            scr.hdr.counters &= 0xFF;
            scr.hdr.counters |= 0x401AE00;
            scr.num = 30017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            scr.num = 30018;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_REMOVE_ITEM, &scr);
            scr.num = 2919;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_GUNSMITHY_MANUALS:
            tig_art_item_id_create(164, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(164, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_PAPER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 750);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 50);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 200);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_GUN);
            scr.hdr.counters &= 0xFF;
            scr.hdr.counters |= 0x401AC00;
            scr.num = 30017;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            scr.num = 30018;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_REMOVE_ITEM, &scr);
            scr.num = 2917;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            break;
        case BP_VENDIGROTHIAN_SHEET_METAL:
            tig_art_item_id_create(169, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(169, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 90);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 300);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_SMITHY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -90);
            break;
        case BP_UNKNOWN_CHEMICAL_COMPOUND:
            tig_art_item_id_create(170, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(170, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_POWDER);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 20);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_CHEMISTRY);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -85);
            break;
        case BP_VOID_ANIMAL_CARCASS:
            tig_art_item_id_create(191, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(191, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 5);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 100);
            obj_field_int32_set(obj, OBJ_F_NAME, 5620);
            scr.num = 30283;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_INSERT_ITEM, &scr);
            break;
        case BP_AUTHENTIC_STILLWATER_GIANT_PELT:
            tig_art_item_id_create(71, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(71, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 50);
            obj_field_int32_set(obj, OBJ_F_NAME, 5613);
            break;
        case BP_EMERALD:
            tig_art_item_id_create(179, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(179, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 100);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_RUBY:
            tig_art_item_id_create(180, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(180, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 150);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_NAME, 5684);
            break;
        case BP_SAPPHIRE:
            tig_art_item_id_create(181, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(181, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_DIAMOND:
            tig_art_item_id_create(178, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(178, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 250);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_STAR_RUBY:
            tig_art_item_id_create(182, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(182, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 350);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_NAME, 5684);
            break;
        case BP_STAR_SAPPHIRE:
            tig_art_item_id_create(183, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(183, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 400);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            break;
        case BP_MEDICAL_KIT:
            tig_art_item_id_create(177, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(177, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 200);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 90);
            obj_field_int32_set(obj, OBJ_F_GENERIC_USAGE_BONUS, 0);
            obj_field_int32_set(obj, OBJ_F_GENERIC_USAGE_COUNT_REMAINING, 60);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x8);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x180);
            break;
        case BP_KEROSENE:
            tig_art_item_id_create(185, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(185, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -70);
            break;
        case BP_RAG:
            tig_art_item_id_create(OBJ_F_KEY_KEY_ID, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(OBJ_F_KEY_KEY_ID, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_CLOTH);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 1);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            break;
        case BP_MOLOTOV_COCKTAIL:
            tig_art_item_id_create(184, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(184, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_GLASS);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 0);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 30);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 5);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_EXPLOSIVES);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -20);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_1, 219);
            obj_field_int32_set(obj, OBJ_F_ITEM_SPELL_MANA_STORE, -1);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, 65664);
            break;
        case BP_WISP_ESSENCE:
            tig_art_item_id_create(188, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(188, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 10);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_NAME, 5643);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_VOLARS_WISP_ESSENCE:
            tig_art_item_id_create(187, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(187, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_LIQUID);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 50);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 10);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 2);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, 25);
            obj_field_int32_set(obj, OBJ_F_NAME, 5642);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x1);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        case BP_MEDICAL_ARACHINID:
            tig_art_item_id_create(14, 0, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            tig_art_item_id_create(14, 1, 0, 0, 0, 9, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_ITEM_INV_AID, art_id);
            scr.num = 30300;
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HIT, &scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_MISS, &scr);
            obj_field_int32_set(obj, OBJ_F_ITEM_DISCIPLINE, TECH_MECHANICAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY, -100);
            obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
            obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, 4000);
            obj_field_int32_set(obj, OBJ_F_HP_PTS, 80);
            obj_field_int32_set(obj, OBJ_F_ITEM_WEIGHT, 1000);
            obj_field_int32_set(obj, OBJ_F_ITEM_FLAGS, obj_field_int32_get(obj, OBJ_F_ITEM_FLAGS) | 0x80000);
            obj_field_int32_set(obj, OBJ_F_GENERIC_FLAGS, obj_field_int32_get(obj, OBJ_F_GENERIC_FLAGS) | 0x20);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 0);
            break;
        }
        break;
    case OBJ_TYPE_PC:
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
        obj_field_int32_set(obj, OBJ_F_CRITTER_CRIT_HIT_CHART, CRIT_BODY_TYPE_BIPED);
        tig_art_light_id_create(6, 0, 0, 1, &rgb);
        obj_field_int32_set(obj, OBJ_F_SHADOW, rgb);
        switch (description) {
        case BP_GENERIC_PC:
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HUMAN, GENDER_MALE, RACE_HUMAN);
            obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, "none");
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1005);
            object_hp_damage_set(obj, 0);
            break;
        case BP_MERWIN_TUMBLEBROOK:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 76);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HALFLING, GENDER_MALE, RACE_HALFLING);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1017);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 108);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 39);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1039);
            object_hp_damage_set(obj, 0);
            break;
        case BP_GODFREY_CASTLEBURGER:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 77);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HALFLING, GENDER_MALE, RACE_GNOME);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1002);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 24);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 40);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1040);
            object_hp_damage_set(obj, 0);
            break;
        case BP_HORACE_MCGINLEY:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 78);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HUMAN, GENDER_MALE, RACE_HALF_ELF);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1032);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 20);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 41);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1041);
            object_hp_damage_set(obj, 0);
            break;
        case BP_MUCK_EVIL_EYE:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 79);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HALF_OGRE, GENDER_MALE, RACE_HALF_OGRE);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1027);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 25);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 42);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1042);
            object_hp_damage_set(obj, 0);
            break;
        case BP_DREN_LELOR:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 80);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_ELF, GENDER_MALE, RACE_ELF);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1033);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 20);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 43);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1043);
            object_hp_damage_set(obj, 0);
            break;
        case BP_SOLOMON_DOONE:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 81);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HUMAN, GENDER_MALE, RACE_HUMAN);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1005);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 22);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 44);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1044);
            object_hp_damage_set(obj, 0);
            break;
        case BP_MERIK_LUGGERTON:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 82);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HUMAN, GENDER_MALE, RACE_HALF_ORC);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1030);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 20);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 45);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1045);
            object_hp_damage_set(obj, 0);
            break;
        case BP_LUGARD_BLOODSTONE:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 83);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_DWARF, GENDER_MALE, RACE_DWARF);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1020);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 24);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 46);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1046);
            object_hp_damage_set(obj, 0);
            break;
        case BP_VICTORIA_WARRINGTON:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 84);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HUMAN, GENDER_FEMALE, RACE_HUMAN);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1025);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 23);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 47);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1047);
            object_hp_damage_set(obj, 0);
            break;
        case BP_BELAN_TSERAA:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 85);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_ELF, GENDER_FEMALE, RACE_ELF);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1024);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 22);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 48);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1048);
            object_hp_damage_set(obj, 0);
            break;
        case BP_CLARISSE_VORAK:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 86);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HUMAN, GENDER_FEMALE, RACE_HALF_ORC);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1031);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 26);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 49);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1049);
            object_hp_damage_set(obj, 0);
            break;
        case BP_KEREE_MELANGE:
            obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, 87);
            object_set_gender_and_race(obj, TIG_ART_CRITTER_BODY_TYPE_HUMAN, GENDER_FEMALE, RACE_HALF_ELF);
            str = auto_level_scheme_name(obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME));
            if (str != NULL) {
                obj_field_string_set(obj, OBJ_F_PC_PLAYER_NAME, str);
            }
            obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, 1029);
            obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, 26);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND, 50);
            obj_field_int32_set(obj, OBJ_F_PC_BACKGROUND_TEXT, 1050);
            object_hp_damage_set(obj, 0);
            break;
        default:
            object_hp_damage_set(obj, 0);
            break;
        }
        break;
    case OBJ_TYPE_NPC:
        if (description >= BP_UNIQUE_NPC_BEGIN && description < BP_UNIQUE_NPC_END) {
            sub_49B010(obj, description);
        } else if (description >= BP_MONSTER_BEGIN && description < BP_MONSTER_END) {
            sub_49B220(obj, description);
        } else {
            sub_49AFF0(obj, description);
        }
        break;
    case OBJ_TYPE_TRAP:
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_METAL);
        obj_field_int32_set(obj, OBJ_F_HP_PTS, 100);
        obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, 16);
        obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | 0x100);
        switch (description) {
        case BP_MAGICKAL_TRAP:
            tig_art_eye_candy_id_create(0x163, 0, 0, 0, 2, 0, 4, &art_id);
            art_id = tig_art_id_frame_set(art_id, -1);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            scr.num = 30000;
            script_load_hdr(&scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_MECHANICAL_TRAP:
            tig_art_eye_candy_id_create(0x164, 0, 0, 0, 2, 0, 4, &art_id);
            art_id = tig_art_id_frame_set(art_id, -1);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            scr.num = 30001;
            script_load_hdr(&scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ARROW_TRAP:
            tig_art_eye_candy_id_create(0x15Fu, 0, 0, 0, 2, 0, 4, &art_id);
            art_id = tig_art_id_frame_set(art_id, -1);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            scr.num = 30002;
            script_load_hdr(&scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_BULLET_TRAP:
            tig_art_eye_candy_id_create(0x162, 0, 0, 0, 2, 0, 4, &art_id);
            art_id = tig_art_id_frame_set(art_id, -1);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            scr.num = 30003;
            script_load_hdr(&scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_FIRE_TRAP:
            tig_art_eye_candy_id_create(0x161, 0, 0, 0, 2, 0, 4, &art_id);
            art_id = tig_art_id_frame_set(art_id, -1);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            scr.num = 30004;
            script_load_hdr(&scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_ELECTRICAL_TRAP:
            tig_art_eye_candy_id_create(0x160, 0, 0, 0, 2, 0, 4, &art_id);
            art_id = tig_art_id_frame_set(art_id, -1);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            scr.num = 30005;
            script_load_hdr(&scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_POISON_TRAP:
            tig_art_eye_candy_id_create(0x165, 0, 0, 0, 2, 0, 4, &art_id);
            art_id = tig_art_id_frame_set(art_id, -1);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            scr.num = 30006;
            script_load_hdr(&scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 1);
            break;
        case BP_SOURCE_TRAP:
            tig_art_scenery_id_create(0, 10, 0, 0, 0, &art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
            scr.num = 30007;
            script_load_hdr(&scr);
            obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_USE, &scr);
            obj_field_int32_set(obj, OBJ_F_CATEGORY, 2);
            break;
        }
        break;
    }
}

// 0x49AFF0
void sub_49AFF0(int64_t obj, int description)
{
    sub_49B340(obj, description);
}

// 0x49B010
void sub_49B010(int64_t obj, int description)
{
    tig_art_id_t art_id;
    Script scr;
    int exp;

    obj_field_int32_set(obj, OBJ_F_CRITTER_CRIT_HIT_CHART, CRIT_BODY_TYPE_BIPED);

    switch (description) {
    case BP_BASIC_FEMALE_NPC:
        sub_49AFF0(obj, 17081);
        obj_field_int32_set(obj, OBJ_F_CRITTER_DESCRIPTION_UNKNOWN, 27309);
        tig_art_unique_npc_id_create(11, 0, 0, 4, 0, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
        break;
    case BP_BASIC_MALE_NPC:
        sub_49AFF0(obj, 17082);
        obj_field_int32_set(obj, OBJ_F_CRITTER_DESCRIPTION_UNKNOWN, 27310);
        tig_art_unique_npc_id_create(2, 0, 0, 4, 0, 0, 0, &art_id);
        obj_field_int32_set(obj, OBJ_F_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
        break;
    case BP_PAPERBOY:
        sub_49AFF0(obj, 17082);
        obj_field_int32_set(obj, OBJ_F_CRITTER_DESCRIPTION_UNKNOWN, 27311);
        scr.num = 1498;
        obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_DIALOG, &scr);
        scr.num = 1499;
        obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_FIRST_HEARTBEAT, &scr);
        break;
    case BP_SOUL_SLAVE:
        sub_49AFF0(obj, 17082);
        scr.num = 30117;
        obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HEARTBEAT, &scr);
        scr.num = 30118;
        obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_DYING, &scr);
        break;
    case BP_PALADIN_SLAVE:
        sub_49AFF0(obj, 17082);
        scr.num = 30119;
        obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_HEARTBEAT, &scr);
        scr.num = 30120;
        obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, SAP_DYING, &scr);
        break;
    default:
        sub_49B220(obj, description);
        break;
    }

    exp = critter_xp_worth(obj);
    obj_field_int32_set(obj, OBJ_F_NPC_EXPERIENCE_WORTH, exp);
    obj_field_int32_set(obj, OBJ_F_NPC_EXPERIENCE_POOL, exp);
    object_hp_damage_set(obj, 0);
}

// 0x49B220
void sub_49B220(int64_t obj, int description)
{
    sub_49B340(obj, description);
}

// 0x49B240
void sub_49B240(int64_t obj, int f, int percent)
{
    int value;

    value = obj_field_int32_get(obj, f);
    obj_field_int32_set(obj, f, value + value * percent / 100);
}

// 0x49B290
int sub_49B290(int64_t obj)
{
    int64_t prototype_handle;
    ObjectID oid;

    prototype_handle = obj_field_handle_get(obj, OBJ_F_PROTOTYPE_HANDLE);
    oid = obj_get_id(prototype_handle);

    return oid.d.a - 20;
}

// 0x49B2E0
void sub_49B2E0(int64_t obj)
{
    int complexity;
    int worth;

    complexity = obj_field_int32_get(obj, OBJ_F_ITEM_MAGIC_TECH_COMPLEXITY);
    if (complexity != 0) {
        worth = obj_field_int32_get(obj, OBJ_F_ITEM_WORTH);
        obj_field_int32_set(obj, OBJ_F_ITEM_WORTH, worth + 3 * complexity * complexity / 10);
    }
}

// 0x49B340
void sub_49B340(int64_t obj, int description)
{
    TigFile* stream;
    int type;
    int v1;
    int exp;
    tig_art_id_t art_id;
    unsigned int rgb;
    int gender;
    int race;

    if (description >= BP_MONSTER_BEGIN && description < BP_MONSTER_END) {
        stream = tig_file_fopen("rules\\monster.txt", "rt");
        type = 2;
    } else if (description >= BP_UNIQUE_NPC_BEGIN && description < BP_UNIQUE_NPC_END) {
        stream = tig_file_fopen("rules\\unique.txt", "rt");
        type = 1;
    } else if (description >= BP_NPC_BEGIN && description < BP_NPC_END) {
        stream = tig_file_fopen("rules\\npc.txt", "rt");
        type = 0;
    } else {
        return;
    }

    if (stream == NULL) {
        return;
    }

    v1 = sub_49B5A0(stream, 0, type);
    while (v1 != description && v1 != -1) {
        v1 = sub_49B5A0(stream, 0, type);
    }

    if (v1 != -1) {
        obj_field_int32_set(obj, OBJ_F_DESCRIPTION, description);
        obj_field_int32_set(obj, OBJ_F_CRITTER_DESCRIPTION_UNKNOWN, description);
        sub_49B5A0(stream, obj, type);

        exp = critter_xp_worth(obj);
        obj_field_int32_set(obj, OBJ_F_NPC_EXPERIENCE_WORTH, exp);
        obj_field_int32_set(obj, OBJ_F_NPC_EXPERIENCE_POOL, exp);
        object_hp_damage_set(obj, 0);

        art_id = critter_light_get(obj, &rgb);
        obj_field_int32_set(obj, OBJ_F_LIGHT_AID, art_id);
        obj_field_int32_set(obj, OBJ_F_LIGHT_COLOR, rgb);

        if (type == 0) {
            gender = stat_base_get(obj, STAT_GENDER);
            race = stat_base_get(obj, STAT_RACE);
            obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 10 * (gender + 2 * race + 1));
            if (race == RACE_ORC) {
                tig_art_monster_id_create(2, 0, 0, 0, 4, 0, 0, 0, &art_id);
            } else {
                tig_art_critter_id_create(gender, race_to_body_type_tbl[race], 0, 0, 0, 4, 0, 0, 0, &art_id);
            }
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
        }

        if ((obj_field_int32_get(obj, OBJ_F_CRITTER_FLAGS) & 0x1) != 0) {
            art_id = obj_field_int32_get(obj, OBJ_F_CURRENT_AID);
            art_id = critter_conceal_aid(art_id);
            obj_field_int32_set(obj, OBJ_F_AID, art_id);
            obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
        }
    }

    tig_file_fclose(stream);
}

// 0x49B5A0
int sub_49B5A0(TigFile* stream, int64_t obj, int type)
{
    tig_art_id_t art_id;
    char str[1000];
    Script scr;
    int fld;
    int v2;
    int v3;
    int v4;

    if (obj != 0) {
        obj_field_int32_set(obj, OBJ_F_CRITTER_CRIT_HIT_CHART, CRIT_BODY_TYPE_BIPED);
        obj_field_int32_set(obj, OBJ_F_MATERIAL, MATERIAL_FLESH);
        obj_field_int32_set(obj, OBJ_F_NPC_REACTION_BASE, 50);
        obj_field_int32_set(obj, OBJ_F_NPC_WAIT, 2);
        tig_art_light_id_create(6, 0, 0, 1, &art_id);
        obj_field_int32_set(obj, OBJ_F_SHADOW, art_id);
        obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, 250);
    }

    while (tig_file_fgets(str, sizeof(str), stream) != NULL) {
        if (sub_49BB70(str, &fld, &v2, &v3, &v4)) {
            if (fld == PROTO_F_DESCRIPTION) {
                return v2;
            }

            if (obj != 0) {
                switch (fld) {
                case PROTO_F_INTERNAL_NAME:
                    obj_field_int32_set(obj, OBJ_F_NAME, v2);
                    break;
                case PROTO_F_LEVEL:
                    stat_base_set(obj, STAT_LEVEL, v2);
                    break;
                case PROTO_F_ART_NUMBER_AND_PALETTE:
                    switch (type) {
                    case 1:
                        tig_art_unique_npc_id_create(v2, 0, 0, 4, 0, 0, v3, &art_id);
                        obj_field_int32_set(obj, OBJ_F_AID, art_id);
                        obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                        break;
                    case 2:
                        tig_art_monster_id_create(v2, 0, 0, 0, 4, 0, 0, v3, &art_id);
                        obj_field_int32_set(obj, OBJ_F_AID, art_id);
                        obj_field_int32_set(obj, OBJ_F_CURRENT_AID, art_id);
                        break;
                    }
                    break;
                case PROTO_F_SCALE:
                    obj_field_int32_set(obj, OBJ_F_BLIT_SCALE, v2);
                    break;
                case PROTO_F_ALIGNMENT:
                    stat_base_set(obj, STAT_ALIGNMENT, v2);
                    break;
                case PROTO_F_CRITTER_FLAG:
                    obj_field_int32_set(obj, OBJ_F_CRITTER_FLAGS, obj_field_int32_get(obj, OBJ_F_CRITTER_FLAGS) | v2);
                    break;
                case PROTO_F_CRITTER2_FLAG:
                    obj_field_int32_set(obj, OBJ_F_CRITTER_FLAGS2, obj_field_int32_get(obj, OBJ_F_CRITTER_FLAGS2) | v2);
                    break;
                case PROTO_F_NPC_FLAG:
                    obj_field_int32_set(obj, OBJ_F_NPC_FLAGS, obj_field_int32_get(obj, OBJ_F_NPC_FLAGS) | v2);
                    break;
                case PROTO_F_BLIT_FLAG:
                    obj_field_int32_set(obj, OBJ_F_BLIT_FLAGS, obj_field_int32_get(obj, OBJ_F_BLIT_FLAGS) | v2);
                    break;
                case PROTO_F_SPELL_FLAG:
                    obj_field_int32_set(obj, OBJ_F_SPELL_FLAGS, obj_field_int32_get(obj, OBJ_F_SPELL_FLAGS) | v2);
                    break;
                case PROTO_F_HIT_CHART:
                    obj_field_int32_set(obj, OBJ_F_CRITTER_CRIT_HIT_CHART, v2);
                    break;
                case PROTO_F_BASIC_STAT:
                    stat_base_set(obj, v2, v3);
                    break;
                case PROTO_F_SPELL:
                    spell_add(obj, v2, true);
                    break;
                case PROTO_F_FACTION:
                    obj_field_int32_set(obj, OBJ_F_NPC_FACTION, v2);
                    break;
                case PROTO_F_AI_PACKET:
                    obj_field_int32_set(obj, OBJ_F_NPC_AI_DATA, v2);
                    break;
                case PROTO_F_MATERIAL:
                    obj_field_int32_set(obj, OBJ_F_MATERIAL, v2);
                    break;
                case PROTO_F_HIT_POINTS:
                    sub_49BB40(obj, v2);
                    break;
                case PROTO_F_SCRIPT:
                    scr.num = v3;
                    scr.hdr.counters = v4;
                    obj_arrayfield_script_set(obj, OBJ_F_SCRIPTS_IDX, v2, &scr);
                    break;
                case PROTO_F_DAMAGE_RESISTANCE:
                    obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_NORMAL, v2);
                    break;
                case PROTO_F_FIRE_RESISTANCE:
                    obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_FIRE, v2);
                    break;
                case PROTO_F_ELECTRICAL_RESISTANCE:
                    obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_ELECTRICAL, v2);
                    break;
                case PROTO_F_POISON_RESISTANCE:
                    obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_POISON, v2);
                    break;
                case PROTO_F_MAGIC_RESISTANCE:
                    obj_arrayfield_int32_set(obj, OBJ_F_RESISTANCE_IDX, RESISTANCE_TYPE_MAGIC, v2);
                    break;
                case PROTO_F_NORMAL_DAMAGE:
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_NORMAL * 2, v2);
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_NORMAL * 2 + 1, v3);
                    break;
                case PROTO_F_POISON_DAMAGE:
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_POISON * 2, v2);
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_POISON * 2 + 1, v3);
                    break;
                case PROTO_F_ELECTRICAL_DAMAGE:
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_ELECTRICAL * 2, v2);
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_ELECTRICAL * 2 + 1, v3);
                    break;
                case PROTO_F_FIRE_DAMAGE:
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_FIRE * 2, v2);
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_FIRE * 2 + 1, v3);
                    break;
                case PROTO_F_FATIGUE_DAMAGE:
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_FATIGUE * 2, v2);
                    obj_arrayfield_uint32_set(obj, OBJ_F_NPC_DAMAGE_IDX, DAMAGE_TYPE_FATIGUE * 2 + 1, v3);
                    break;
                case PROTO_F_SOUND_BANK:
                    obj_field_int32_set(obj, OBJ_F_SOUND_EFFECT, v2);
                    break;
                case PROTO_F_INVENTORY_SOURCE:
                    obj_field_int32_set(obj, OBJ_F_CRITTER_INVENTORY_SOURCE, v2);
                    break;
                case PROTO_F_PORTRAIT:
                    obj_field_int32_set(obj, OBJ_F_CRITTER_PORTRAIT, v2);
                    break;
                case PROTO_F_RETAIL_PRICE_MULTIPLIER:
                    obj_field_int32_set(obj, OBJ_F_NPC_RETAIL_PRICE_MULTIPLIER, v2);
                    break;
                case PROTO_F_SOCIAL_CLASS:
                    critter_social_class_set(obj, v2);
                    break;
                case PROTO_F_OBJECT_FLAG:
                    obj_field_int32_set(obj, OBJ_F_FLAGS, obj_field_int32_get(obj, OBJ_F_FLAGS) | v2);
                    break;
                case PROTO_F_AUTO_LEVEL_SCHEME:
                    obj_field_int32_set(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME, v2);
                    break;
                case PROTO_F_CATEGORY:
                    obj_field_int32_set(obj, OBJ_F_CATEGORY, v2);
                    break;
                }
            }
        }
    }

    return -1;
}

// 0x49BB40
void sub_49BB40(int64_t obj, int a2)
{
    object_hp_adj_set(obj, object_hp_adj_get(obj) + a2 - object_hp_max(obj));
}

// 0x49BB70
bool sub_49BB70(const char* str, int* fld_ptr, int* a3, int* a4, int* a5)
{
    int fld;
    size_t pos;
    int stat;
    int spl;
    const char* name;
    int v1;
    int v2;
    int v3;
    int v4;

    for (fld = 0; fld < PROTO_F_COUNT; fld++) {
        pos = strlen(off_5B38C8[fld]) + 1;
        if (SDL_strncasecmp(str, off_5B38C8[fld], pos - 1) == 0) {
            break;
        }
    }

    if (fld == PROTO_F_COUNT) {
        return false;
    }

    *fld_ptr = fld;

    while (str[pos] == ':' || str[pos] == ' ') {
        pos++;
    }

    if (str[pos] == '\0') {
        tig_debug_printf("Proto read: field with no data %s\n", str);
    }

    str += pos;

    switch (fld) {
    case PROTO_F_ART_NUMBER_AND_PALETTE:
    case PROTO_F_NORMAL_DAMAGE:
    case PROTO_F_POISON_DAMAGE:
    case PROTO_F_ELECTRICAL_DAMAGE:
    case PROTO_F_FIRE_DAMAGE:
    case PROTO_F_FATIGUE_DAMAGE:
        sscanf(str, "%d %d", a3, a4);
        return true;
    case PROTO_F_CRITTER_FLAG:
        *a3 = sub_49BF10(str, obj_flags_ocf, OCF_COUNT);
        return true;
    case PROTO_F_CRITTER2_FLAG:
        *a3 = sub_49BF10(str, obj_flags_ocf2, OCF2_COUNT);
        return true;
    case PROTO_F_NPC_FLAG:
        *a3 = sub_49BF10(str, obj_flags_onf, ONF_COUNT);
        return true;
    case PROTO_F_BLIT_FLAG:
        *a3 = sub_49BF10(str, off_5B395C, sizeof(off_5B395C) / sizeof(off_5B395C[0]));
        return true;
    case PROTO_F_BASIC_STAT:
        for (stat = STAT_STRENGTH; stat <= STAT_CHARISMA; stat++) {
            name = stat_name(stat);
            pos = strlen(name);
            if (SDL_strncasecmp(str, name, pos) == 0) {
                *a3 = stat;
                *a4 = atoi(str + pos);
                return true;
            }
        }
        for (stat = STAT_MAGICK_POINTS; stat <= STAT_RACE; stat++) {
            name = stat_name(stat);
            pos = strlen(name);
            if (SDL_strncasecmp(str, name, pos) == 0) {
                *a3 = stat;
                *a4 = atoi(str + pos);
                return true;
            }
        }
        tig_debug_printf("Proto read: unknown stat %s\n", str);
        return true;
    case PROTO_F_SPELL:
        for (spl = 0; spl < SPELL_COUNT; spl++) {
            name = spell_name(spl);
            pos = strlen(name);
            if (SDL_strncasecmp(str, name, pos) == 0) {
                *a3 = spl;
                *a4 = atoi(str + pos);
                return true;
            }
        }
        tig_debug_printf("Proto read: unknown spell %s\n", str);
        return true;
    case PROTO_F_SCRIPT:
        sscanf(str, "%d %d %d %d %d %d", a3, a4, &v1, &v2, &v3, &v4);
        *a5 = v1 | (v2 << 8) | (v3 << 16) | (v4 << 24);
        return true;
    case PROTO_F_OBJECT_FLAG:
        *a3 = sub_49BF10(str, obj_flags_of, OF_COUNT);
        return true;
    default:
        *a3 = atoi(str);
        return true;
    }
}

// 0x49BF10
int sub_49BF10(const char* str, const char** identifiers, int size)
{
    int index;

    for (index = 0; index < size; index++) {
        if (SDL_strncasecmp(str, identifiers[index], strlen(identifiers[index])) == 0) {
            return 1 << index;
        }
    }

    tig_debug_printf("Proto read: unknown flag %s\n", str);
    return 0;
}

// 0x49C060
void sub_49C060(int64_t obj, TigFile* stream, int type)
{
    char description[2000];
    int value;
    tig_art_id_t art_id;
    int stat;
    int college;
    int num_spl;
    int spl;
    int index;
    int scr[3];
    int min_damage;
    int max_damage;

    object_examine(obj, obj, description);
    tig_file_fprintf(stream, "%s: %d   // %s\n",
        off_5B38C8[PROTO_F_DESCRIPTION],
        obj_field_int32_get(obj, OBJ_F_DESCRIPTION),
        description);

    value = obj_field_int32_get(obj, OBJ_F_NAME);
    if (value != 0) {
        tig_file_fprintf(stream, "%s: %d\n",
            off_5B38C8[PROTO_F_INTERNAL_NAME],
            value);
    }

    tig_file_fprintf(stream, "%s: %d\n",
        off_5B38C8[PROTO_F_LEVEL],
        stat_level_get(obj, STAT_LEVEL));

    art_id = obj_field_int32_get(obj, OBJ_F_CURRENT_AID);
    switch (type) {
    case 1:
        tig_file_fprintf(stream, "%s: %d %d\n",
            off_5B38C8[PROTO_F_ART_NUMBER_AND_PALETTE],
            tig_art_num_get(art_id),
            tig_art_id_palette_get(art_id));
        break;
    case 2:
        tig_file_fprintf(stream, "%s: %d %d\n",
            off_5B38C8[PROTO_F_ART_NUMBER_AND_PALETTE],
            tig_art_monster_id_specie_get(art_id),
            tig_art_id_palette_get(art_id));
        break;
    default:
        tig_file_fprintf(stream, "%s: %s %d\n",
            off_5B38C8[PROTO_F_BASIC_STAT],
            stat_name(STAT_GENDER),
            stat_base_get(obj, STAT_GENDER));
        tig_file_fprintf(stream, "%s: %s %d\n",
            off_5B38C8[PROTO_F_BASIC_STAT],
            stat_name(STAT_RACE),
            stat_base_get(obj, STAT_RACE));
        break;
    }

    value = obj_field_int32_get(obj, OBJ_F_BLIT_SCALE);
    if (value != 100) {
        tig_file_fprintf(stream, "%s: %d\n",
            off_5B38C8[PROTO_F_SCALE],
            value);
    }

    value = stat_level_get(obj, STAT_ALIGNMENT);
    if (value != 0) {
        tig_file_fprintf(stream, "%s: %d\n",
            off_5B38C8[PROTO_F_ALIGNMENT],
            value);
    }

    sub_49C610(stream,
        off_5B38C8[PROTO_F_CRITTER_FLAG],
        obj_field_int32_get(obj, OBJ_F_CRITTER_FLAGS),
        obj_flags_ocf,
        OCF_COUNT);

    sub_49C610(stream,
        off_5B38C8[PROTO_F_CRITTER2_FLAG],
        obj_field_int32_get(obj, OBJ_F_CRITTER_FLAGS2),
        obj_flags_ocf2,
        OCF2_COUNT);

    sub_49C610(stream,
        off_5B38C8[PROTO_F_NPC_FLAG],
        obj_field_int32_get(obj, OBJ_F_NPC_FLAGS),
        obj_flags_onf,
        ONF_COUNT);

    sub_49C610(stream,
        off_5B38C8[PROTO_F_BLIT_FLAG],
        obj_field_int32_get(obj, OBJ_F_BLIT_FLAGS),
        off_5B395C,
        sizeof(off_5B395C) / sizeof(off_5B395C[0]));

    sub_49C610(stream,
        off_5B38C8[PROTO_F_SPELL_FLAG],
        obj_field_int32_get(obj, OBJ_F_SPELL_FLAGS),
        obj_flags_ofs,
        OFS_COUNT);

    value = obj_field_int32_get(obj, OBJ_F_CRITTER_CRIT_HIT_CHART);
    if (value != CRIT_BODY_TYPE_BIPED) {
        tig_file_fprintf(stream, "%s: %d\n",
            off_5B38C8[PROTO_F_HIT_CHART],
            value);
    }

    for (stat = STAT_STRENGTH; stat <= STAT_CHARISMA; stat++) {
        value = stat_base_get(obj, stat);
        if (value != 8) {
            tig_file_fprintf(stream, "%s: %s %d\n",
                off_5B38C8[PROTO_F_BASIC_STAT],
                stat_name(stat),
                value);
        }
    }

    // FIXME: Does not include STAT_MAGICK_POINTS - STAT_RACE range which is
    // parsed.

    for (college = 0; college < COLLEGE_COUNT; college++) {
        num_spl = spell_college_level_get(obj, college);
        for (spl = 0; spl < num_spl; spl++) {
            tig_file_fprintf(stream, "%s: %s\n",
                off_5B38C8[PROTO_F_SPELL],
                spell_name(college * 5 + spl));
        }
    }

    tig_file_fprintf(stream, "%s: %d\n",
        off_5B38C8[PROTO_F_FACTION],
        obj_field_int32_get(obj, OBJ_F_NPC_FACTION));

    tig_file_fprintf(stream, "%s: %d\n",
        off_5B38C8[PROTO_F_AI_PACKET],
        obj_field_int32_get(obj, OBJ_F_NPC_AI_DATA));

    tig_file_fprintf(stream, "%s: %d\n",
        off_5B38C8[PROTO_F_MATERIAL],
        obj_field_int32_get(obj, OBJ_F_MATERIAL));

    tig_file_fprintf(stream, "%s: %d\n",
        off_5B38C8[PROTO_F_HIT_POINTS],
        object_hp_max(obj));

    for (index = 0; index < 36; index++) {
        obj_arrayfield_script_get(obj, OBJ_F_SCRIPTS_IDX, index, &scr);
        if (scr[2] != 0) {
            tig_file_fprintf(stream, "%s: %d %d %d %d %d %d\n",
                off_5B38C8[PROTO_F_SCRIPT],
                index,
                scr[2],
                scr[1] & 0xFF,
                (scr[1] >> 8) & 0xFF,
                (scr[1] >> 16) & 0xFF,
                (scr[1] >> 24) & 0xFF);
        }
    }

    for (index = PROTO_F_DAMAGE_RESISTANCE; index <= PROTO_F_MAGIC_RESISTANCE; index++) {
        value = obj_arrayfield_int32_get(obj, OBJ_F_RESISTANCE_IDX, index);
        if (value != 0) {
            tig_file_fprintf(stream, "%s: %d\n",
                off_5B38C8[index],
                value);
        }
    }

    for (index = PROTO_F_NORMAL_DAMAGE; index <= PROTO_F_FATIGUE_DAMAGE; index++) {
        min_damage = obj_arrayfield_uint32_get(obj, OBJ_F_NPC_DAMAGE_IDX, index * 2);
        max_damage = obj_arrayfield_uint32_get(obj, OBJ_F_NPC_DAMAGE_IDX, index * 2 + 1);
        if (min_damage != 0 || max_damage != 0) {
            tig_file_fprintf(stream, "%s: %d %d\n",
                off_5B38C8[index],
                min_damage,
                max_damage);
        }
    }

    tig_file_fprintf(stream, "%s: %d\n",
        off_5B38C8[PROTO_F_SOUND_BANK],
        obj_field_int32_get(obj, OBJ_F_SOUND_EFFECT));

    value = obj_field_int32_get(obj, OBJ_F_CRITTER_INVENTORY_SOURCE);
    if (value != 0) {
        tig_file_fprintf(stream, "%s: %d\n",
            off_5B38C8[PROTO_F_INVENTORY_SOURCE],
            value);
    }

    tig_file_fprintf(stream, "%s: %d\n",
        off_5B38C8[PROTO_F_PORTRAIT],
        obj_field_int32_get(obj, OBJ_F_CRITTER_PORTRAIT));

    tig_file_fprintf(stream, "%s: %d\n",
        off_5B38C8[PROTO_F_RETAIL_PRICE_MULTIPLIER],
        obj_field_int32_get(obj, OBJ_F_NPC_RETAIL_PRICE_MULTIPLIER));

    tig_file_fprintf(stream, "%s: %d\n",
        off_5B38C8[PROTO_F_SOCIAL_CLASS],
        critter_social_class_get(obj));

    sub_49C610(stream,
        off_5B38C8[PROTO_F_OBJECT_FLAG],
        obj_field_int32_get(obj, OBJ_F_FLAGS),
        obj_flags_of,
        OF_COUNT);

    value = obj_field_int32_get(obj, OBJ_F_CRITTER_AUTO_LEVEL_SCHEME);
    if (value != 0) {
        tig_file_fprintf(stream, "%s: %d\n",
            off_5B38C8[PROTO_F_AUTO_LEVEL_SCHEME],
            value);
    }

    value = obj_field_int32_get(obj, OBJ_F_CATEGORY);
    if (value != 0) {
        tig_file_fprintf(stream, "%s: %d\n",
            off_5B38C8[PROTO_F_CATEGORY],
            value);
    }
}

// 0x49C610
void sub_49C610(TigFile* stream, const char* name, int value, const char** identifiers, int size)
{
    int index;

    if (value == 0) {
        return;
    }

    for (index = 0; index < size; index++) {
        if (((1 << index) & value) != 0) {
            tig_file_fprintf(stream, "%s: %s\n", name, identifiers[index]);
        }
    }
}

int proto_id_list_sort(const void* va, const void* vb)
{
    const int* a = (const int*)va;
    const int* b = (const int*)vb;

    return *a - *b;
}

void proto_id_list_create(int** proto_ids_ptr, int* cnt_ptr)
{
    TigFileList file_list;
    int* proto_ids;
    int cnt;
    unsigned int idx;
    int id;

    tig_file_list_create(&file_list, "proto\\*.pro");

    if (file_list.count != 0) {
        cnt = 0;
        proto_ids = (int*)MALLOC(sizeof(int) * file_list.count);
        for (idx = 0; idx < file_list.count; idx++) {
            id = atoi(file_list.entries[idx].path);
            if (id != 0) {
                proto_ids[cnt++] = id;
            }
        }

        if (cnt != 0) {
            qsort(proto_ids, cnt, sizeof(*proto_ids), proto_id_list_sort);
        }
    } else {
        proto_ids = NULL;
        cnt = 0;
    }

    tig_file_list_destroy(&file_list);

    *proto_ids_ptr = proto_ids;
    *cnt_ptr = cnt;
}

bool proto_id_list_check(int* proto_ids, int cnt, int id)
{
    int l;
    int r;
    int m;

    l = 0;
    r = cnt - 1;
    while (l <= r) {
        m = (l + r) / 2;

        if (proto_ids[m] == id) {
            return true;
        }

        if (proto_ids[m] < id) {
            l = m + 1;
        } else {
            r = m - 1;
        }
    }

    return false;
}

void proto_id_list_destroy(int* proto_ids)
{
    if (proto_ids != NULL) {
        FREE(proto_ids);
    }
}
