If Floor(#PARAM1)=GetUserFlag(0,16)
	;If less than 0, a NPC is running the event
	If GetUserFlag(1,16) > 0
		SendMessageToAll(GetUserName(GetUserFlag(1,16))+"'s auction of "+GetItemName(GetUserFlag(0,17))+" has expired!", #MSG_SERVER)
		GiveItem(GetUserFlag(1,16),GetUserFlag(0,17))
	Else
		SendMessageToAll("Master Regulus's auction of "+GetItemName(GetUserFlag(0,17))+" has expired!", #MSG_SERVER)
	EndIf
	RemoveItem(683,GetUserFlag(0,17))
	SetUserFlag(0,16,0)
	SetUserFlag(1,16,0)
	SetUserFlag(0,17,0)
Endif
Continue = 1