Scholar Account Setup

in Open Genie8 months ago (edited)

Simple set of 3 functions:

  • Create Bid for SPS
  • Rent Cards (pre-set list)
  • Set Reward Delegations

The idea is:
Run these 3 functions on a specific schedule for an account. It would rent SPS and cards then set Reward Delegations for the scholar. The scholar would then have 48hrs to pilot the account until the rentals ran out. The Reward Delegations would revert.

This is a post created on the open genie platform you can view it best on this user interface: https://genie.peakd.com/@axrho/scholar-account-setup-1722283733023

Sort:  

@klye

Assigned - Genie chosen

Congratulations @axrho! You received a personal badge!

Happy Hive Birthday! You are on the Hive blockchain for 3 years!

You can view your badges on your board and compare yourself to others in the Ranking

Check out our last posts:

Hive Power Up Day - August 1st 2024

Oh yah, I almost forgot. Started in SPL on 7/27/21- SPS AD Day.


🎉🎈🎂🎉🎈

Happy Hive Birthday @axrho

Congratulations on your journey so far!

If you like our badges and us keeping track of your achievements, we need your help!

Thank you.

All you need to do is to click on the "support" button on our proposal page: https://peakd.com/proposals/248. It won't cost you anything!

Would the "scholar" account not need the base pack for this to be feasible with their account?

As far as I remember you can't play SL without first purchasing the "starter pack" or whatever it's called... Tome or something like that.

Link to my account: https://genie.peakd.com/@klye

No, the 'Scholar' would not need to purchase a 'Spellbook'

I have accounts the scholar could use.

These accounts have the Spellbook then?

I could rip the function from the SL site to check for that.. Sanity checks to ensure proper execution of code functions is pretty important, what may seem like 3 simple functions is likely closer to a dozen functions by time you add the checks and balances, load balancers, API node test/changers, etc etc etc... and this is before any sort of GUI involvement.

I( can likely facilitate the code in order to accomplish this... Are you looking for something with a UX/GUI or just a simple app/script that you can run?

Are your accounts a CSV list or JSON object, or simple text document? How many accounts are we talking? We can likely hash out your exact requirements beyond the core objectives and get a build going here shortly.. Working on a few other things at the moment as well, but if this wish is something feasible for me to bang off quick here... Will certainly do so.

A) Yes, these accounts have the Spellbook.

B) Simple app/script is all I'm looking for.

C) The will only be 2 Accounts/instance.

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:

  • Account A Starts (rents cards/sets delegation)
  • At 24hrs, Create SPS Bid for Account B
  • At 48hrs, Rentals for Account A expire and Account A 'goes dormant' (Delegations Revert)
  • At 48hrs, Account B Starts (rent cards/set delegation)

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

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.

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.

Yes, you would need a Spellbook to be able to earn on the account. I guess he didn't include this entry-level step in the process since it is only a one-time fee and does not need to be repeated to allow a scholar to play the account. I just assumed this list would be to get any random player to get started to scholar on a pre-existing account.

The accounts used in this scenario, would be mine. I have several accounts that I'm not using for anything.

Yeah... I'm just trying to narrow down all the fringe cases or potential snags something like this would have... 80% of software engineering is architecture design (often in ones mind) and sanity checks, with the other 20% being bug hunting and actual typing. :P

Alright. Started writing this script.

I'll get it done tonight / work overnight to get it working and tested. Can I "dibs" this wish in this case?

Get ahold of me on discord _klye_ or klye#0320 if you're in need of specifying additional parameters or function/methods required.

Link to my account: https://genie.peakd.com/@klye

Alright I've isolated all the calls required for your function flow.

Currently writing the functions for the app to operate, will test tonight and hopefully have a feasible script for you in the next 2 to 12 hours.. :D

Link to my account: https://genie.peakd.com/@klye