I have this Corpse Retriever script that I fixed some bugs in and now works perfectly except the time displayed before your body decays is way off. Someone in the thread that it was posted in said they fixed it by using UtcTime and not TimeNow. I don't know if they don't come around anymore but a few weeks ago I asked him if he could share where he made that change and I haven't heard back so I thought I would ask for help here. I did a search in the script for TimeNow and it came up empty. There is a lot of time fields but I don't want to just start changing things and break it. If anyone could tell me how I could get the time displayed before your corpse decays to be correct and not way off I would love you.

The script it attached.
 

Attachments

  • [ServUO.com]-Corpse Retriever.cs
    32.3 KB · Views: 6
DateTime.Now was replaced with DateTime.UtcNow
Do you mean this in the context of ServUO/RunUO, or .Net in general? Reason I ask is they both exist in .Net and for different reasons, "DateTime.UtcNow" did not replace "DateTime.Now" in the context of .Net.
 
Back