View Full Version : TrinityCore 3.3.5 needing help through developing some script

06-22-2016, 03:15 PM
Hey guys. It's been long time I left developing and now I'm back cuz I've started on working on a project. I have some questions and thank you here for reading my post and answering the right question :help:

Well actually I'm working on my own VIP System, I know there are some script I can use for free but I want to create my own special so,
Where is the best place that I can read from database when maybe player logins (?) and use it through the whole project.
I mean I read the vip data through the database by queries and save it in some structs.
After that, How I can call it when its not global ?

06-22-2016, 04:36 PM
You could save the data to the player or worldsession class.
This way whenever you have the player or worldsession you have access to the VIP information.
The info can be loaded on login or something.

Another way could be having it all in memory as global variable, but not sure you should do that.