GW Working Bots 2019!

12/01/2019 07:28 Starker3#1621
Quote:
Originally Posted by needbots View Post
Any way to identify blues with omnifarmer before it sells? those often 60gs would make decent money overnight
This is not the correct thread to ask for help for editing bots, but I'll post the info here for you anyway

It is possible, in the GW_omniApi folder is the GWA2 file with Func IdentifyBag

The bag has a true/false flag for Gold and White items, it is easy to add Blue/Purple items into this function, you just need to find the ID associated with Blue/Purple items and add it into the code on line 701
12/01/2019 10:07 needbots#1622
Quote:
Originally Posted by Starker3 View Post
This is not the correct thread to ask for help for editing bots, but I'll post the info here for you anyway

It is possible, in the GW_omniApi folder is the GWA2 file with Func IdentifyBag

The bag has a true/false flag for Gold and White items, it is easy to add Blue/Purple items into this function, you just need to find the ID associated with Blue/Purple items and add it into the code on line 701
Hey. I posted it here cause i dont want to edit anything, this is all chinese to me. It was rather meant to be a suggestion/question about an update/updated version that someone may have made alrdy. This is the first bot i ever used in any game, it was hard enough for me to make it work. Thank you tho.

Edit: I gave it a try and it was indeed REALLY easy, thanks man and sory for the post.
12/01/2019 18:42 logicdoor#1623
v0.4 of Froggy bot released, mainly around improved speed and efficiency.
Access in the [Only registered and activated users can see links. Click Here To Register...].

v0.4 Changes
  • Decluttered script to improve efficiency
  • Bot now can start from any place in the dungeon and will find its way regardless
  • Bot now finds closest waypoint after fighting in each mob, avoids backtracking and speeds up the run (it is now possible to complete a run in 33 minutes instead of 37+ previously)
  • "Open Chests" is now activated as a default, as there is no penalty for not having any lockpicks
  • Implemented the "store gold" function
  • Fixed the issues whereby the bot would attack the boulder on level 2 by decreasing the fight radius
  • Fixed the issue where the bot would sometimes get stuck at the boss's door lock by adding a waypoint
  • Implemented wipe recovery on each level
  • Decreased selling speed to allow you to examine each item for useful weapon mods before selling

Future enhancements still outstanding:
  • Still working to allow the salvage of valuable weapon mods before selling
  • Runes won't get sold after selling other stuff
12/01/2019 18:52 richpianagroyper#1624
hey @[Only registered and activated users can see links. Click Here To Register...] i once looked into some mods for eotn i think 2 of the better inscriptions are forget me not and measure for measure here are the codes if youre interested:
you can implement this for example like this
hard to just give you my code though because many ppl have diffrent gwa2
12/01/2019 19:09 logicdoor#1625
Quote:
Originally Posted by richpianagroyper View Post
hey @[Only registered and activated users can see links. Click Here To Register...] i once looked into some mods for eotn i think 2 of the better inscriptions are forget me not and measure for measure here are the codes if youre interested:
you can implement this for example like this
hard to just give you my code though because many ppl have diffrent gwa2
Thanks, those were the codes I had been using so far:

Code:
Global $array_mods[17][4] = [ _
		 [896, "Insightful Staff Head", 8, "0500D822"], _  ; +5 energy
		 [896, "Adept Staff Head", 8, "00140828"], _  ; +20% FC
		 [896, "Hale Staff Head", 8, "001E4823"], _  ; +30 HP (Focus)
		 [15551, "Focus Core of Fortitude", 8, "001E4823"], _  ; +30 HP  (Focus)
		 [15551, "Focus Core of Aptitude", 8, "00140828"], _  ; +20% FC
		 [15554, "Shield Handle of Fortitude", 8, "001E4823"], _  ; +30 HP
		 [909, "Sword Pommel of Enchanting", 8, "1400B822"], _  ; +20% Enchantment Duration
		 [908, "Staff Wrapping of Enchanting", 8, "1400B822"], _  ; +20% Enchantment Duration
		 [908, "Staff Wrapping of Fortitude", 8, "001E4823"], _  ; +30 HP
		 [908, "Staff Wrapping of Mastery", 8, "00143828"], _  ; +1 Attribute (Focus)  $t = 12 is offhand, 24 is shield, 26 is staff
		 [896, "Inscription: I have the power!", 8, "0500D822"], _  ; +5 energy (Sword)   also exists for other weapons (2/5/15/27/32/35/36)
		 [15540, "Inscription: Forget me Not", 8, "1400B822"], _  ; +20% FR
		 [15541, "Focus Inscription: Master of my Domain", 8, "14011824"], _  ; +1 Attribute (Focus)
		 [15541, "Shield Inscription: Master of my Domain", 8, "14011824"], _  ; +1 Attribute (Shield)
		 [19122, "Staff Inscription: Master of my Domain", 8, "14011824"], _  ; +1 Attribute (Staff)
		 [19122, "Inscription: Aptitude not Attitude", 8, "00140828"], _  ; +20% FC
		 [19122, "Inscription: Hale and Hearty", 8, "05320823"]]  ; +5 energy while health > 50%
