[DiscordArchive] Does it even load from the database while it's running or is it just on startup and the rest is just
[DiscordArchive] Does it even load from the database while it's running or is it just on startup and the rest is just
Archived author: Revision • Posted: 2023-03-07T23:00:42.935000+00:00
Original source
Does it even load from the database while it's running or is it just on startup and the rest is just saves?
Archived author: witnes0730 • Posted: 2023-03-07T23:11:11.792000+00:00
Original source
Guess thats my question. I can manipulate the database prior to loading the core in a script, but once the core is loaded, my changes are not reflected until next restart.
Archived author: Honey • Posted: 2023-03-07T23:18:16.308000+00:00
Original source
That's how the whole core works on most levels. Data is read into a container and periodically saved to the db.
Tldr; never modify the db at runtime.
Archived author: Honey • Posted: 2023-03-07T23:18:28.364000+00:00
Original source
Unless you know exactly what you're doing.
Archived author: witnes0730 • Posted: 2023-03-07T23:20:47.251000+00:00
Original source
Thanks for the reply. Thats what I was afraid of. I didnt want to write a module. Yes, I understand how the database works, Ive worked with sql/mysql for decades. * I wrote a bash script to populate the alliance/horde side of the auction house with 1000's of random items via ACCOUNT (10 characters) and not one character like the AH_BOT does - that are close to real life auction house. I was just looking if it I could update it periodicaly while the core was running.
Archived author: Revision • Posted: 2023-03-07T23:22:08.776000+00:00
Original source
Why not just use the ahbot in that case?
Archived author: Revision • Posted: 2023-03-07T23:22:33.993000+00:00
Original source
I mean, it's better than nothing
Archived author: witnes0730 • Posted: 2023-03-07T23:22:54.849000+00:00
Original source
It only uses one character - My script uses multiple characters making it more realistic. Besides, ahbot is limited on what it uses
Archived author: Revision • Posted: 2023-03-07T23:22:56.550000+00:00
Original source
I'm also not sure if you can even add auctions without a character, I would assume not since the ahbot requires one.
Archived author: Revision • Posted: 2023-03-07T23:24:04.030000+00:00
Original source
You could look at the code for the ahbot and make your own module I guess