Chucl

Member
ServUO Version
Publish Unknown
Ultima Expansion
None
Anyone? thank you , im kidna lost btw im using Old Runuo 2.2
 
That version of RunUO specifically uses DateTime.Now for these checks, 2.3 and everything after uses DateTime.UtcNow, just something to keep in mind if you port any code from later versions...

Code:
if ( mobile.LastMoveTime.AddMinutes(10) >= DateTime.Now )
{
  // they have moved within the last 10 minutes
}
else
{
  // it has been longer than 10 minutes since they last moved
}
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back