The way I implemented this in my code was to have all of them in an array and then test it against an array of whitelisted mods. I used the codes from this thread:
[Only registered and activated users can see links. Click Here To Register...]

The way I test this is using an array instead of a single variable:

Code:
If StringInStr($lModStruct, $array_mods[$i][3]) > 0 Then
It is working for the runes but not for the mods. So maybe the codes need to be updated, they seem different to the ones you contributed.
12/02/2019 02:36 oneshout#1626
Quote:
Originally Posted by logicdoor View Post
v0.4 of Froggy bot released, mainly around improved speed and efficiency.
Access in the [Only registered and activated users can see links. Click Here To Register...].

v0.4 Changes
  • Decluttered script to improve efficiency
  • Bot now can start from any place in the dungeon and will find its way regardless
  • Bot now finds closest waypoint after fighting in each mob, avoids backtracking and speeds up the run (it is now possible to complete a run in 33 minutes instead of 37+ previously)
  • "Open Chests" is now activated as a default, as there is no penalty for not having any lockpicks
  • Implemented the "store gold" function
  • Fixed the issues whereby the bot would attack the boulder on level 2 by decreasing the fight radius
  • Fixed the issue where the bot would sometimes get stuck at the boss's door lock by adding a waypoint
  • Implemented wipe recovery on each level
  • Decreased selling speed to allow you to examine each item for useful weapon mods before selling

Future enhancements still outstanding:
  • Still working to allow the salvage of valuable weapon mods before selling
  • Runes won't get sold after selling other stuff
Fight_Rit function is missing + 2 others in the V0.4 ;)


Bug :
If party wipe except player, bot "waiting for party heal" and stay stuck

Bug2 :
Code:
Writechat("We wiped, restarting at"& $aWaypointsBoss[$NearestWaypoint][3])
	   $DeadOnTheRun = 0
	   MoveandAggro($aWaypointsBoss)

Error : Variable used without being declared

Bug3 :

If party wipe on the run to the dungeon, party stay at rez point and looking to take quest at Tekks (party stuck)
12/02/2019 03:55 ForgottenRelic#1627
I was just about to post that exact bug when I tried the updated version. on 2nd run right now and going smooth. I personally am running it on NM just because I wanted to see how it was gonna run and got my first 15/7 gold shield :p...
12/02/2019 14:23 needbots#1628
any pre bots for The bear hunters aged ale farm? would pay $$ or ingame currency
12/02/2019 17:32 Nightshadow13#1629
does any know autopickup in area bot? maybe with sell and identify func for any explore areas
12/02/2019 17:50 logicdoor#1630
Quote:
Originally Posted by oneshout View Post
Fight_Rit function is missing + 2 others in the V0.4 ;)


Bug :
If party wipe except player, bot "waiting for party heal" and stay stuck

Bug2 :
Code:
Writechat("We wiped, restarting at"& $aWaypointsBoss[$NearestWaypoint][3])
	   $DeadOnTheRun = 0
	   MoveandAggro($aWaypointsBoss)

Error : Variable used without being declared

Bug3 :

If party wipe on the run to the dungeon, party stay at rez point and looking to take quest at Tekks (party stuck)
Updated version attached.

Rit function was removed because the regular function I think works as well if you arrange your skills in the right sequence (you need to teleport existing spirits before casting new ones), but I have added it back for you (maybe I need to revisit how it performs after improving the run efficiency).

I have now added the wipe recovery code for each level including running to the dungeon (I had added it to the boss section but forgot to change the name of the waypoint, which cause the bug)

I will see later if I can include a self-suicide function when the player is the only party member alive, as it conflicts with not progressing further when the party is below 85% HP (this is a safety check to avoid wipe due to marching through depleted health). This happens maybe once every 50 runs, so low priority.

Otherwise I have some good news for mod salvaging and I am working on a mod selection panel to allow the selection of which runes, insignas, inscriptions and mods the user wants to retain before selling, but it will take me some time to my way through the GUI, probably will work on it during the Christmas vacation together with the zchest bot (if you are aware of any public version, please share). Both will use the same inventory management functions (as zchest bot also needs to retain the best skills / mods, maybe even more as the inventory fills up quickly!).
12/03/2019 17:53 oneshout#1631
Quote:
Originally Posted by logicdoor View Post
Updated version attached.

Rit function was removed because the regular function I think works as well if you arrange your skills in the right sequence (you need to teleport existing spirits before casting new ones), but I have added it back for you (maybe I need to revisit how it performs after improving the run efficiency).

