Quote:
Originally Posted by fowlplay4
Oh well there's public functions.
In your DB-NPC (named Example in this case):
PHP Code:
public function onRandFunc() {
echo("success!");
}
Then in your level npc:
PHP Code:
function onCreated() {
findnpc("Example").onRandFunc(); // Would echo success! on RC
}
|
No reason at all to use findNPC.
PHP Code:
Example.func();