OPC Scripts

OPC Scripting is a way to script/automate functions for your OPC to do while your offline. Little is known about its current state, or its features. But, we can assume that it can be used to automate general tasks, including a blacksmith to automate his smithing of tools, etc. (Citation Needed)

The original concept was to write code in C#/JScript (ECMAScript) using Hooks that the game/engine provided, then to submit the script via either a in-game or website-based utility. Then, the script would be parsed/compiled/debugged, etc, before being able to implement it (or parts of it) as logic in your OPC.

From a technical perspective, the C#/JScript code is compiled in to a .NET assembly on the server and is then loaded into a protected AppDomain where it's ran in isolation and monitored for performance issues. Then, your OPC DLL is sent messages to which it can respond to using methods overridden from a base class.