The idea is that, when enabled on a server, a level NPC (or putnpc[2] NPC), the only operations allowed are assignment to this. variables, calling exposed functions (maybe with a keyword?), and joining classes.
GS1:
NPC Code:
if (created) {
this.somevar = 1;
function();
}
join("class");
GS2:
NPC Code:
function onCreated() {
join("class");
this.somevar := 1;
functon();
}
This would increase security immeasurably as level administration, etc, can have access to levels but not access to the scripts themselves, they can only control the configuration of those NPCs. This of course would not affect clientside scripts, weapons, or DB NPCs.
Any comments?
