here a example, this dont work too...
NPC Code:
if (created) {
setimg sign.png;
}
if (playertouchsme) {
with(getnpc(Control-NPC)){
setstring server.temp,#s(this.hat);
}
setstring this.hat,#s(server.temp);
say2
The newest Hat is #s(this.hat);
setstring server.temp,;
}