Quote:
Originally Posted by Tim_Rocks
Maybe this is what you're looking for.
DB_test:
PHP Code:
function onCreated() {
this.item_100 = "test";
}
public function findItem(temp.id) {
return this.(@ "item_" @ temp.id);
}
Script:
PHP Code:
function onCreated() {
this.id = 100;
}
function onPlayerTouchsMe() {
player.chat = DB_test.findItem(this.id);
}
|
Thanks for the reply, but I still can't get anything to work. Does it matter what level the npc database is in? It keeps making the chat 0, I have tried altering it a bit still can't figure it out

.