Уровень новичка(newbie)

  • Автор темы Автор темы Scave
  • Дата начала Дата начала

Scave

Знаменитый
Пользователь
Сообщения
8
Розыгрыши
0
Репутация
0
Реакции
2
Баллы
1 235
Доброй ночи!
Хотел бы выяснить как именно работает выставка 1/0 в таб новичков(бд).
Нужно для того чтобы поднять нубо баф до 61 лв., ai самого Бафера поправил. Но загвоздка в том что выше 25 лв. не даёт баф.
Знает ли кто то?
 

так покажите АИ
 
Прикрепил ai класс newbie_guide
 

Вложения

  • ai.txt
    ai.txt
    16,7 КБ · Просмотры: 50
Доброй ночи!
Хотел бы выяснить как именно работает выставка 1/0 в таб новичков(бд).
Нужно для того чтобы поднять нубо баф до 61 лв., ai самого Бафера поправил. Но загвоздка в том что выше 25 лв. не даёт баф.
Знает ли кто то?
Хреного поправил, а конкретно убрать проверку
Код:
myself.IsNewbie(talker)
ЗЫ
Код:
/**
 * Generated: <a href="http://gencloud.solutions">GenCloud</a>
 * Date: 2016/12/04:00.50
 */
public class newbie_guide extends citizen
{
    @Override
    protected void TALKED(Creature talker, FHTML fhtml0)
    {
        myself.DeleteRadar(talker, -71073, 258711, -3099, 2);
        myself.DeleteRadar(talker, -84081, 243277, -3723, 2);
        myself.DeleteRadar(talker, 45492, 48359, -3060, 2);
        myself.DeleteRadar(talker, 12111, 16686, -4582, 2);
        myself.DeleteRadar(talker, -45042, -113598, -192, 2);
        myself.DeleteRadar(talker, 115632, -177996, -905, 2);
        myself.ShowPage(talker, fnHi);
    }

    @Override
    protected void MENU_SELECTED(Creature talker, int ask, int reply)
    {
        if (ask == -7 && reply == 1)
        {
            if (talker.race != myself.sm.race)
            {
                myself.ShowPage(talker, fnRaceMisMatch);
            }
            else if (talker.level == 20 || myself.IsInCategory(5, talker.occupation) == false)
            {
                myself.ShowPage(talker, fnHighLevel);
            }
            else if (myself.IsInCategory(0, talker.occupation) != false)
            {
                if (talker.level <= 5)
                {
                    myself.ShowPage(talker, fnGuideF05);
                }
                else if (talker.level <= 10)
                {
                    myself.ShowPage(talker, fnGuideF10);
                }
                else if (talker.level <= 15)
                {
                    myself.ShowPage(talker, fnGuideF15);
                }
                else
                {
                    myself.ShowPage(talker, fnGuideF20);
                }
            }
            else if (talker.level <= 7)
            {
                myself.ShowPage(talker, fnGuideM07);
            }
            else if (talker.level <= 14)
            {
                myself.ShowPage(talker, fnGuideM14);
            }
            else
            {
                myself.ShowPage(talker, fnGuideM20);
            }
        }
        else if (ask == -7 && reply == 2)
        {
            if (myself.IsNewbie(talker) && myself.IsInCategory(7, talker.occupation) == false)
            {
                if (talker.level < 8)
                {
                    myself.ShowPage(talker, "guide_for_newbie002.htm");
                }
                else if (myself.IsInCategory(0, talker.occupation) != false)
                {
                    if (talker.level >= 8 && talker.level <= 24)
                    {
                        myself.AddUseSkillDesire(talker, 1106433, 1, 0, 1000000);
                    }
                    if (talker.level >= 11 && talker.level <= 23)
                    {
                        myself.AddUseSkillDesire(talker, 1106689, 1, 0, 1000000);
                    }
                    if (talker.level >= 12 && talker.level <= 22)
                    {
                        myself.AddUseSkillDesire(talker, 1106945, 1, 0, 1000000);
                    }
                    if (talker.level >= 13 && talker.level <= 21)
                    {
                        myself.AddUseSkillDesire(talker, 1107201, 1, 0, 1000000);
                    }
                    if (talker.level >= 14 && talker.level <= 20)
                    {
                        myself.AddUseSkillDesire(talker, 1107457, 1, 0, 1000000);
                    }
                    if (talker.level >= 15 && talker.level <= 19)
                    {
                        myself.AddUseSkillDesire(talker, 1107713, 1, 0, 1000000);
                    }
                    if (talker.level >= 16 && talker.level <= 19)
                    {
                        myself.AddUseSkillDesire(talker, 1110529, 1, 0, 1000000);
                    }
                }
                else if (talker.level >= 8 && talker.level <= 24)
                {
                    myself.AddUseSkillDesire(talker, 1106433, 1, 0, 1000000);
                }
                if (talker.level >= 11 && talker.level <= 23)
                {
                    myself.AddUseSkillDesire(talker, 1106689, 1, 0, 1000000);
                }
                if (talker.level >= 12 && talker.level <= 22)
                {
                    myself.AddUseSkillDesire(talker, 1107969, 1, 0, 1000000);
                }
                if (talker.level >= 13 && talker.level <= 21)
                {
                    myself.AddUseSkillDesire(talker, 1108225, 1, 0, 1000000);
                }
                if (talker.level >= 14 && talker.level <= 20)
                {
                    myself.AddUseSkillDesire(talker, 1108481, 1, 0, 1000000);
                }
                if (talker.level >= 15 && talker.level <= 19)
                {
                    myself.AddUseSkillDesire(talker, 1108737, 1, 0, 1000000);
                }
                if (talker.level >= 16 && talker.level <= 19)
                {
                    myself.AddUseSkillDesire(talker, 1110529, 1, 0, 1000000);
                }
            }
            else
            {
                myself.ShowPage(talker, "guide_for_newbie003.htm");
            }
        }
    }
}
 
