Please help, auto banking script/package
Posted: Fri Mar 29, 2024 7:51 am
I need some assistance please, if possible, on setting up a package of triggers, variables, aliases, and or scripts that will do automated banking for a character when a threshold of money is accumulated. I've tried to make it work via just a bunch of triggers and an alias or two but I keep having issues with something not working and breaking the chain of triggers so it goes haywire and spams a zillion commands. I haven't found a way to view the table/database in this client visually like I'm used to with zmud so I'm having issues working with it. It needs to have ability for player to add and store/modify information into a table/database. My understanding of LUA is almost non-existant but I'm trying to learn, its just slow goings, making this whole process take that much longer for me to troubleshoot.
Things to prompt player for: Names of Citys (1-8), paths to and from Port and Bank in City(all are unique(to and froe are mirrored possible to only enter the to path?), all seperated via commas or something), an adjustable amount of gold(1-10000) the player can set(one to control when to deposit, one to control how much to deposit each time), and a collection of bank accounts(safes) identified via numbers(1-10 5 digit numbers).
Way it will hopefully work: Upon reaching a city it will trigger off the Citys name if the gold threshold was reached or if commanded by player(wait till City name is seen to start next part if activated by player(I think this is where my mass of triggers messes up the most)), path the unique path to the Bank(anywhere between 1 and 20 rooms apart), make a deposit into whichever account(s), then path back(this is another spot my system fails because it sees the City name again and I dont know how to stop it from reactivating), and then do some echo to announce completion.
Examples of things to trigger off of: the Kingdom of (.*), you have (.*) gold, puts (.*) gold in your safe, that safe is full.(progress to next safe number).
Things to prompt player for: Names of Citys (1-8), paths to and from Port and Bank in City(all are unique(to and froe are mirrored possible to only enter the to path?), all seperated via commas or something), an adjustable amount of gold(1-10000) the player can set(one to control when to deposit, one to control how much to deposit each time), and a collection of bank accounts(safes) identified via numbers(1-10 5 digit numbers).
Way it will hopefully work: Upon reaching a city it will trigger off the Citys name if the gold threshold was reached or if commanded by player(wait till City name is seen to start next part if activated by player(I think this is where my mass of triggers messes up the most)), path the unique path to the Bank(anywhere between 1 and 20 rooms apart), make a deposit into whichever account(s), then path back(this is another spot my system fails because it sees the City name again and I dont know how to stop it from reactivating), and then do some echo to announce completion.
Examples of things to trigger off of: the Kingdom of (.*), you have (.*) gold, puts (.*) gold in your safe, that safe is full.(progress to next safe number).