-
-
Post Thanks / Like - 1 Thanks
JackCeparou (1 members gave Thanks to Stormreaver for this useful post)
-
Active Member
How to customize default ItemsPlugin.cs to speak custom snos?
Hud.RunOnPlugin<ItemsPlugin>(plugin =>
{
plugin.EnableCustomSpeak = true;
plugin.CustomSpeakTable.Add( ??? );
});
-
Savvy ? 🐒
Example for a ralamandi gift
PHP Code:
plugin.CustomSpeakTable.Add(Hud.Sno.SnoItems.Consumable_Add_Sockets, "OMAGAD a gift!");
plugin.CustomSpeakTable.Add(Hud.Sno.SnoItems.Consumable_Add_Sockets_1, "OMAGAD a gift!");
plugin.CustomSpeakTable.Add(Hud.Inventory.GetSnoItem(1844495708), "OMAGAD a gift!");
2 first lines are based on sno code (i don't know which one is the good one)
3rd line is based on the sno id
-
Post Thanks / Like - 1 Thanks
coreyblack (1 members gave Thanks to JackCeparou for this useful post)
-
Active Member
Thank You Jack!
-
Member
TTS needs update considering Necro items!
-
Savvy ? 🐒
Originally Posted by
cherouvim13
TTS needs update considering Necro items!
Well, this plugin is deprecated as KJ as made it in ItemsPlugin :
PHP Code:
Hud.RunOnPlugin<ItemsPlugin>(plugin => {
// false to disable
plugin.EnableSpeakLegendary = true;
plugin.EnableSpeakAncient = true;
plugin.EnableSpeakPrimal = true;
plugin.EnableSpeakSet = true;
plugin.EnableSpeakAncientSet = true;
plugin.EnableSpeakPrimalSet = true;
// define a custom sound
//ISnoItem P6_Unique_Scythe2H_02 { get; } // 2124238310 - Bloodtide Blade
plugin.EnableCustomSpeak = true;
plugin.CustomSpeakTable.Add(Hud.Inventory.GetSnoItem(2124238310), "WONDERFUL");
});
Necro items should work OOTB
Last edited by JackCeparou; 07-17-2017 at 12:08 PM.
-
Post Thanks / Like - 1 Thanks
cherouvim13 (1 members gave Thanks to JackCeparou for this useful post)
-
Active Member
Originally Posted by
JackCeparou
Well, this plugin is deprecated as KJ as made it in ItemsPlugin :
PHP Code:
Hud.RunOnPlugin<ItemsPlugin>(plugin => {
// false to disable
plugin.EnableSpeakLegendary = true;
plugin.EnableSpeakAncient = true;
plugin.EnableSpeakPrimal = true;
plugin.EnableSpeakSet = true;
plugin.EnableSpeakAncientSet = true;
plugin.EnableSpeakPrimalSet = true;
// define a custom sound
//ISnoItem P6_Unique_Scythe2H_02 { get; } // 2124238310 - Bloodtide Blade
plugin.EnableCustomSpeak = true;
plugin.CustomSpeakTable.Add(Hud.Inventory.GetSnoItem(2124238310), "WONDERFUL");
});
Necro items should work OOTB
But with the CustomSpeak, wouldn't it turn out into specify each SnoId that you want it to make a sound for instead of category such as primal and ancient?
Or is this covered by the default setting above?
-
Savvy ? 🐒
Originally Posted by
everknown
But with the CustomSpeak, wouldn't it turn out into specify each SnoId that you want it to make a sound for instead of category such as primal and ancient?
Or is this covered by the default setting above?
Nope, i have a more advanced solution, but it's buggy as hell and if i publish it KJ will find me irl and backstab me in my sleep xD