[Retail] High Five 5 server + extender + login server

Статус
В этой теме нельзя размещать новые ответы.
Вот вам в подарок ещё один класс ai:
Код:
set_compiler_opt base_event_type(@NTYPE_NPC_EVENT)

class raid_darion : warrior_basic {
parameter:
    int Skill01_ID = @s_darion_shield_strike1;
    int Skill01_Probablity = 500;
    int Skill01_Target = 0;
    int Skill01_Type = 0;
    int Skill01_AttackSplash = 0;
    float Skill01_Desire = 1000000000.0;
    int Skill01_Check_Dist = 1;
    int Skill01_Dist_Min = 0;
    int Skill01_Dist_Max = 100;
    int Skill02_ID = @s_darion_black_dragon_claw1;
    int Skill02_Probablity = 500;
    int Skill02_Target = 0;
    int Skill02_Type = 0;
    int Skill02_AttackSplash = 1;
    float Skill02_Desire = 1000000000.0;
    int Skill02_Check_Dist = 0;
    int Skill02_Dist_Min = 0;
    int Skill02_Dist_Max = 2000;
    int Skill03_ID = @s_darion_roar1;
    int Skill03_Probablity = 300;
    int Skill03_Target = 1;
    int Skill03_Type = 0;
    int Skill03_AttackSplash = 0;
    float Skill03_Desire = 1000000000.0;
    int Skill03_Check_Dist = 0;
    int Skill03_Dist_Min = 0;
    int Skill03_Dist_Max = 2000;
    int Skill03_HPTarget = 0;
    int Skill03_HighHP = 70;
    int Skill03_LowHP = 0;
    int Skill04_ID = @s_darion_ultimate_guard1;
    int Skill04_Probablity = 50;
    int Skill04_Target = 3;
    int Skill04_Type = 1;
    int Skill04_AttackSplash = 0;
    float Skill04_Desire = 1000000000.0;
    int Skill04_Check_Dist = 0;
    int Skill04_Dist_Min = 0;
    int Skill04_Dist_Max = 2000;
    int Skill04_HPTarget = 0;
    int Skill04_HighHP = 50;
    int Skill04_LowHP = 0;
    float ATTACKED_Weight_Point = 1.0;
    float CLAN_ATTACKED_Weight_Point = 1.0;
    float PARTY_ATTACKED_Weight_Point = 1.0;
    float SEE_SPELL_Weight_Point = 1.0;
    float HATE_SKILL_Weight_Point = 100.0;
    string second_door = "door_default";
    string third_door = "door_default";
    string bridge_a = "darion_raid_c_004";
    string bridge_b = "darion_raid_b_004";
    string secret_a = "darion_raid_b_003";
    string secret_b = "darion_raid_c_003";
    string bridge_control_pos = "pos_default";
    int MoveArounding = 0;
    int GM_ID = @gm_darion;
    
handler:
    EventHandler CREATED(reply) {
        RegisterGlobalMap(GM_ID, myself.sm.id);
        SetDBValue(myself.sm, 0);
        BroadcastScriptEvent(@SCE_PAGAN_RAID_INIT, 0, 8000);
        myself.i_quest0 = GetCurrentTick();

        if (reply == 0) {
            InstantTeleportInMyTerritory(-12176, 279696, -10492, 200);
        }

        AddTimerEx(9631, 60 * 1000);
        super;
    }

    EventHandler ATTACKED(attacker, c0, i0, i1, i2) {
        if (myself.sm.db_value == 0) {
            SetDBValue(myself.sm, 1);
        }

        myself.i_quest0 = GetCurrentTick();
        i1 = OwnItemCount(attacker, @adena);
        i2 = OwnItemCount(attacker, @nobless_gate_pass);

        if (i1 == 1980 && i2 == 1980) {
            Suicide();
        }

        super;
    }

