Well, the NPC Server version would be something like this:
NPC Code:
if (created) {
this.id=0; //Change to another number for different doors
setshape 1,width,height; //You'll need to change width height to the image width and height in pixels
}
if (playerchats&&strequals(#a,Lugie)) {
if (startswith(set owner #v(this.id),#c)) {
tokenize #c;
if (tokenscount>3) {
for (i=3;i<tokenscount;i++) setstring this.owner,#t(i); //This is so that it works with accounts with a space in them
setplayerprop #c,Owner of room #v(this.id) set to #s(this.owner);
}
else setplayerprop #c,Please define a accountname after saying set owner;
}
}
if (playertouchsme) {
if (strequals(#a,Lugie)) setplayerprop #c,The room #v(this.id) is owned by #s(this.owner);
if (strequals(#a,#s(this.owner))) {
if (playery>y) playery=y-3;
else playery=y+3;
}
}