[MANUAL] ГМШоп продающий заточенные вещи

Тема в разделе "Установка и настройка (Setup and configuration)", создана пользователем root, 27 сен 2014.

  1. root

    root Administrator Команда форума Administrator Moderator Developers Team

    Регистрация:
    23 авг 2014
    Сообщения:
    253
    Симпатии:
    56
    Баллы:
    11
    Шоп заточенных вещей, только Исходник.
    Продает шмот/бижу/оружие.
    AI:
    Код:
            ////////////////////////////
            //by jeka101 developer
            //Weapons 0-41
            //Bija 42-50
            //Armor 51-68
            //Простейший формат обращения, "не кнопочный"
            //<br><a action="bypass -h menu_select?ask=-1&reply=1">Купить арку +25.</a>
            ////////////////////////////
    
    
    class 1 premium_trader : default_npc
    {
    parameter:
        string    fnHi0 = "hey_premium.htm";
        string    notItem = "not_coins.htm";
        string  fnYouChaotic = "you_chaotic.htm";
        ////////////////////
        int    ItemPremium = 57; //Какой итем нужен для покупки вещей, например Adena.
        int    Amout = 25; //Общая проверка итема под id 57 в инвентаре.
        int    AmoutW = 25; //Проверка сколько нужно Адены для Покупки Оружия.
        int    AmoutB = 25; //Проверка сколько нужно Адены для Покупки Бижы.
        int    AmoutA = 25; //Проверка сколько нужно Адены для Покупки Брони.
        int    BijaEnc = 20; //Заточка Бижы.
        int    WeaponEnc = 25; //Заточка Оружия.
        int    ArmorEnc = 20; //Заточка Брони.
        int    CheckKarma = 1; //Проверять ПК-ли персонаж.
        //Оружее
        int    arcana1 = 6579;
        int    arcana2 = 6608;
        int    arcana3 = 6609;
        int    arcana4 = 6610;
        int    basalt1 = 6365;
        int    basalt2 = 6584;
        int    basalt3 = 6585;
        int    basalt4 = 6586;
        int    imperial1 = 6366;
        int    imperial2 = 6587;
        int    imperial3 = 6588;
        int    imperial4 = 6589;
        int    dragon1 = 6369;
        int    dragon2 = 6596;
        int    dragon3 = 6597;
        int    dragon4 = 6598;
        int    draconic1 = 7575;
        int    draconic2 = 7576;
        int    draconic3 = 7577;
        int    draconic4 = 7578;
        int    angel1 = 6367;
        int    angel2 = 6590;
        int    angel3 = 6591;
        int    angel4 = 6592;
        int    tallum_blade = 6580;
        int    demon1 = 6371;
        int    demon2 = 6602;
        int    demon3 = 6603;
        int    demon4 = 6604;
        int    saint1 = 6370;
        int    saint2 = 6599;
        int    saint3 = 6600;
        int    saint4 = 6601;
        int    forgotten1 = 6364;
        int    forgotten2 = 6581;
        int    forgotten3 = 6582;
        int    forgotten4 = 6583;
        int    heavens1 = 6372;
        int    heavens2 = 6605;
        int    heavens3 = 6606;
        int    heavens4 = 6607;
        //Бижа
        int    bija1 = 889;
        int    bija2 = 858;
        int    bija3 = 920;
        //Епики(бижа)
        int    earring_of_antaras = 6656;
        int    necklace_of_valakas = 6657;
        int    ring_of_baium = 6658;
        int    earring_of_zaken = 6659;
        int    ring_of_queen_ant = 6660;
        int    frintezza_s_necklace1 = 8191;
        //Броня(включая ДК)
        int    imperiala1 = 6373;
        int    imperiala2 = 6374;
        int    imperiala3 = 6375;
        int    imperiala4 = 6376;
        int    imperiala5 = 6377;
        int    imperiala6 = 6378;
        int    draconica = 6379;
        int    draconica2 = 6380;
        int    draconica3 = 6381;
        int    draconica4 = 6382;
        int    major = 6383;
        int    major2 = 6384;
        int    major3 = 6385;
        int    major4 = 6386;
        int    dark_crystal1 = 2407;
        int    dark_crystal2 = 5779;
        int    dark_crystal3 = 5767;
        int    dark_crystal4 = 512;
    
    
     
    handler:
        EventHandler TALKED(talker)
        {
            if ( CheckKarma > 0 )
            {
                if ( talker.karma == 0 )
                {
                    myself::ShowPage(talker, fnHi0);
                }
                else
                {
                    myself::ShowPage(talker, fnYouChaotic);
                }
            }
            else
            {
            myself::ShowPage(talker, fnHi0);
            }
        }
    EventHandler MENU_SELECTED(talker, ask, reply)
        {
        if(ask == -1)
        {
        if ( myself::OwnItemCount(talker, ItemPremium) >= Amout )
            {
            if(reply == 1)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,arcana1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 2)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,arcana2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 3)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,arcana3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 4)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,arcana4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 5)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,basalt1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 6)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,basalt2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 7)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,basalt3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 8)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,basalt4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 9)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,imperial1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 10)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,imperial2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 11)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,imperial3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 12)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,imperial4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 13)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,dragon1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 14)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,dragon2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 15)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,dragon3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 16)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,dragon4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 17)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,draconic1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 18)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,draconic2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 19)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,draconic3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 20)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,draconic4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 21)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,angel1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 22)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,angel2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 23)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,angel3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 24)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,angel4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 25)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,tallum_blade,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 26)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,demon1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 27)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,demon2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 28)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,demon3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 29)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,demon4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 30)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,saint1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 31)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,saint2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 32)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,saint3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 33)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,saint4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 34)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,forgotten1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 35)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,forgotten2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 36)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,forgotten3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 37)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,forgotten4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 38)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,heavens1,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 39)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,heavens2,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 40)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,heavens3,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 41)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutW )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutW);
                            myself::GiveItemEx(talker,heavens4,WeaponEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 42)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutB )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutB);
                            myself::GiveItemEx(talker,bija1,BijaEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 43)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutB )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutB);
                            myself::GiveItemEx(talker,bija2,BijaEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 44)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutB )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutB);
                            myself::GiveItemEx(talker,bija3,BijaEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 45)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutB )
                            {
                            myself::DeleteItem1(talker,ItemPremium,20);
                            myself::GiveItemEx(talker,earring_of_antaras,0,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 46)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutB )
                            {
                            myself::DeleteItem1(talker,ItemPremium,25);
                            myself::GiveItemEx(talker,necklace_of_valakas,0,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 47)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutB )
                            {
                            myself::DeleteItem1(talker,ItemPremium,15);
                            myself::GiveItemEx(talker,ring_of_baium,0,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 48)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutB )
                            {
                            myself::DeleteItem1(talker,ItemPremium,20);
                            myself::GiveItemEx(talker,earring_of_zaken,0,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 49)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutB )
                            {
                            myself::DeleteItem1(talker,ItemPremium,15);
                            myself::GiveItemEx(talker,ring_of_queen_ant,0,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 50)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutB )
                            {
                            myself::DeleteItem1(talker,ItemPremium,25);
                            myself::GiveItemEx(talker,frintezza_s_necklace1,0,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 51)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,imperiala1,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 52)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,imperiala2,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 53)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,imperiala3,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 54)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,imperiala4,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 55)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,imperiala5,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 56)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,imperiala6,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 57)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,draconica,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 58)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,draconica2,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 59)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,draconica3,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 60)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,draconica4,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 61)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,major,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 62)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,major2,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 63)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,major3,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 64)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,major4,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 65)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,dark_crystal1,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 66)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,dark_crystal2,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 67)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,dark_crystal3,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            if(reply == 68)
                    {
                    if ( myself::OwnItemCount(talker,ItemPremium) >= AmoutA )
                            {
                            myself::DeleteItem1(talker,ItemPremium,AmoutA);
                            myself::GiveItemEx(talker,dark_crystal4,ArmorEnc,1);
                            }
                            else
                            {
                    myself::ShowPage(talker, notItem);
                    }
            }
            }
            else
            {
            myself::ShowPage(talker, notItem);
            }
            }
        }
    }