View Full Version : New Hook for Custom DB

12-17-2013, 09:58 AM
Need help by a problem.
I got a DB with Entrys: AccountID and VIP
and i have a script that asks if player is in area xy and is vip...
so now i need a function that can request datas from custom DBs.

Maybe someone can help me? Is it possible to script such a function? And how?

12-17-2013, 12:54 PM
There is no such possibility atm. I'm unsure if Lua can query db, which would be awesome and worth looking into
I was about to create a possibility to connect to new databases, but some problem with how to handle things and army stopped me.
This will likely be added. But as we are working on mangos atm, its likely going to be added there first.

12-17-2013, 03:56 PM
As a workaround you can either copy the said tables over to the world or account databases, or you can set up a virtual table, taking the values from the original table and pointing to the new tables in the world or account databases.

12-17-2013, 05:15 PM
Ok switch the Tables into the world db... and now??