Последнее редактирование:
Хреного поправил, а конкретно убрать проверку
Код:
myself.IsNewbie(talker)
ЗЫ
Код:
/**
 * Generated: <a href="http://gencloud.solutions">GenCloud</a>
 * Date: 2016/12/04:00.50
 */
public class newbie_guide extends citizen
{
    @Override
    protected void TALKED(Creature talker, FHTML fhtml0)
    {
        myself.DeleteRadar(talker, -71073, 258711, -3099, 2);
        myself.DeleteRadar(talker, -84081, 243277, -3723, 2);
        myself.DeleteRadar(talker, 45492, 48359, -3060, 2);
        myself.DeleteRadar(talker, 12111, 16686, -4582, 2);
        myself.DeleteRadar(talker, -45042, -113598, -192, 2);
        myself.DeleteRadar(talker, 115632, -177996, -905, 2);
        myself.ShowPage(talker, fnHi);
    }

    @Override
    protected void MENU_SELECTED(Creature talker, int ask, int reply)
    {
        if (ask == -7 && reply == 1)
        {
            if (talker.race != myself.sm.race)
            {
                myself.ShowPage(talker, fnRaceMisMatch);
            }
            else if (talker.level == 20 || myself.IsInCategory(5, talker.occupation) == false)
            {
                myself.ShowPage(talker, fnHighLevel);
            }
            else if (myself.IsInCategory(0, talker.occupation) != false)
            {
                if (talker.level <= 5)
                {
                    myself.ShowPage(talker, fnGuideF05);
                }
                else if (talker.level <= 10)
                {
                    myself.ShowPage(talker, fnGuideF10);
                }
                else if (talker.level <= 15)
                {
                    myself.ShowPage(talker, fnGuideF15);
                }
                else
                {
                    myself.ShowPage(talker, fnGuideF20);
                }
            }
            else if (talker.level <= 7)
            {
                myself.ShowPage(talker, fnGuideM07);
            }
            else if (talker.level <= 14)
            {
                myself.ShowPage(talker, fnGuideM14);
            }
            else
            {
                myself.ShowPage(talker, fnGuideM20);
            }
        }
        else if (ask == -7 && reply == 2)
        {
            if (myself.IsNewbie(talker) && myself.IsInCategory(7, talker.occupation) == false)
            {
                if (talker.level < 8)
                {
                    myself.ShowPage(talker, "guide_for_newbie002.htm");
                }
                else if (myself.IsInCategory(0, talker.occupation) != false)
                {
                    if (talker.level >= 8 && talker.level <= 24)
                    {
                        myself.AddUseSkillDesire(talker, 1106433, 1, 0, 1000000);
                    }
                    if (talker.level >= 11 && talker.level <= 23)
                    {
                        myself.AddUseSkillDesire(talker, 1106689, 1, 0, 1000000);
                    }
                    if (talker.level >= 12 && talker.level <= 22)
                    {
                        myself.AddUseSkillDesire(talker, 1106945, 1, 0, 1000000);
                    }
                    if (talker.level >= 13 && talker.level <= 21)
                    {
                        myself.AddUseSkillDesire(talker, 1107201, 1, 0, 1000000);
                    }
                    if (talker.level >= 14 && talker.level <= 20)
                    {
                        myself.AddUseSkillDesire(talker, 1107457, 1, 0, 1000000);
                    }
                    if (talker.level >= 15 && talker.level <= 19)
                    {
                        myself.AddUseSkillDesire(talker, 1107713, 1, 0, 1000000);
                    }
                    if (talker.level >= 16 && talker.level <= 19)
                    {
                        myself.AddUseSkillDesire(talker, 1110529, 1, 0, 1000000);
                    }
                }
                else if (talker.level >= 8 && talker.level <= 24)
                {
                    myself.AddUseSkillDesire(talker, 1106433, 1, 0, 1000000);
                }
                if (talker.level >= 11 && talker.level <= 23)
                {
                    myself.AddUseSkillDesire(talker, 1106689, 1, 0, 1000000);
                }
                if (talker.level >= 12 && talker.level <= 22)
                {
                    myself.AddUseSkillDesire(talker, 1107969, 1, 0, 1000000);
                }
                if (talker.level >= 13 && talker.level <= 21)
                {
                    myself.AddUseSkillDesire(talker, 1108225, 1, 0, 1000000);
                }
                if (talker.level >= 14 && talker.level <= 20)
                {
                    myself.AddUseSkillDesire(talker, 1108481, 1, 0, 1000000);
                }
                if (talker.level >= 15 && talker.level <= 19)
                {
                    myself.AddUseSkillDesire(talker, 1108737, 1, 0, 1000000);
                }
                if (talker.level >= 16 && talker.level <= 19)
                {
                    myself.AddUseSkillDesire(talker, 1110529, 1, 0, 1000000);
                }
            }
            else
            {
                myself.ShowPage(talker, "guide_for_newbie003.htm");
            }
        }
    }
}
своя приблуда?)
 
Да действительно, с условия убрал проверку на newbie и все получилось =)
Спасибо
 
Назад
Сверху Снизу