View Single Post
  #1  
Old 05-03-2005, 04:27 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Server Option: noscripts (or classesonly?)

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?
Reply With Quote