Отсутствует максимальное кол-во DP

  • Автор темы Автор темы mamcy
  • Дата начала Дата начала
Статус
В этой теме нельзя размещать новые ответы.

mamcy

Друг форума
Местный
Старожил I степени
Участник Новогоднего Фонда 2023
Победитель в номинации 2023
Победитель в номинации 2022
Неукротимое пламя
Сообщения
241
Розыгрыши
0
Решения
3
Репутация
163
Реакции
65
Баллы
970
Хроники
  1. Master Class
Исходники
Присутствуют
Сборка
L2jMobius Guardian
1749112090936.webp
502 протокол. В чем может быть проблема что отсутствует максимальное кол-во дп? соответственно при атаке мобов он тоже не добавляется. На протоколе ниже он работает корректно.
 
В пакетке проблема, было изменение от предыдущего протоколла.
Без фикса: ДК, Вангвард, Темплар, Ассасин - все будут без поинтов, или будет визуальная проблема (возможен и крит).

Я хз что вы взяли, но в последней шаре тут, разве не было фикса?
 
В пакетке проблема, было изменение от предыдущего протоколла.
Без фикса: ДК, Вангвард, Темплар, Ассасин - все будут без поинтов, или будет визуальная проблема (возможен и крит).

Я хз что вы взяли, но в последней шаре тут, разве не было фикса?
последнюю шару не смотрел, щас посмотрю. там был фикс этой беды?
 
так работает,врядли правильные,подобрал чисто на угад
Код:
CUR_CP(0x20, creature -> (int) creature.getCurrentCp()),
    MAX_CP(0x21, Creature::getMaxCp),
    
    CUR_DP(0x2a, creature -> creature.isPlayer() ? creature.asPlayer().getDeathPoints() : 0),
    MAX_DP(0x2b, creature -> creature.isPlayer() ? creature.asPlayer().getMaxDeathPoints() : 0),
    
    CUR_BP(0x2c, creature -> creature.isPlayer() ? creature.asPlayer().getBeastPoints() : 0),
    MAX_BP(0x2d, creature -> creature.isPlayer() ? creature.asPlayer().getMaxBeastPoints() : 0),
    
    CUR_AP(0x2e, creature -> creature.isPlayer() ? creature.asPlayer().getAssassinationPoints() : 0),
    MAX_AP(0x2f, creature -> creature.isPlayer() ? creature.asPlayer().getMaxAssassinationPoints() : 0),
    
    CUR_LP(0x32, creature -> creature.isPlayer() ? creature.asPlayer().getLightPoints() : 0),
    MAX_LP(0x33, creature -> creature.isPlayer() ? creature.asPlayer().getMaxLightPoints() : 0),
    
    CUR_WP(0x2a, creature -> creature.isPlayer() ? creature.asPlayer().getWolfPoints() : 0),
    MAX_WP(0x2b, creature -> creature.isPlayer() ? creature.asPlayer().getMaxWolfPoints() : 0);
 
так работает,врядли правильные,подобрал чисто на угад
Код:
CUR_CP(0x20, creature -> (int) creature.getCurrentCp()),
    MAX_CP(0x21, Creature::getMaxCp),
   
    CUR_DP(0x2a, creature -> creature.isPlayer() ? creature.asPlayer().getDeathPoints() : 0),
    MAX_DP(0x2b, creature -> creature.isPlayer() ? creature.asPlayer().getMaxDeathPoints() : 0),
   
    CUR_BP(0x2c, creature -> creature.isPlayer() ? creature.asPlayer().getBeastPoints() : 0),
    MAX_BP(0x2d, creature -> creature.isPlayer() ? creature.asPlayer().getMaxBeastPoints() : 0),
   
    CUR_AP(0x2e, creature -> creature.isPlayer() ? creature.asPlayer().getAssassinationPoints() : 0),
    MAX_AP(0x2f, creature -> creature.isPlayer() ? creature.asPlayer().getMaxAssassinationPoints() : 0),
   
    CUR_LP(0x32, creature -> creature.isPlayer() ? creature.asPlayer().getLightPoints() : 0),
    MAX_LP(0x33, creature -> creature.isPlayer() ? creature.asPlayer().getMaxLightPoints() : 0),
   
    CUR_WP(0x2a, creature -> creature.isPlayer() ? creature.asPlayer().getWolfPoints() : 0),
    MAX_WP(0x2b, creature -> creature.isPlayer() ? creature.asPlayer().getMaxWolfPoints() : 0);
