Complete noob coder attempting to code interchangeable Nick bot

06/21/2023 15:09 Restia Ashdoll#31
Quote:
Originally Posted by dboston View Post
Appreciate the help, but that one also doesn't pick up. It actually errors on that first line when you open it to run (error: cannot assign values to constants). I've tried moving that first bit around to get it to run, but then it doesn't pick up greens (or golds), so assuming it needs to be in the code somewhere, just not in the places I've tried
giving from what you have posted - the consts are already defined so just leave that part out and try again

Quote:
Originally Posted by dboston View Post
Appreciate the help, but that one also doesn't pick up. It actually errors on that first line when you open it to run (error: cannot assign values to constants). I've tried moving that first bit around to get it to run, but then it doesn't pick up greens (or golds), so assuming it needs to be in the code somewhere, just not in the places I've tried
Code:
Func CanPickUp($aitem)
    Local $m = DllStructGetData($aitem, 'ModelID')
    Local $r = GetRarity($aitem)
    Local $c = DllStructGetData($aitem, 'ExtraID')

    Local $allowedModels = [467, 468, 37765, 933, 2511, 934, 442, 5965, 444, 921, 923, 932, 813, 22190, 22191, 27040, 454, 1660, 499, 1578]
    If _ArraySearch($allowedModels, $m) <> -1 Then
        Return True
    EndIf

    Switch $r
        Case $RARITY_Gold, $RARITY_Green
            Return True
    EndSwitch

    Return False
EndFunc ;=> CanPickUp
RARITY_Gold and Green should already be definied in your script i think i have seen them somewhere
06/21/2023 23:44 dboston#32
Yeah you're right I do think they're defined already, so I did leave that bit out (I tried adding it too when it didn't work properly). Still completely ignoring greens (and golds) but everything's telling me it should be working. Got me stumped, this one
06/22/2023 07:48 Restia Ashdoll#33
Quote:
Originally Posted by dboston View Post
Yeah you're right I do think they're defined already, so I did leave that bit out (I tried adding it too when it didn't work properly). Still completely ignoring greens (and golds) but everything's telling me it should be working. Got me stumped, this one
Pickung up the golden coins or other nic items does work though ? otherwise there might be an issue in the Pickup
06/22/2023 09:05 dboston#34
Yeah, continues to pick up gold coins and Nick items fine
06/27/2023 11:38 dboston#35
Shriveled Eyes farmer

Just take any build and heroes, it's slow but works

If anyone can input a pickup green function in this bot I'd be extremely thankful as the one currently in doesn't work.
06/27/2023 12:52 Waka.Waka#36
This took me longer then i thought because the bot is a mess. Didnt notice that _constants.au3 is not included and took this script as reference to check constants. They are correct there.. but you take those from AddsOn.au3 and there the values for the rarity items are wrong.

change line 18 in AddsOn.au3 to
Code:
Global Enum $RARITY_White = 0xA3D, $RARITY_Blue = 0xA3F, $RARITY_Purple = 0xA42, $RARITY_Gold = 0xA40, $RARITY_Green = 0xA43
and it should work.
06/29/2023 00:01 dboston#37
Got a bit of a different one here. This is a Obsidian Armor runner bot.

1. Enter FoW manually. Take a build (the bot just spams skills, left to right). Take strong heroes too.
2. Run Obsidian1. This will run through the beach, cave, battle field and up to the Eternal Weaponsmith. Close the bot.
3. Speak to the Eternal Weaponsmith manually, and run into the Temple of War (the temple, and route, should both have been cleared already by Obsidian1 bot)
4. Stand ontop of the Eternal Forgemaster, take the quest go afk whilst your heroes complete 'Defend the Temple of War' quest
5. Take quest 'Restore the Temple of War', run Obsidian2. This will run back through the caves, kill necessary enemies, then run back to Eternal Forgemaster.
6. Close the bot, the Eternal Forgemaster will now craft Obsidian Armor.

The bot also picks up all Chaos Axes and Obsidian Shards.

Currently there's nothing in the code to 'stop', so the bots attempt to loop and keep going once it's gotten to the end - if anyone knows a fix that'd be great. Right now it's annoying more than anything

I have more ideas for bots if anyone is interested, Sorrows Furnace Vanquish, The Deep, Urgoz, quests needed to unlock very common PvE quests (IAU! + EBSoH etc.) - would be keen to hear if anyone else had any suggestions

EDIT - tested your green pickup fix, perfect, thanks so much

EDIT - I've uploaded a new file, it's tidied up a bit and takes a different route to avoid a possible over-aggro and wipe. If anyone knows the code to talk to NPCs + accept quests and quest rewards, that'd be great and I'll squeeze that in to make it 1 long continuous bot
07/04/2023 11:14 dboston#38
Icy Lodestones farmer.
As always, take 7 hero party
07/10/2023 15:52 dboston#39
Keen Oni Talon
This one is very slow (took me about 4 hours per set with heroes). Farms in Rhea's crater from The Aurios Mines outpost, so make sure you have that unlocked. Only 4 groups of Oni per run (16 Oni in total)
09/25/2023 10:31 ARJ#40
Hello - For this weeks Nick I will have to move through two portals (according to Wiki). Can i make a loop at the 2. portal so that i dont have to resign and start all over

I know that the Vaettir v3 have that loop function but can I just copy it?
10/21/2023 13:59 Razerb#41
Quote:
Originally Posted by ARJ View Post
Hello - For this weeks Nick I will have to move through two portals (according to Wiki). Can i make a loop at the 2. portal so that i dont have to resign and start all over

I know that the Vaettir v3 have that loop function but can I just copy it?
Hi, if u have answer for the 2 portal im interes for a bot ;)
10/22/2023 19:11 ARJ#42
Quote:
Originally Posted by Razerb View Post
Hi, if u have answer for the 2 portal im interes for a bot ;)
I never made the bot :/ sry - i would also like to have that function but i think u can just take it from the other bot that i talked about