
05-14-2009, 04:30 AM
|
|
Will work for food. Maybe
|
 |
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
|
|
default class
|
I've heard it suggested before to release the default stuff to servers so they can edit it... but I'm not sure if we'll ever see that.
So what I suggest is a class called default that is created with the server. All functions created in this class are ran BEFORE the default functions. This way, we can overwrite default functions ourselves, to maybe make custom systems more backwards compatible.
For example, if I make the function:
function say2(txt) {
player.chat = txt;
}
in the default class, all say2 functions will instead set the player's chat to the text rather than open a sign. I'm not sure how possible this is, or what kind of security risks there are, but just thought I'd see what others thought. |
|
|
|