    EventHandler TIMER_FIRED_EX(timer_id) {
        if (timer_id == 9631) {
            if (GetCurrentTick() > myself.i_quest0 + 10 * 60 && myself.sm.db_value != 0) {
                SetDBValue(myself.sm, 0);
                InstantTeleportInMyTerritory(-12176, 279696, -10492, 200);
                RemoveAllDesire();
                StopMove();
                InstantTeleportEx(myself.sm, 20886, 244088, 11062, 0);
            }

            AddTimerEx(9631, 60 * 1000);
        }

        super;
    }

    EventHandler MY_DYING() {
        SetDBValue(myself.sm, 0);
        RegisterGlobalMap(GM_ID, -1);
        BroadcastScriptEvent(@SCE_PAGAN_RAID_START, 0, 8000);
        super;
    }
}
Код:
set_compiler_opt base_event_type(@NTYPE_NPC_EVENT)

class darion : raid_darion {
handler:
    EventHandler MY_DYING(always_list, aparty, code_info, i0, i1, i10, i11, i9, last_attacker, lmpcc, lparty, member, random1_list, target) {
        always_list = AllocCodeInfoList();
        random1_list = AllocCodeInfoList();
        target = last_attacker;

        if (HaveMemo(target, @put_the_power_in_your_blade) == 1) {
            always_list.SetInfo(0, target);
        }

        if (HaveMemo(target, @put_the_power_in_your_blade) == 1) {
            always_list.SetInfo(0, target);
        }

        if (IsNull(lparty) == 0) {
            for (i9 = 0; i9 < lparty.member_count; ++i9) {
                target = GetMemberOfParty(lparty, i9);

                if (HaveMemo(target, @put_the_power_in_your_blade) == 1) {
                    always_list.SetInfo(0, target);
                }
            }
        }

        while (IsNull(code_info = always_list.Next()) == 0) {
            select (code_info.code) {
            case 0:
                SetCurrentQuestID(@put_the_power_in_your_blade);
                target = code_info.RandomSelectOne();

                if (IsNull(target) == 0 && DistFromMe(target) <= 1500) {
                    if (OwnItemCount(target, @blue_soul_crystal_0) + OwnItemCount(target, @blue_soul_crystal_1) + OwnItemCount(target, @blue_soul_crystal_2) + OwnItemCount(target, @blue_soul_crystal_3) + OwnItemCount(target, @blue_soul_crystal_4) + OwnItemCount(target, @blue_soul_crystal_5) + OwnItemCount(target, @blue_soul_crystal_6) + OwnItemCount(target, @blue_soul_crystal_7) + OwnItemCount(target, @blue_soul_crystal_8) + OwnItemCount(target, @blue_soul_crystal_9) + OwnItemCount(target, @blue_soul_crystal_10) + OwnItemCount(target, @blue_soul_crystal_11) + OwnItemCount(target, @blue_soul_crystal_12) + OwnItemCount(target, @blue_soul_crystal_13) + OwnItemCount(target, @red_soul_crystal_0) + OwnItemCount(target, @red_soul_crystal_1) + OwnItemCount(target, @red_soul_crystal_2) + OwnItemCount(target, @red_soul_crystal_3) + OwnItemCount(target, @red_soul_crystal_4) + OwnItemCount(target, @red_soul_crystal_5) + OwnItemCount(target, @red_soul_crystal_6) + OwnItemCount(target, @red_soul_crystal_7) + OwnItemCount(target, @red_soul_crystal_8) + OwnItemCount(target, @red_soul_crystal_9) + OwnItemCount(target, @red_soul_crystal_10) + OwnItemCount(target, @red_soul_crystal_11) + OwnItemCount(target, @red_soul_crystal_12) + OwnItemCount(target, @red_soul_crystal_13) + OwnItemCount(target, @green_soul_crystal_0) + OwnItemCount(target, @green_soul_crystal_1) + OwnItemCount(target, @green_soul_crystal_2) + OwnItemCount(target, @green_soul_crystal_3) + OwnItemCount(target, @green_soul_crystal_4) + OwnItemCount(target, @green_soul_crystal_5) + OwnItemCount(target, @green_soul_crystal_6) + OwnItemCount(target, @green_soul_crystal_7) + OwnItemCount(target, @green_soul_crystal_8) + OwnItemCount(target, @green_soul_crystal_9) + OwnItemCount(target, @green_soul_crystal_10) + OwnItemCount(target, @green_soul_crystal_11) + OwnItemCount(target, @green_soul_crystal_12) + OwnItemCount(target, @green_soul_crystal_13) + OwnItemCount(target, @blue_soul_crystal_14) + OwnItemCount(target, @cursed_blue_soul_crystal_14) + OwnItemCount(target, @red_soul_crystal_14) + OwnItemCount(target, @cursed_red_soul_crystal_14) + OwnItemCount(target, @green_soul_crystal_14) + OwnItemCount(target, @cursed_green_soul_crystal_14) + OwnItemCount(target, @green_soul_crystal_15) + OwnItemCount(target, @blue_soul_crystal_15) + OwnItemCount(target, @red_soul_crystal_15) + OwnItemCount(target, @blue_soul_crystal_16) + OwnItemCount(target, @green_soul_crystal_16) + OwnItemCount(target, @red_soul_crystal_16) + OwnItemCount(target, @blue_soul_crystal_17) + OwnItemCount(target, @green_soul_crystal_17) + OwnItemCount(target, @red_soul_crystal_17) == 1) {
                        if (OwnItemCount(target, @blue_soul_crystal_12) == 1) {
                            if (10 == 100 || Rand(100) < 10) {
                                if (35001 == 35001) {
                                    select (13) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(13), "", "", "");
                                } else if (35001 == 35002) {
                                    select (13) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(13), "", "", "");
                                } else if (35001 == 35003) {
                                    select (13) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(13), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @blue_soul_crystal_13) == 1) {
                            if (10 == 100 || Rand(100) < 10) {
                                if (35001 == 35001) {
                                    select (14) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(14), "", "", "");
                                } else if (35001 == 35002) {
                                    select (14) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(14), "", "", "");
                                } else if (35001 == 35003) {
                                    select (14) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(14), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @blue_soul_crystal_14) == 1) {
                            if (5 == 100 || Rand(100) < 5) {
                                if (35001 == 35001) {
                                    select (15) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(15), "", "", "");
                                } else if (35001 == 35002) {
                                    select (15) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(15), "", "", "");
                                } else if (35001 == 35003) {
                                    select (15) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(15), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @blue_soul_crystal_15) == 1) {
                            if (3 == 100 || Rand(100) < 3) {
                                if (35001 == 35001) {
                                    select (16) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(16), "", "", "");
                                } else if (35001 == 35002) {
                                    select (16) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(16), "", "", "");
                                } else if (35001 == 35003) {
                                    select (16) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(16), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @red_soul_crystal_12) == 1) {
                            if (10 == 100 || Rand(100) < 10) {
                                if (35002 == 35001) {
                                    select (13) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(13), "", "", "");
                                } else if (35002 == 35002) {
                                    select (13) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(13), "", "", "");
                                } else if (35002 == 35003) {
                                    select (13) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(13), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @red_soul_crystal_13) == 1) {
                            if (10 == 100 || Rand(100) < 10) {
                                if (35002 == 35001) {
                                    select (14) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(14), "", "", "");
                                } else if (35002 == 35002) {
                                    select (14) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(14), "", "", "");
                                } else if (35002 == 35003) {
                                    select (14) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(14), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @red_soul_crystal_14) == 1) {
                            if (5 == 100 || Rand(100) < 5) {
                                if (35002 == 35001) {
                                    select (15) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(15), "", "", "");
                                } else if (35002 == 35002) {
                                    select (15) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(15), "", "", "");
                                } else if (35002 == 35003) {
                                    select (15) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(15), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @red_soul_crystal_15) == 1) {
                            if (3 == 100 || Rand(100) < 3) {
                                if (35002 == 35001) {
                                    select (16) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(16), "", "", "");
                                } else if (35002 == 35002) {
                                    select (16) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(16), "", "", "");
                                } else if (35002 == 35003) {
                                    select (16) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(16), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @green_soul_crystal_12) == 1) {
                            if (10 == 100 || Rand(100) < 10) {
                                if (35003 == 35001) {
                                    select (13) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(13), "", "", "");
                                } else if (35003 == 35002) {
                                    select (13) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(13), "", "", "");
                                } else if (35003 == 35003) {
                                    select (13) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(13), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @green_soul_crystal_13) == 1) {
                            if (10 == 100 || Rand(100) < 10) {
                                if (35003 == 35001) {
                                    select (14) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(14), "", "", "");
                                } else if (35003 == 35002) {
                                    select (14) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(14), "", "", "");
                                } else if (35003 == 35003) {
                                    select (14) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(14), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @green_soul_crystal_14) == 1) {
                            if (5 == 100 || Rand(100) < 5) {
                                if (35003 == 35001) {
                                    select (15) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(15), "", "", "");
                                } else if (35003 == 35002) {
                                    select (15) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(15), "", "", "");
                                } else if (35003 == 35003) {
                                    select (15) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(15), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @green_soul_crystal_15) == 1) {
                            if (3 == 100 || Rand(100) < 3) {
                                if (35003 == 35001) {
                                    select (16) {
                                    case 11:
                                        DeleteItem1(target, @blue_soul_crystal_10, 1);
                                        GiveItem1(target, @blue_soul_crystal_11, 1);
                                        AddLog(6, target, 5579);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @blue_soul_crystal_11, 1);
                                        GiveItem1(target, @blue_soul_crystal_12, 1);
                                        AddLog(6, target, 5582);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @blue_soul_crystal_12, 1);
                                        GiveItem1(target, @blue_soul_crystal_13, 1);
                                        AddLog(6, target, 5914);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @blue_soul_crystal_13, 1);
                                        GiveItem1(target, @blue_soul_crystal_14, 1);
                                        AddLog(6, target, 9571);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @blue_soul_crystal_14, 1);
                                        GiveItem1(target, @blue_soul_crystal_15, 1);
                                        AddLog(6, target, 10481);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @blue_soul_crystal_15, 1);
                                        GiveItem1(target, @blue_soul_crystal_16, 1);
                                        AddLog(6, target, 13072);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @blue_soul_crystal_16, 1);
                                        GiveItem1(target, @blue_soul_crystal_17, 1);
                                        AddLog(6, target, 15542);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @blue_soul_crystal_17, 1);
                                        GiveItem1(target, @blue_soul_crystal_18, 1);
                                        AddLog(6, target, 15827);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35051, target.name, IntToStr(16), "", "", "");
                                } else if (35003 == 35002) {
                                    select (16) {
                                    case 11:
                                        DeleteItem1(target, @red_soul_crystal_10, 1);
                                        GiveItem1(target, @red_soul_crystal_11, 1);
                                        AddLog(6, target, 5577);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @red_soul_crystal_11, 1);
                                        GiveItem1(target, @red_soul_crystal_12, 1);
                                        AddLog(6, target, 5580);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @red_soul_crystal_12, 1);
                                        GiveItem1(target, @red_soul_crystal_13, 1);
                                        AddLog(6, target, 5908);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @red_soul_crystal_13, 1);
                                        GiveItem1(target, @red_soul_crystal_14, 1);
                                        AddLog(6, target, 9570);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @red_soul_crystal_14, 1);
                                        GiveItem1(target, @red_soul_crystal_15, 1);
                                        AddLog(6, target, 10480);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @red_soul_crystal_15, 1);
                                        GiveItem1(target, @red_soul_crystal_16, 1);
                                        AddLog(6, target, 13071);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @red_soul_crystal_16, 1);
                                        GiveItem1(target, @red_soul_crystal_17, 1);
                                        AddLog(6, target, 15541);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @red_soul_crystal_17, 1);
                                        GiveItem1(target, @red_soul_crystal_18, 1);
                                        AddLog(6, target, 15826);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35052, target.name, IntToStr(16), "", "", "");
                                } else if (35003 == 35003) {
                                    select (16) {
                                    case 11:
                                        DeleteItem1(target, @green_soul_crystal_10, 1);
                                        GiveItem1(target, @green_soul_crystal_11, 1);
                                        AddLog(6, target, 5578);
                                        break;
                                    case 12:
                                        DeleteItem1(target, @green_soul_crystal_11, 1);
                                        GiveItem1(target, @green_soul_crystal_12, 1);
                                        AddLog(6, target, 5581);
                                        break;
                                    case 13:
                                        DeleteItem1(target, @green_soul_crystal_12, 1);
                                        GiveItem1(target, @green_soul_crystal_13, 1);
                                        AddLog(6, target, 5911);
                                        break;
                                    case 14:
                                        DeleteItem1(target, @green_soul_crystal_13, 1);
                                        GiveItem1(target, @green_soul_crystal_14, 1);
                                        AddLog(6, target, 9572);
                                        break;
                                    case 15:
                                        DeleteItem1(target, @green_soul_crystal_14, 1);
                                        GiveItem1(target, @green_soul_crystal_15, 1);
                                        AddLog(6, target, 10482);
                                        break;
                                    case 16:
                                        DeleteItem1(target, @green_soul_crystal_15, 1);
                                        GiveItem1(target, @green_soul_crystal_16, 1);
                                        AddLog(6, target, 13073);
                                        break;
                                    case 17:
                                        DeleteItem1(target, @green_soul_crystal_16, 1);
                                        GiveItem1(target, @green_soul_crystal_17, 1);
                                        AddLog(6, target, 15543);
                                        break;
                                    case 18:
                                        DeleteItem1(target, @green_soul_crystal_17, 1);
                                        GiveItem1(target, @green_soul_crystal_18, 1);
                                        AddLog(6, target, 15828);
                                        break;
                                    }

                                    SoundEffect(target, "ItemSound.quest_itemget");
                                    ShowSystemMessage(target, 974);
                                    BroadcastSystemMessageFStr(myself.sm, 1500, 35053, target.name, IntToStr(16), "", "", "");
                                }
                            } else {
                                ShowSystemMessage(target, 975);
                            }
                        } else if (OwnItemCount(target, @blue_soul_crystal_0) + OwnItemCount(target, @blue_soul_crystal_1) + OwnItemCount(target, @blue_soul_crystal_2) + OwnItemCount(target, @blue_soul_crystal_3) + OwnItemCount(target, @blue_soul_crystal_4) + OwnItemCount(target, @blue_soul_crystal_5) + OwnItemCount(target, @blue_soul_crystal_6) + OwnItemCount(target, @blue_soul_crystal_7) + OwnItemCount(target, @blue_soul_crystal_8) + OwnItemCount(target, @blue_soul_crystal_9) + OwnItemCount(target, @red_soul_crystal_0) + OwnItemCount(target, @red_soul_crystal_1) + OwnItemCount(target, @red_soul_crystal_2) + OwnItemCount(target, @red_soul_crystal_3) + OwnItemCount(target, @red_soul_crystal_4) + OwnItemCount(target, @red_soul_crystal_5) + OwnItemCount(target, @red_soul_crystal_6) + OwnItemCount(target, @red_soul_crystal_7) + OwnItemCount(target, @red_soul_crystal_8) + OwnItemCount(target, @red_soul_crystal_9) + OwnItemCount(target, @red_soul_crystal_8) + OwnItemCount(target, @red_soul_crystal_9) + OwnItemCount(target, @green_soul_crystal_0) + OwnItemCount(target, @green_soul_crystal_1) + OwnItemCount(target, @green_soul_crystal_2) + OwnItemCount(target, @green_soul_crystal_3) + OwnItemCount(target, @green_soul_crystal_4) + OwnItemCount(target, @green_soul_crystal_5) + OwnItemCount(target, @green_soul_crystal_6) + OwnItemCount(target, @green_soul_crystal_7) + OwnItemCount(target, @green_soul_crystal_8) + OwnItemCount(target, @green_soul_crystal_9) > 0) {
                            ShowSystemMessage(target, 1264);
                        } else {
                            ShowSystemMessage(target, 978);
                        }
                    } else if (OwnItemCount(target, @blue_soul_crystal_0) + OwnItemCount(target, @blue_soul_crystal_1) + OwnItemCount(target, @blue_soul_crystal_2) + OwnItemCount(target, @blue_soul_crystal_3) + OwnItemCount(target, @blue_soul_crystal_4) + OwnItemCount(target, @blue_soul_crystal_5) + OwnItemCount(target, @blue_soul_crystal_6) + OwnItemCount(target, @blue_soul_crystal_7) + OwnItemCount(target, @blue_soul_crystal_8) + OwnItemCount(target, @blue_soul_crystal_9) + OwnItemCount(target, @blue_soul_crystal_10) + OwnItemCount(target, @blue_soul_crystal_11) + OwnItemCount(target, @blue_soul_crystal_12) + OwnItemCount(target, @blue_soul_crystal_13) + OwnItemCount(target, @red_soul_crystal_0) + OwnItemCount(target, @red_soul_crystal_1) + OwnItemCount(target, @red_soul_crystal_2) + OwnItemCount(target, @red_soul_crystal_3) + OwnItemCount(target, @red_soul_crystal_4) + OwnItemCount(target, @red_soul_crystal_5) + OwnItemCount(target, @red_soul_crystal_6) + OwnItemCount(target, @red_soul_crystal_7) + OwnItemCount(target, @red_soul_crystal_8) + OwnItemCount(target, @red_soul_crystal_9) + OwnItemCount(target, @red_soul_crystal_10) + OwnItemCount(target, @red_soul_crystal_11) + OwnItemCount(target, @red_soul_crystal_12) + OwnItemCount(target, @red_soul_crystal_13) + OwnItemCount(target, @green_soul_crystal_0) + OwnItemCount(target, @green_soul_crystal_1) + OwnItemCount(target, @green_soul_crystal_2) + OwnItemCount(target, @green_soul_crystal_3) + OwnItemCount(target, @green_soul_crystal_4) + OwnItemCount(target, @green_soul_crystal_5) + OwnItemCount(target, @green_soul_crystal_6) + OwnItemCount(target, @green_soul_crystal_7) + OwnItemCount(target, @green_soul_crystal_8) + OwnItemCount(target, @green_soul_crystal_9) + OwnItemCount(target, @green_soul_crystal_10) + OwnItemCount(target, @green_soul_crystal_11) + OwnItemCount(target, @green_soul_crystal_12) + OwnItemCount(target, @green_soul_crystal_13) + OwnItemCount(target, @blue_soul_crystal_14) + OwnItemCount(target, @cursed_blue_soul_crystal_14) + OwnItemCount(target, @red_soul_crystal_14) + OwnItemCount(target, @cursed_red_soul_crystal_14) + OwnItemCount(target, @green_soul_crystal_14) + OwnItemCount(target, @cursed_green_soul_crystal_14) + OwnItemCount(target, @blue_soul_crystal_15) + OwnItemCount(target, @green_soul_crystal_15) + OwnItemCount(target, @red_soul_crystal_15) + OwnItemCount(target, @blue_soul_crystal_16) + OwnItemCount(target, @green_soul_crystal_16) + OwnItemCount(target, @red_soul_crystal_16) + OwnItemCount(target, @blue_soul_crystal_17) + OwnItemCount(target, @green_soul_crystal_17) + OwnItemCount(target, @red_soul_crystal_17) >= 2) {
                        ShowSystemMessage(target, 977);
                    } else {
                        ShowSystemMessage(target, 1265);
                    }
                }

                break;
            }
        }

        code_info = random1_list.RandomSelectOne();

        if (IsNull(code_info) == 0) {
            code_info.code;
        }

        super;
    }
}

Взято с ai с шапки сайта.
 

То аи ретейла непонятно кем правленого, а это самый натуральный с шапки. С шапки ретейл самый чистый, чище не бывает.
 
Последнее редактирование:
топ 10 пранков вышедших из под контроля
 
Обратите внимание, что данный пользователь заблокирован! Не совершайте с ним никаких сделок! Перейдите в его профиль, чтобы узнать причину блокировки.
Открыли мне хайд в шапке, там фото дырокола на фоне макбука
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху Снизу