A nifty addition to the game would be able to establish functions on a global scope (Functions accessible to all npcs).
Maybe have all NPCs automatically run this on creation: "function onCreated() this.join("globalfunc");"
This would be very appreciated, and quite useful.
e.g.:
PHP Code:
CLASS_GlobalFunc
function reportIn()
{
echo("Reporting " @ this.id @ " in " @ this.level @ "(" @ this.x @ "," @ this.y @ ").");
}
&
PHP Code:
LOCAL_NPC
function onCreated()
{
reportIn();
}