Any need for HP / RC / Mana monitoring in order to ensure the account in question has enough resources to perform the actions needed?
2 accounts per an instance is arbitrary? It's honestly easier to design the thing to handle the total amount of accounts needed now and possibly in the future then break it up into a bunch of apps clustered running different accounts.. It's a file access / data integrity nightmare to have identical scripts running unless it's been specifically designed to play nice while running clustered.
Any need for logging / history / etc etc? Or do you prefer an app with only the output required to view it's operating as intended?
Just about got this nailed down I think.. Will probably take a few hours to get the thing running properly (bouncing between tasks today, busy monday) but I'm willing to take a crack at this.
No, no need for HP/RC/Mana monitoring- I have plenty of that for these accounts.
2 Accounts/Instance isn't arbitrary. The 'overall' picture is:
Which kicks off the next cycle.
For SPL, an account can 'store' 50 Energy. Each account gains 1 Energy/hr. Playing a game costs 1 Energy. Card Rentals are 48hrs.
For each Instance, there would be 2 Accounts. Each account would be active for 2 days and dormant for 2 days.
At 'handoff'- the newly active account would have stored up ~48 Energy. This would allow the scholar to play ~96 Battles over the next 48hrs, while the dormant account would be storing up Energy for the next cycle.
State management between applet closure is likely the most involved part of this to be honest. You know SQL eh? I'd propose using sequelize ORM with MariaDB(SQL of choice for me) or maybe a SQLite DB?
Appreciate the further flush out of the intended design / actions. Helps immensely
OR....
We
node-cron
everything and avoid the DB altogether for this initial biuld././ leave that for you to do?node-cron and some .json files persisted to disk should be enough you reckon?
yes, that sounds pretty ideal
Side note.. My main coding language is JS/NodeJS/Typescript...
I can leave detailed instructions on how to install and run the script, or if required compile into an executable (depending on your OS).
Your call. Been a while since I messed with SL bots, but have some pre-existing code here I hopefully can leverage/modify to get your wish granted.
I know JS and can work my way through the rest (mostly fluent in SQL)
Will probably install this script on a Google Cloud so it just.... runs.
Ah, right on!
I'll leave the history and whatnot to you then.
Going to start on your script core here shortly!
Will try and get it done tonight.. worst case be done by noon Wednesday?
Wednesday sounds wonderful, TBH
Right on!
Going to start building the core functions out here tonight so we can test tomorrow.
As for compensation I'll give you benefit of the doubt and assume you're not gonna stiff me on the pay. I need the income but also don't feel like you're going to grift me for free code.. Plus you code as well, so you "get it" about developibng for others. If you weren't a coder yourself I'd be more hesitant.
Talk soon! I'm
_klye_
on discord if you want to DM there to help clarify or help guide the functions + sanity checks + persistance stuff... Going to use node-cron module for the scheduling.Side note: I'd personally never run code given to me by anyone online without it being audited / read through with my own eyes.. Always be careful with software acquired online, in this case I'm not malicious in the slightest but I can't speak for all HIVE devs.
Cheers! talk soon.