[MANUAL] Уменьшаем уровень чарам

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

  1. root

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

    Регистрация:
    23 авг 2014
    Сообщения:
    254
    Симпатии:
    58
    Баллы:
    11
    Уменьшаем уровень чарамAI:
    Код:
    class 1 delevel : citizen{
    parameter:
        string    ShopName = "delevel.htm";
        string    fnHi = "delevel.htm";
    
    
    property:
    handler:
    EventHandler MENU_SELECTED(talker,ask,reply)
    {
    if( ask == -1 )
    {
    if( reply == 1 )
    {
    if( (talker.level) >= 37 && talker.level <= 40)
    {
    if((myself::OwnItemCount( talker, 57 ) <= 10000))
    {
    myself::ShowPage( talker, "delevel_no.htm");
    }
    else 
    {
    myself::DeleteItem1( talker, 57, 10000);
    myself::IncrementParam( talker, @PARAM_EXP, -1511275834 );
    myself::IncrementParam( talker, @PARAM_EXP, 4555796 ); //30
    myself::ShowPage( talker, "delevel_ok.htm");
    }
    }
    }
    if( reply == 2 )
    {
    if( (talker.level) >= 47 && talker.level <= 50 )
    {
    if((myself::OwnItemCount( talker, 57 ) <= 10000))
    {
    myself::ShowPage( talker, "delevel_no.htm");
    }
    else 
    {
    myself::DeleteItem1( talker, 57, 10000);
    myself::IncrementParam( talker, @PARAM_EXP, -1511275834 );
    myself::IncrementParam( talker, @PARAM_EXP, 15422929 ); //40
    myself::ShowPage( talker, "delevel_ok.htm");
    }
    }
    }
    if( reply == 3 )
    {
    if( (talker.level) >= 57 && talker.level <= 60 )
    {
    if((myself::OwnItemCount( talker, 57 ) <= 10000))
    {
    myself::ShowPage( talker, "delevel_no.htm");
    }
    else 
    {
    myself::DeleteItem1( talker, 57, 10000);
    myself::IncrementParam( talker, @PARAM_EXP, -1511275834 );
    myself::IncrementParam( talker, @PARAM_EXP, 40154162 ); //50
    myself::ShowPage( talker, "delevel_ok.htm");
    }
    }
    }
    if( reply == 4 )
    {
    if( talker.level >= 67 )
    {
    if((myself::OwnItemCount( talker, 57 ) <= 10000))
    {
    myself::ShowPage( talker, "delevel_no.htm");
    }
    else 
    {
    myself::DeleteItem1( talker, 57, 10000);
    myself::IncrementParam( talker, @PARAM_EXP, -1511275834 ); 
    myself::IncrementParam( talker, @PARAM_EXP, 126509653 ); //60
    myself::ShowPage( talker, "delevel_ok.htm");
    }
    }
    }
    }
    }
    }
    HTML:
    Код:
    <html><head><body><center>
    <img src="L2UI_CH3.herotower_deco" width=256 height=32><br>
    <font color="LEVEL">Делевел</font><br1>
    10000 Adena<br1>
    <tr><td><img src="L2UI.SquareWhite" width=260 height=1></tr></td><br>
    У меня можно спустить себе уровень на тот что вам нужен.<br>
    Если вам нужно получить <font color="LEVEL">30</font> уровень, вы должны быть больше или <font color="LEVEL">37</font> и меньше или <font color="LEVEL">40</font><br>
    
    
    <button value="30 LVL"    action="bypass -h menu_select?ask=-1&reply=1" width=95 height=21 back="L2UI_ch3.bigbutton_down" fore="L2UI_ch3.bigbutton">
    <button value="40 LVL"    action="bypass -h menu_select?ask=-1&reply=2" width=95 height=21 back="L2UI_ch3.bigbutton_down" fore="L2UI_ch3.bigbutton">
    <button value="50 LVL"    action="bypass -h menu_select?ask=-1&reply=3" width=95 height=21 back="L2UI_ch3.bigbutton_down" fore="L2UI_ch3.bigbutton">
    <button value="60 LVL"    action="bypass -h menu_select?ask=-1&reply=4" width=95 height=21 back="L2UI_ch3.bigbutton_down" fore="L2UI_ch3.bigbutton">
    
    
    </body></html>