I have now added the wipe recovery code for each level including running to the dungeon (I had added it to the boss section but forgot to change the name of the waypoint, which cause the bug)

I will see later if I can include a self-suicide function when the player is the only party member alive, as it conflicts with not progressing further when the party is below 85% HP (this is a safety check to avoid wipe due to marching through depleted health). This happens maybe once every 50 runs, so low priority.

Otherwise I have some good news for mod salvaging and I am working on a mod selection panel to allow the selection of which runes, insignas, inscriptions and mods the user wants to retain before selling, but it will take me some time to my way through the GUI, probably will work on it during the Christmas vacation together with the zchest bot (if you are aware of any public version, please share). Both will use the same inventory management functions (as zchest bot also needs to retain the best skills / mods, maybe even more as the inventory fills up quickly!).
2 functions are always missing for the Rit :

Code:
Func SkillSleep($nSkillID)
	$aSkill = GetSkillByID($nSkillID)
	$nActivationTime = DllStructGetData($aSkill, 'Activation') * 1000
	Sleep($nActivationTime + 100)
 EndFunc
Code:
Func GetSpiritsInRange($nRange = 600)
	Local $lMe = GetAgentByID(-2)
	Local $nSpirits = 0
	$lMe = GetAgentByID(-2)
	For $i = 1 to GetMaxAgents()
		$aAgent = GetAgentByID($i)
		If Not BitAND(DllStructGetData($aAgent, 'Typemap'), 131072) Then ContinueLoop
		If BitAND(DllStructGetData($aAgent, 'Effects'), 0x0010) Then ContinueLoop
		If BitAND(DllStructGetData($aAgent, 'Typemap'), 262144) And GetDistance($aAgent, $lMe) <= $nRange Then
			$nSpirits += 1
		EndIf
	Next
	Return $nSpirits
EndFunc
12/04/2019 06:24 logicdoor#1632
Quote:
Originally Posted by oneshout View Post
2 functions are always missing for the Rit :

Code:
Func SkillSleep($nSkillID)
	$aSkill = GetSkillByID($nSkillID)
	$nActivationTime = DllStructGetData($aSkill, 'Activation') * 1000
	Sleep($nActivationTime + 100)
 EndFunc
Code:
Func GetSpiritsInRange($nRange = 600)
	Local $lMe = GetAgentByID(-2)
	Local $nSpirits = 0
	$lMe = GetAgentByID(-2)
	For $i = 1 to GetMaxAgents()
		$aAgent = GetAgentByID($i)
		If Not BitAND(DllStructGetData($aAgent, 'Typemap'), 131072) Then ContinueLoop
		If BitAND(DllStructGetData($aAgent, 'Effects'), 0x0010) Then ContinueLoop
		If BitAND(DllStructGetData($aAgent, 'Typemap'), 262144) And GetDistance($aAgent, $lMe) <= $nRange Then
			$nSpirits += 1
		EndIf
	Next
	Return $nSpirits
EndFunc
Thanks, will be added to the next version.

In the meantime I created a GUI to select the mods to salvage from items before selling.
[Only registered and activated users can see links. Click Here To Register...]

Because there are 120+ different mods, I need to split them across tabs or add a scroll bar. The scroll bar was a bit laggy because of the number of checkboxes to render, so I am trying with tabs.

Once I have the GUI ready with the mechanism to insert the check mark values into my array, it should be a simple array formula to decide which to keep.

I chose this approach because I saw many people creating one function for each and every mod, which is a nightmare to link to a GUI.
12/04/2019 08:41 oneshout#1633
Quote:
Originally Posted by logicdoor View Post
Thanks, will be added to the next version.

Tks a lot ;)

little bug :
Got a froggy fire req9 :D and it don't count on the GUI (but ID is on the list : 1966)
12/05/2019 04:36 logicdoor#1634
Quote:
Originally Posted by oneshout View Post
Tks a lot ;)

little bug :
Got a froggy fire req9 :D and it don't count on the GUI (but ID is on the list : 1966)
What do you mean it don't count on the GUI?
Is it possible the model ID is incorrect? Every list I have seen uses 1966 for fire Froggy.

Did you use the storage manager to check the model ID?

Got the GUI on tabs, now I need to pre-check popular mods based on the array.
[Only registered and activated users can see links. Click Here To Register...]
12/05/2019 09:24 oneshout#1635
Quote:
Originally Posted by logicdoor View Post
What do you mean it don't count on the GUI?
Is it possible the model ID is incorrect? Every list I have seen uses 1966 for fire Froggy.

Did you use the storage manager to check the model ID?
Yes ofc i've had check the id and it's the good one but the bot don't count the drop +1 on the froggy part of the GUI.

Quote:
Originally Posted by logicdoor View Post
Got the GUI on tabs, now I need to pre-check popular mods based on the array.
[Only registered and activated users can see links. Click Here To Register...]
So much work, good luck ;)