simply finding the NPC on it's own in your script will not do anything.
You need to have a var point to it after returning it.
Also, you cannot read this.vars from server to client like that.
My suggestions are to move nearly everything out of the clientside, store the few things you want accessible by GUI into the DB NPC's attribute array, copy the attribute array to the level NPC (although a weapon would probably be better for guild GUI related things), then display on clientside.
Example -
PHP Code:
function onCreated()
{
this.cont = findnpc("mydbnpc");
copyAttrs();
}
function copyAttrs()
{
for(temp.i = 0; i < 30; i++)
{
this.attr[i] = this.cont.attr[i];
}
}
//#CLIENTSIDE
function onCreated()
{
//GUI stuff here, use attrs as you please to sort things out...
}