Communication between a Class and DB NPC?
Goal: For this example each time a player says "debug" the database is triggered which it in turn triggers back to the class and updates every NPC that is joined to it.
So this is where I started which works. PHP Code:
So bottom line is I need help again. Can what I'm trying to do be accomplished? |
One way to do it is to use trigger()
PHP Code:
PHP Code:
PHP Code:
|
Very interesting stuff happening there. I wasn't aware of the trigger command. It will be useful to know for the future.
I did have trouble with the 1st and 3rd example. The 1st example wouldn't execute Kirko.doSomething("Test") outside of the onCreated() function. The 3rd example just didn't work period. The 2nd method worked but didn't have the effect I was looking for. So I'm still looking to find a way to update every NPC that has joined a specific class. These methods seem to only impact the specific NPC that triggers the doSomething command. |
There is other methods
example PHP Code:
|
All times are GMT +2. The time now is 09:06 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.