in the class, I think you need
//#CLIENTSIDE
not too sure, but, by looking over loriel's scripts, most of his classes have the same functions done serverside and clientside.
Example:
NPC Code:
// Loriel's script
function addmessage() {
addstring client.addmessage,#s(this.msg);
setstring this.msg,;
}
function clearmessages() {
set client.clearmessages;
}
//#CLIENTSIDE
function addmessage() {
addstring client.addmessage,#s(this.msg);
setstring this.msg,;
}
function clearmessages() {
set client.clearmessages;
}
Not sure if you've already tried that, but, I don't have access to an NPC-server, and it's been 2+ years since I've messed around with classes.