I fixed the code, I have no coding skills and used ChatGPT to figure it out.
Your Welcome!
private void GiveLoadout(ScientistNPC npc)
{
if (npc != null)
{
/*
var inv_main = npc.inventory.containerMain;
*/
var inv_belt = npc.inventory.containerBelt;
var inv_wear = npc.inventory.containerWear;
/*
Item pooky = ItemManager.CreateByName("pookie.bear", 1, 0);
*/
Item hat = ItemManager.CreateByName("hat.boonie", 1, 841998387);
Item hoodie = ItemManager.CreateByName("hoodie", 1, 852449747);
Item pants = ItemManager.CreateByName("pants", 1, 1464539276);
Item boots = ItemManager.CreateByName("shoes.boots", 1, 839852365);
Item weapon1 = ItemManager.CreateByName("shotgun.pump", 1, 0);
inv_wear.Clear();
/*
if (pooky != null) pooky.MoveToContainer(inv_main);
*/
if (hat != null) hat.MoveToContainer(inv_wear);
if (hoodie != null) hoodie.MoveToContainer(inv_wear);
if (pants != null) pants.MoveToContainer(inv_wear);
if (boots != null) boots.MoveToContainer(inv_wear);
if (weapon1 != null) weapon1.MoveToContainer(inv_belt);
string scientistSuitShortname = "hazmatsuit_scientist";
// Find the "Scientist Suit" item in the NPC's inventory
Item scientistSuitItem = npc.inventory.containerMain.itemList.FirstOrDefault(item => item.info.shortname == scientistSuitShortname);
// Remove the "Scientist Suit" item if found
if (scientistSuitItem != null)
{
scientistSuitItem.RemoveFromContainer();
PrintToChat(npc, "The Scientist Suit has been removed from the NPC's inventory.");
}
}
else
{
Puts("Huntsman was not fully spawned yet skipping [GiveLoadout]");
}
}
When you kill the Huntsman, he has invisible Scientist Suit that shows up in the inventory that you can't move around or see or remove. Also when you go to recycle it turns it into raw items forever.
I was wondering if you can have a option to limit how many notices per plugin updates for discord web hook, so it doesn't repeat over and over or make it so it only sends every so many hours in day or once a day. I get a notice every time it checks and that should be different for the discord notice I would think. I don't know how you can do it, just needs a bottle neck of some sort.
Thank You!
Is there a way for you to filter out paid vs free, because the UpdateChecker Keeps saying to update to paid version, its a good marketing strategy, maybe add that to the update. Oh you don't have the paid version, your not supporting the DEVS, Shame on you! BRIGHT RED CAPS!
Oh and its showing links that don't exist. There is no ver. 1.4.
I really like this this plugin and think you did great job so far, keep up the great work!
[UMOD] Plugins:
[CODEFLING] Plugins:
Puzzle Points 1.2.3 -> 1.4 LINK TO DOWNLOAD ->
<
[LONEDESIGN] Plugins:
[CHAOSCODE] Plugins:
[MYVECTOR] Plugins:
Monument Plus Lite 1.0.6 -> 1.0.30 LINK TO DOWNLOAD ->
Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.