• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

TrinityCore 3.3.5 needing help through developing some script

Big

Member
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 ?
 

Rochet2

Moderator / Eluna Dev
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.
 
  • Like
Reactions: Big
Top