I would like to ask if there is already a bot/tool/script that allows a certain number of specific items from the Xunlai chest to be automatically taken out, traded, and stored in the chest again. I have no experience in writing or using bots/scripts in games, so I am completely new to this area.
Specifically, here's the situation: For our small private guild, we have a separate account as a sort of guild bank, where the items collected weekly by Nicholas are stored and organized in the chest. Currently each player collects the items and, when needed, the guild bank account is traded with (it runs on a second computer and the character chills in the guild hall) and the items are transferred. The same applies to the items collected during the week. The trade is conducted manually.
What I would like is a bot/tool/script that does the following:
- Give Items: When one of the characters from specific accounts trades with the guild bank character and makes a blank offer, it should take a certain number of the currently collected Nicholas items from the chest, drag them into the trade window and accept the trade.
- Take items: When the guild bank character is traded with and no blank offer is made, it should create a blank offer and then accept the trade, if one of the collected items (and no other ones) is included. Before accepting, it should check whether the total amount of that item (in the chest and trade window or inventory) would exceed 250 after the trade. If so, it could even send a message to the trading character via chat, informing them about which item is involved; alternatively it could destroy the excess of that specific item, if 250 of it are already in the chest.
- Store items: If it receives a corresponding Nicholas item, it should place it in the chest.
I doubt there is a ready-made script for this rather specific case. While I am somewhat beginner-experienced in writing small scripts (Python) and can handle code to some extent, I unfortunately have no idea where to start when it comes to writing a solution for this (I don't know how such scripts for Guild Wars work).
I have the following solution ideas, but I have no clue how to implement them:
- The whitelisted accounts are added as friends; each character from these accounts is authorized to trade. Alternatively the character names are stored in an array and associated with their respective account.
- An array is created with all of Nicholas' collected items, indicating which slot each item is in within the chest's register as well as how many Nicholas collects of each item during the week.
- After 7 days the next item in the list is marked as the current collected item. Once all items have been cycled through, the loop starts again from the beginning.
- During the current period it keeps track of which accounts or characters have already received the current collected item, so it doesn't get distributed multiple times.
- Not a requirement, but it would be nice if the bot could automatically log the account back in after a disconnect and let the character chill in the guild hall again. A dream would be if all of this could run automatically on a Raspberry Pi, but that's a different topic. A bigger dream would be if, at certain intervals, an item in slot X in inventory bag X could be activated (Everlasting Crate of Fireworks), but that's an even more different topic. It would also be nice if the character could simply dance and greet any character who enters the guild hall in the chat. Ah, I'm coming up with too many cool ideas that aren't really related to the original request... Let's just forget about this point here.
I know this is all very specific, but I believe that once I have a starting point, I could gradually implement the functions myself through trial and error. Does anyone have an idea where/how I could begin? Maybe there’s a basic framework or a collection of various functions I could build on?







