![]() |
Storing Information with DB-NPCs
I've been seeing a lot of posts about using DB-NPCs to store information, and I just wanted to know what is meant by this, and how it is accomplished, as it would be quite handy for a few things I've scripted already which require some method of storing information.
Can someone enlighten me? |
Create a DB NPC named Test.
PHP Code:
If you're having trouble with DBNPC flags resetting or rolling back (I haven't experienced this in the past few years, but I seldom use DBNPCs for data storage anymore), use: PHP Code:
Keep in mind that you can only access DBNPC data from serverside. |
So it's basically storing flags in a DB-NPC as opposed to saving them in the server flags?
|
Quote:
|
Thanks for the enlightenment.
|
Quote:
|
Quote:
|
Doing this is cool too:
PHP Code:
PHP Code:
|
All times are GMT +2. The time now is 12:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.