Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
Тут есть на форуме система для костюмов через визуализацию, мне кажется юзать ее.Здравствуйте, подскажите как исправить чтоб при одевании любой шмотки, бижутерии не снимался костюм
сборка aCis
А как он реализован там? Одевается в слот тату или крепится к броне?
CharInfo.java и UserInfo.java прикрепите.
CharInfo.java и UserInfo.java прикрепите.
UserInfo.java
final DressMe dress = _player.getDress();
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.HAIRALL));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.REAR));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.LEAR));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.NECK));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.RFINGER));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.LFINGER));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.HEAD));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.RHAND));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.LHAND));
writeD(dress != null ? dress.getGloves() : _player.getInventory().getItemObjectIdFrom(Paperdoll.GLOVES));
writeD(dress != null ? dress.getChest() : _player.getInventory().getItemObjectIdFrom(Paperdoll.CHEST));
writeD(dress != null ? dress.getLegs() : _player.getInventory().getItemObjectIdFrom(Paperdoll.LEGS));
writeD(dress != null ? dress.getFeet() : _player.getInventory().getItemObjectIdFrom(Paperdoll.FEET));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.CLOAK));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.RHAND));
writeD(dress != null ? dress.getHair() : _player.getInventory().getItemObjectIdFrom(Paperdoll.HAIR));
writeD(_player.getInventory().getItemObjectIdFrom(Paperdoll.FACE));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.HAIRALL));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.REAR));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.LEAR));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.NECK));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.RFINGER));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.LFINGER));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.HEAD));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.RHAND));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.LHAND));
writeD(dress != null ? dress.getGloves() : _player.getInventory().getItemIdFrom(Paperdoll.GLOVES));
writeD(dress != null ? dress.getChest() : _player.getInventory().getItemIdFrom(Paperdoll.CHEST));
writeD(dress != null ? dress.getLegs() : _player.getInventory().getItemIdFrom(Paperdoll.LEGS));
writeD(dress != null ? dress.getFeet() : _player.getInventory().getItemIdFrom(Paperdoll.FEET));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.CLOAK));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.RHAND));
writeD(dress != null ? dress.getHair() : _player.getInventory().getItemIdFrom(Paperdoll.HAIR));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.FACE));
CharInfo.java
final DressMe dress = _player.getDress();
writeD(_player.getInventory().getItemIdFrom(Paperdoll.HAIRALL));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.HEAD));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.RHAND));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.LHAND));
writeD(dress != null ? dress.getGloves() : _player.getInventory().getItemIdFrom(Paperdoll.GLOVES));
writeD(dress != null ? dress.getChest() : _player.getInventory().getItemIdFrom(Paperdoll.CHEST));
writeD(dress != null ? dress.getLegs() : _player.getInventory().getItemIdFrom(Paperdoll.LEGS));
writeD(dress != null ? dress.getFeet() : _player.getInventory().getItemIdFrom(Paperdoll.FEET));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.CLOAK));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.RHAND));
writeD(dress != null ? dress.getHair() : _player.getInventory().getItemIdFrom(Paperdoll.HAIR));
writeD(_player.getInventory().getItemIdFrom(Paperdoll.FACE));
Player.java
public void useEquippableItem(ItemInstance item, boolean abortAttack)
{
ItemInstance[] items = null;
final boolean isEquipped = item.isEquipped();
final int oldInvLimit = getStatus().getInventoryLimit();
final DressMe dress = DressMeData.getInstance().getItemId(item.getItemId());
if (item.getItem() instanceof Weapon)
item.unChargeAllShots();
if (isEquipped)
{
if (item.getEnchantLevel() > 0)
sendPacket(SystemMessage.getSystemMessage(SystemMessageId.EQUIPMENT_S1_S2_REMOVED).addNumber(item.getEnchantLevel()).addItemName(item));
else
sendPacket(SystemMessage.getSystemMessage(SystemMessageId.S1_DISARMED).addItemName(item));
items = getInventory().unequipItemInBodySlotAndRecord(item);
}
else
{
items = getInventory().equipItemAndRecord(item);
if (item.isEquipped())
{
if (item.getEnchantLevel() > 0)
sendPacket(SystemMessage.getSystemMessage(SystemMessageId.S1_S2_EQUIPPED).addNumber(item.getEnchantLevel()).addItemName(item));
else
sendPacket(SystemMessage.getSystemMessage(SystemMessageId.S1_EQUIPPED).addItemName(item));
if ((item.getItem().getBodyPart() & Item.SLOT_ALLWEAPON) != 0)
rechargeShots(true, true);
setDress(dress);
}
else
sendPacket(SystemMessageId.CANNOT_EQUIP_ITEM_DUE_TO_BAD_CONDITION);
}
refreshExpertisePenalty();
broadcastUserInfo();
final InventoryUpdate iu = new InventoryUpdate();
iu.addItems(Arrays.asList(items));
sendPacket(iu);
if (abortAttack)
getAttack().stop();
if (getStatus().getInventoryLimit() != oldInvLimit)
sendPacket(new ExStorageMaxCount(this));
}
CharInfo.java и UserInfo.java прикрепите.
error: incompatible types: int cannot be converted to booleanПопробуйте.
Ругаеться на getItemObjectIdFrom в Inventory.javaПопробуйте.
Я сейчас не дома, приеду посмотрю.Ругаеться на getItemObjectIdFrom в Inventory.java
Спасибо огромное, буду ждать.Я сейчас не дома, приеду посмотрю.
Спасибо огромное.В "Player.java" выпилите DressMe полностью, он более вам не нужен.
а именно:
иJava:final DressMe dress = DressMeData.getInstance().getItemId(item.getItemId());
Java:setDress(dress);
Перестало отображаться телоВ "Player.java" выпилите DressMe полностью, он более вам не нужен.
а именно:
иJava:final DressMe dress = DressMeData.getInstance().getItemId(item.getItemId());
Java:setDress(dress);
ДаА если костюм надеть, он отображается?
РазобралсяА если костюм надеть, он отображается?