[DiscordArchive] ```Converting Ballista.m2
[DiscordArchive] ```Converting Ballista.m2
Archived author: Crow • Posted: 2022-10-17T17:46:12.150000+00:00
Original source
Im increasingly convinced the ONLY solution is to write a script that detects the separate custom "titans grip" aura using an OnEquip function that removes the items when they dont fit the criteria
Archived author: Crow • Posted: 2022-10-17T17:46:35.244000+00:00
Original source
cant imagine thats actually efficient
Archived author: robinsch • Posted: 2022-10-17T17:47:15.818000+00:00
Original source
I have no clue what you are searching for
Archived author: robinsch • Posted: 2022-10-17T17:47:19.584000+00:00
Original source
> CanTitanGrip
Archived author: robinsch • Posted: 2022-10-17T17:47:23.485000+00:00
Original source
gives tons of results
![[Image: unknown.png?ex=690c3684&is=690ae504&hm=9...baa858f35&]](https://cdn.discordapp.com/attachments/415944535718494208/1031624586653089862/unknown.png?ex=690c3684&is=690ae504&hm=9cd9a8410ecfce27d57d86710d366dc9e18f4b6423e3d105cc3e1dcbaa858f35&)
Archived author: robinsch • Posted: 2022-10-17T17:47:48.202000+00:00
Original source
![[Image: unknown.png?ex=690c3684&is=690ae504&hm=9...baa858f35&]](https://cdn.discordapp.com/attachments/415944535718494208/1031624586653089862/unknown.png?ex=690c3684&is=690ae504&hm=9cd9a8410ecfce27d57d86710d366dc9e18f4b6423e3d105cc3e1dcbaa858f35&)
Archived author: Crow • Posted: 2022-10-17T18:03:10.248000+00:00
Original source
Trying to determine how to descriminate specific items to be "titans gripped"
Archived author: Crow • Posted: 2022-10-17T18:03:27.146000+00:00
Original source
Im now believing i can edit the function entirely
Archived author: Crow • Posted: 2022-10-17T18:03:32.684000+00:00
Original source
```void Spell::EffectTitanGrip()
{
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT)
return;
if (m_caster->ToPlayer()->HasAura(46917))
{
if (m_caster->GetTypeId() == TYPEID_PLAYER)
m_caster->ToPlayer()->SetCanTitanGrip(true, effectInfo->MiscValue);
}
else if (m_caster->ToPlayer()->HasAura(79802))
{
Item* mainItem = m_caster->ToPlayer()->GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_MAINHAND);
if (mainItem && mainItem->GetTemplate()->SubClass == ITEM_SUBCLASS_WEAPON_POLEARM)
{
if (m_caster->GetTypeId() == TYPEID_PLAYER)
m_caster->ToPlayer()->SetCanTitanGrip(true, effectInfo->MiscValue);
}
else
if (m_caster->GetTypeId() == TYPEID_PLAYER)
m_caster->ToPlayer()->SetCanTitanGrip(false, effectInfo->MiscValue);
}
}```
Archived author: Crow • Posted: 2022-10-17T18:03:50.847000+00:00
Original source
79802 being the custom version that specifically only does polearms