не работает , увы=(
 
Последнее редактирование:
Код:
    CUR_DP(0x27, creature -> creature.isPlayer() ? creature.asPlayer().getDeathPoints() : 0),
    MAX_DP(0x28, creature -> creature.isPlayer() ? creature.asPlayer().getMaxDeathPoints() : 0),

    CUR_BP(0x2A, creature -> creature.isPlayer() ? creature.asPlayer().getBeastPoints() : 0),
    MAX_BP(0x2B, creature -> creature.isPlayer() ? creature.asPlayer().getMaxBeastPoints() : 0),

    CUR_AP(0x2C, creature -> creature.isPlayer() ? creature.asPlayer().getAssassinationPoints() : 0),
    MAX_AP(0x2D, creature -> creature.isPlayer() ? creature.asPlayer().getMaxAssassinationPoints() : 0),

    CUR_LP(0x2E, creature -> creature.isPlayer() ? creature.asPlayer().getLightPoints() : 0),
    MAX_LP(0x2F, creature -> creature.isPlayer() ? creature.asPlayer().getMaxLightPoints() : 0);
Последнее LightPoint только не правильно осталось
 
Код:
CUR_DP(0x27, creature -> creature.isPlayer() ? creature.asPlayer().getDeathPoints() : 0),
    MAX_DP(0x28, creature -> creature.isPlayer() ? creature.asPlayer().getMaxDeathPoints() : 0),

    CUR_BP(0x2A, creature -> creature.isPlayer() ? creature.asPlayer().getBeastPoints() : 0),
    MAX_BP(0x2B, creature -> creature.isPlayer() ? creature.asPlayer().getMaxBeastPoints() : 0),

    CUR_AP(0x2C, creature -> creature.isPlayer() ? creature.asPlayer().getAssassinationPoints() : 0),
    MAX_AP(0x2D, creature -> creature.isPlayer() ? creature.asPlayer().getMaxAssassinationPoints() : 0),

    CUR_LP(0x2E, creature -> creature.isPlayer() ? creature.asPlayer().getLightPoints() : 0),
    MAX_LP(0x2F, creature -> creature.isPlayer() ? creature.asPlayer().getMaxLightPoints() : 0);
Последнее LightPoint только не правильно осталось
С чего вдруг? Я же выше кидал скрины.
 
Код:
CUR_DP(0x27, creature -> creature.isPlayer() ? creature.asPlayer().getDeathPoints() : 0),
    MAX_DP(0x28, creature -> creature.isPlayer() ? creature.asPlayer().getMaxDeathPoints() : 0),

    CUR_BP(0x2A, creature -> creature.isPlayer() ? creature.asPlayer().getBeastPoints() : 0),
    MAX_BP(0x2B, creature -> creature.isPlayer() ? creature.asPlayer().getMaxBeastPoints() : 0),

    CUR_AP(0x2C, creature -> creature.isPlayer() ? creature.asPlayer().getAssassinationPoints() : 0),
    MAX_AP(0x2D, creature -> creature.isPlayer() ? creature.asPlayer().getMaxAssassinationPoints() : 0),

    CUR_LP(0x2E, creature -> creature.isPlayer() ? creature.asPlayer().getLightPoints() : 0),
    MAX_LP(0x2F, creature -> creature.isPlayer() ? creature.asPlayer().getMaxLightPoints() : 0);
Да это полное готовое решение. Все работает. Спасибо

Salty Mike за подсказку​

 

    Salty Mike

    Баллов: -1
    You only asked about MAX_DP not showing properly and I gave you CUR_DP as bonus. Yet you said I only gave you "a hint" when I gave you the fix. Moreover, you have marked your own answer as SOLUTION, even though it is out of the scope of the question - you didn't ask for all of them, only for DP. That's disrespectful AF.
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху