@
Ok, so try this first.
1. In your game, click the NPC Icon and search for "Bahar" in Veila.
2. It will then track the path and press T to auto path it.
3. Your character should stop near the NPC.
Ok, thats basically how the "Restocking" feature works.
Now, try this.
Same method, use a mount.
See if it stops near the npc.
If it stops near the NPC then afk trading is doable.
So, here's the thought process. @
Before starting the bot, you must place your character near the NPC (Starting Point) to avoid any future errors as much as possible.
1. Character with Mount, opens Trader NPC window.
2. Character purchases "buyable" items.
-- Add a setting what item to buy (imagesearch).
-- Example: TradePackVeila1.bmp so If player wants to buy another item, he can just rename the BMP file to another file name and use TradePackVeila1.bmp as his item to purchase.
3. Character purchase X amount of trade pack.
-- Add a setting how many trade packs to purchase.
-- This setting is global, meaning what you will purchase in Veila will be the same in Heidel.
-- If you set 6 Purchase. Then Character will Purchase 6 Trade Packs regardless of the NPC/Location.
-- Make sure that the purchase will be stored in the MOUNT not in character.
4. Close / Exit Trade NPC Window
5. Image Search: < Hand Icon in mount or something we can recognize>
-- Rotate the camera to search this image if not found.
6. Ride the Mount
7. Click NPC Window -> Type NPCTraderNAME-B (the Target NPC)
8. Autopath
-- Assuming we reached our TargetNPC
9. Dismount
10. Search Image: <Find the TargetNPC>
11. Open TraderNPC Window
12. Trade
13. Close NPC Window After Success trading
14. Open TraderNPC Window
15. Character Purchases "Buyable" items.
-- Instead of TradePackVeila1.bmp, this setting will be "TradePackHeidel1.bmp" for example.
-- So, player will purchase the Heidel Trade pack
16. As mentioned in Step #3. Do Step #3.
17. Close Trade NPC
18. Do Step #5
19. Do Step #6
20. Click NPC Window -> Type NPCTraderName-A (starting point)
21. Autopath
-- Assuming we reached our TargetNPC
22. Dismount
23. Search Image: <Find the TargetNPC>
24. Open TraderNPC Window
25. Trade
26. Close NPC Window
Go Step 1.
The idea is to trade between 2 NPC and only purchase 2 types of Materials.
Remember:
There's a debuff if the Trader NPC is within 500m from the origin.
Trade Pack will reset every 15 minutes.
Personal Opinion
Im doubting if this is even profitable. The time travel vs Processing.
@
Open CrayonCode.au3
Search "No PurpleBags found".
Then trace the code from there.
Im assuming this error only occurs when it cannot see the image or the coordinate is wrong.