Arrow/ Quivers Checks

Horyon

Пляшущий с бубном
Участник
Сообщения
219
Розыгрыши
0
Решения
4
Репутация
53
Реакции
77
Баллы
273
Хроники
  1. Master Class
Исходники
Присутствуют
Сборка
Mobius Sources
Hey guys i'm trying to make some old based arrow/quiver need for bow use.

But i dont find in files and old java sources the behavior for check crystal(grade) compare. Like atm the bow D can use arrow/quiver NG.

You guys know where is set in old chronicles this checks?

Ty in advance!
 
For example in mobius HF:
The initial check is in
Код:
Inventory.findArrowForBow(...)

There u can find iteration thought item list and find proper arrows by comparing crystal types

Then call stack going back to
Код:
Player.checkAndEquipArrows()
Where arrows item equips if it was found
 
Well i use this from Mobius Interlude to make it need again arrows for live server. But i dont find the crystal comparing in this code parts. Maybe this

Код:
 Player.checkAndEquipArrows()

Are incomplete in mobius free versions from bitbucket.
 
The code


Java:
    protected boolean checkAndEquipAmmunition(EtcItemType type)
    {
        // Item ammunition = null;
        Item ammunition = _inventory.getPaperdollItem(Inventory.PAPERDOLL_CLOAK);
        if (ammunition == null)
        {
            final Weapon weapon = getActiveWeaponItem();
            if (type == EtcItemType.ARROW)
            {
                ammunition = _inventory.findArrowForBow(weapon);
            }
            else if (type == EtcItemType.BOLT)
            {
                ammunition = _inventory.findBoltForCrossBow(weapon);
            }
            
            if (ammunition != null)
            {
                addAmmunitionSkills(ammunition);
                final InventoryUpdate iu = new InventoryUpdate();
                iu.addModifiedItem(ammunition);
                sendInventoryUpdate(iu);
                return true;
            }
        }
        else
        {
            return true;
        }
        removeAmmunitionSkills();
        return false;
    }
 
Well i use this from Mobius Interlude to make it need again arrows for live server. But i dont find the crystal comparing in this code parts
It seems u missed this part of my message
The initial check is in Inventory.findArrowForBow(...)
 
Назад
Сверху Снизу