dollyti

Member
Hey all,

I was trying to use a premiumspawner gem to create some spawning rares. However, I can't seem to edit the Decays field for the item once its spawned. So after an hour the item decays and that creates a bit of a problem for most of the rares I want to spawn.

Anyone know how I could go about fixing this or perhaps suggest another way to do rares?

I'm pretty new to all of this

Thanks!
 
Did you ever figure this out? is there an override for the decay bool?
If the item decays the spawner should spawn another one, you can set the min/max spawn time to adjust how quickly you want a new one to spawn. Decay time is going to depend on what your server is set to. You can change the decay times for all items in item.cs.

Additionally you should be able to add a line in the script of the items you want not to decay that will override the global setting like:
Code:
public override bool Decays { get { return false; } }

For global item decay, change this setting in Item.cs and recompile
Code:
private static TimeSpan m_DDT = TimeSpan.FromMinutes( 60 );

Maybe this will point you in the right direction. https://www.servuo.com/threads/decay-rates.4654/#post-30054
 
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back