[DiscordArchive] So you are just looking for a fix to material?
[DiscordArchive] So you are just looking for a fix to material?
Archived author: <o> • Posted: 2023-06-19T11:41:32.492000+00:00
Original source
yeah i assumed i wouldn't be able to override the actual thing, but with no sound at all i have some room to play with i guess
Archived author: robinsch • Posted: 2023-06-19T11:53:02.573000+00:00
Original source
This is how the client reads it:
```cpp
if ( itemID >= g_ItemDB.m_minID && itemID <= g_ItemDB.m_maxID && (itemRec = g_ItemDB.Rows[itemID - g_ItemDB.m_minID]) != 0 )
m_displayInfoID = itemRec ->m_displayInfoID;
else
m_displayInfoID = 0;
if ( ItemDisplayInfoDB::GetRecord(&g_ItemDisplayInfoDB, m_displayInfoID, &itemDisplayInfoRec) )
{
if ( itemDisplayInfoRec.m_groupSoundIndex < g_ItemGroupSoundsDB.m_minID || itemDisplayInfoRec.m_groupSoundIndex > g_ItemGroupSoundsDB.m_maxID )
this->m_soundKit = 0;
else
this->m_soundKit = g_ItemGroupSoundsDB.Rows[itemDisplayInfoRec.m_groupSoundIndex - g_ItemGroupSoundsDB.m_minID];
}
else
{
this->m_soundKit = 0;
}
```
Archived author: robinsch • Posted: 2023-06-19T11:56:37.140000+00:00
Original source
I guess the easiest for you is to point it to an invalid itemdisplayinfo and then just play the sound yourself in lua.
Archived author: <o> • Posted: 2023-06-19T11:58:47.655000+00:00
Original source
that's what i can do with the existing patch since it doesn't play any sound at all for non-entries. if i ever feel like fixing the patch itself i might go the client route so i appreciate the links, but for this job i'm not getting paid enough to re something like that