[DiscordArchive] ```Converting Ballista.m2
[DiscordArchive] ```Converting Ballista.m2
Archived author: Crow • Posted: 2022-10-17T18:21:36.239000+00:00
Original source
hmmmmmmmmmmmmmmmmmmmm
Archived author: Crow • Posted: 2022-10-17T18:21:51.984000+00:00
Original source
sounds like I have to make a new check
Archived author: Crow • Posted: 2022-10-17T18:22:04.556000+00:00
Original source
CanGladGrip or something
Archived author: robinsch • Posted: 2022-10-17T18:25:08.696000+00:00
Original source
Yeah or just check for aura id
Archived author: Crow • Posted: 2022-10-17T18:26:18.601000+00:00
Original source
ah ye
Archived author: Crow • Posted: 2022-10-17T18:45:26.770000+00:00
Original source
i just went down to the two-handed part and said
```
if (CanTitanGrip() && HasAura(79802) && !pProto->SubClass == ITEM_SUBCLASS_WEAPON_POLEARM)
{
Item* offItem = GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND);
if (offItem)
return EQUIP_ERR_ITEM_CANT_BE_EQUIPPED;
}
```
Archived author: Crow • Posted: 2022-10-17T18:55:43.140000+00:00
Original source
damn, didnt work
Archived author: Crow • Posted: 2022-10-17T18:55:49.243000+00:00
Original source
now trying
```
if (CanTitanGrip() && HasAura(79802) && pProto->SubClass != ITEM_SUBCLASS_WEAPON_POLEARM)
{
Item* offItem = GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND);
ItemPosCountVec off_dest;
if (offItem && (!not_loading ||
CanUnequipItem(uint16(INVENTORY_SLOT_BAG_0) << 8 | EQUIPMENT_SLOT_OFFHAND, false) != EQUIP_ERR_OK ||
CanStoreItem(NULL_BAG, NULL_SLOT, off_dest, offItem, false) != EQUIP_ERR_OK))
return swap ? EQUIP_ERR_ITEMS_CANT_BE_SWAPPED : EQUIP_ERR_INVENTORY_FULL;
}```
Archived author: Crow • Posted: 2022-10-17T19:00:35.250000+00:00
Original source
didnt work
Archived author: Crow • Posted: 2022-10-17T19:22:52.707000+00:00
Original source
ah yeah, adding checks to FindEquipSlot and AutoUnequipOffhandIfNeed