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).
Please help, auto banking script/package
-
- Posts: 1
- Joined: Fri Mar 29, 2024 12:00 am
Re: Please help, auto banking script/package
Okay, so let me try to break this down into discrete elements, and you can provide correction if necessary. These are the tasks any script/package would need to perform, as I understand it.
1) Detection of key events: gold carried by character, gold deposited in bank, arrival at city port.
2) Movement: from port to bank, and bank to port, using provided path info for each city.
3) Banking: attempt to deposit gold into bank accounts, rotate to next account if one is full, track gold carried.
4) User Direction: set deposit thresholds and amounts, account numbers, user triggered banking when automated banking not triggered.
This is a simple script I threw together that I think should do what you are asking, though you'd need to provide all the relevant triggers and aliases
1) Detection of key events: gold carried by character, gold deposited in bank, arrival at city port.
2) Movement: from port to bank, and bank to port, using provided path info for each city.
3) Banking: attempt to deposit gold into bank accounts, rotate to next account if one is full, track gold carried.
4) User Direction: set deposit thresholds and amounts, account numbers, user triggered banking when automated banking not triggered.
This is a simple script I threw together that I think should do what you are asking, though you'd need to provide all the relevant triggers and aliases