Quote:
Originally Posted by sssssssssss
Removed that, and of coarse its still not working. I do need to use the dbnpc for this, because every guild will be able to upload a flag, and that is what Im trying to show up, so the image will be different depending on what guild you are in, being stored in the dbnpc. It also needs to find the dbnpc, which is why the this.db.whatever is in there, everything else searching through the dbnpc to pull up values works except this particular thing.
any ideas on how to fix?
|
PHP Code:
function onCreated() {
this.db = findnpc("db_registeredguilds");
}
function onActionServerSide(action, acton) {
if (temp.action == "getImage"){
triggerclient("weapon", this.name, "getFlag", this.db.guilds.(@player.guild).flag);
}
}
If I'm not mistaken, a DBNPC doesn't read the player object, unless using findPlayer(), except in the Control-NPC.