Pre Farmer

08/27/2024 22:00 Gabhail#271
This does ldoa 11-20, not super well but gets the job done.

not sure about the rest of the functions. think it may possiby do the 1-10 rurik quest as well. just made small changes to prevent errors. think it can get stuck sometimes at rurik if the enemies are wall blocked.

neither are survivor friendly either.
08/29/2024 13:27 MrObvious83#272
question, A normal click macro keep your pc alive, this one lets it sleep how do you fix this?

its tuck on level 17..
08/29/2024 20:37 MrObvious83#273
Quote:
Originally Posted by Gabhail View Post
This does ldoa 11-20, not super well but gets the job done.

not sure about the rest of the functions. think it may possiby do the 1-10 rurik quest as well. just made small changes to prevent errors. think it can get stuck sometimes at rurik if the enemies are wall blocked.

neither are survivor friendly either.
Quote:
Originally Posted by IRUBDUCKLIT View Post
seen this and gained hope then realized its been 5months since this post and no update posted

Mine is stuck on level 17 and wont progress.
08/30/2024 00:21 BBzs#274
Quote:
Originally Posted by amazinghaaze View Post
if i have bags disabled at a merchant ie. i want some bags not to be shown at merchant because i have nick items in them, will the bot sell everything even though i have some bags "unchecked"


and what quest do i need for "ldoa 10-20" to work?
It does not sell nick items even if you have them in bags toggled on.

You need the vanguard quest: Farmer Hamnet for 10-20
08/30/2024 02:25 MrObvious83#275
I have never had it sell to merch in LDoA mode I did have to use the 2023 ver for my ranger for some reason it was getting stuck
08/30/2024 07:23 Scythe X#276
If you are unaware, this bot and this thread are outdated. You may find various working versions at the 2024 Working Bots thread:[Only registered and activated users can see links. Click Here To Register...]

Jim put a lot of effort into consolidating the older bots into one location.
The versions that I find to work are the "version 2.4.1.3", and the "version [April 2023]".
08/30/2024 12:36 Gabhail#277
Quote:
Originally Posted by Scythe X View Post
If you are unaware, this bot and this thread are outdated. You may find various working versions at the 2024 Working Bots thread:[Only registered and activated users can see links. Click Here To Register...]

Jim put a lot of effort into consolidating the older bots into one location.
The versions that I find to work are the "version 2.4.1.3", and the "version [April 2023]".
The versions of pre bot in that post don't work for the most part though. A lot of the functions broken completely.
08/30/2024 15:45 BBzs#278
oops my comments was for this one Scythe mentioned.

The april version does work. The later August one does not
09/01/2024 20:34 cttpwnage#279
Can anyone help me with editing the code of this script? I'm trying to make the Charr Boss farm mode resign at the end of the farm instead of map back to Ascalon. I'm doing this because I'm attempting to do the farm in a group of 2 and I don't want my party to keep separating at the end of the map.

I've noticed at the end of the final Charr checkpoint it sets the $CharrCheckpoint = 0 and then does a $tRunInitiated = False. I tried replacing that with a ResignAndReturn(). When I do this, both bots do indeed resign and return together as intended instead of splitting up the party but very frequently one of the bots will go into the character creation menu of the game and get stuck there.

I don't know how to edit these scripts very well so any advice would be helpful. I'm using V2.4.1.3 August 2023 version

Edit: It may have something to do with this line of code from GWA2?

;~ Description: Returns to outpost after resigning/failure.
Func ReturnToOutpost()
Return SendPacket(0x4, $HEADER_OUTPOST_RETURN)
EndFunc ;==>ReturnToOutpost
09/02/2024 13:44 maril15#280
Quote:
Originally Posted by cttpwnage View Post
attempting to do the farm in a group of 2 and I don't want my party to keep separating at the end of the map.

at the end of the final Charr checkpoint it sets the $CharrCheckpoint = 0 and then does a $tRunInitiated = False. I tried replacing that with a ResignAndReturn().
You may want to synchronize your bots resign insteed. So it may be a good practice to create an .ini file that stores the Run status (At Outpost/Starting/In Progress/Finished/Resigned) so both bots can access the .ini file and know what is the current status of the run --> when status in "Finished" you put a condition that check for Finished status and initiate the Resign process for both bots.
Then Bot1 checks if Bot2 has resigned, and Bot2 checks if Bot1 has resigned. Once the two check are done, Run status is set to "Resigned"...


Quote:
Originally Posted by cttpwnage View Post
Very frequently one of the bots will go into the character creation menu of the game and get stuck there.
This is an issues with the GetPrimaryProfession, when it tries to read data and encounters an error, it sends you to a bugged character creation. I think the logic is broken somehow and you will have to do debugging for that.

Hope this help ;)
09/02/2024 21:08 cttpwnage#281
Quote:
Originally Posted by maril15 View Post
This is an issues with the GetPrimaryProfession, when it tries to read data and encounters an error, it sends you to a bugged character creation. I think the logic is broken somehow and you will have to do debugging for that.

Hope this help ;)
Oddly enough, adding a sleep(1000) line after the ResignAndReturn() function was enough of a bandaid to get rid of that error (at least for my edits to the script).

Thank you so much for all of the work you've done for this script! It will always be much appreciated by many of us here.
09/08/2024 16:23 MrObvious83#282
Quote:
Originally Posted by Bad Head Trip View Post
does it sell inventory? if so what does it sell, so i can set it up not to lose important items.
no and it wont pick up anything other than event items in LDOA mode, so Ale wayferes etc.
09/16/2024 09:15 Zilvermoon#283
Quote:
Originally Posted by amazinghaaze View Post
if i have bags disabled at a merchant ie. i want some bags not to be shown at merchant because i have nick items in them, will the bot sell everything even though i have some bags "unchecked"


and what quest do i need for "ldoa 10-20" to work?
Code:
Func CanSell($aitem) ;Lists the unauthorized items to be sold and check if the item input can be sold
	Local $lItemID = DllStructGetData($aItem, 'ID')
	Local $lItemType = DllStructGetData($aitem, 'Type')
	Local $lModelID = DllStructGetData($aitem, 'ModelID')
	Local $lExtraID = DllStructGetData($aitem, 'ExtraId')
;~ 	Local $lItemIsSalvageable = DllStructGetData($aItem, 'IsSalvageable')
	Local $lItemName = GetItemName($aitem)

	; Dont sell items we dont have the name for yet (Global_Items_ModelID.au3 data farming)
	If $lItemName == "Unknown" Then Return False

	; Dont sell Un-identified items
	If Not GetIsIdentified($aitem) And GetRarity($lItemID) <> $RARITY_White Then Return False

;~ 	logFile($lItemName&" is Salvageable: "&$lItemIsSalvageable)

	;Purple Item
	If (GUICtrlRead($DontSellPurple) == $GUI_CHECKED) And (GetRarity($lItemID) == $RARITY_Purple) Then Return False

	; Green Item
	If GetRarity($lItemID) == $RARITY_Green Then Return False

	;Gold Item
	If GetRarity($lItemID) == $RARITY_Gold Then Return False

	;Salvage Items with mods
	;Ash Fiend Trappings(0) Or Axe Fiend Armor(1) Or Flame Wielder Trappings(2) Or Mind Spark Garb(3) Or Shaman Garb(4) Or Stalker Armor(5) Or Grawl Longspear Gear(100)
;~ 	If ($lModelID = 0) Or ($lModelID = 1) Or ($lModelID = 2) Or ($lModelID = 3) Or ($lModelID = 4) Or ($lModelID = 5) Or ($lModelID = 100) Then
	;~ Birthday present
	If $lModelID == 0 And $lItemType == 33 Then
		Return False
	EndIf
	If ($lItemType == 0) Then
		If (GetRarity($lItemID) == $RARITY_White) Then
			Return True
		Else
			Return False
		EndIf
	; Upgrade Compoment (Runes ect.)
	ElseIf ($lItemType == 8) Then
		Return False
	;Consumeable, should be collected, not sold.
	ElseIf ($lItemType == 9) Then
		Return False
	;Elite/Normal Tomes
	ElseIf (($lModelID > 21785) And ($lModelID < 21806)) Then
		Return False
	ElseIf ($lModelID = $ITEM_ID_Dyes) And IsKeepedDye($lExtraID) Then
		Return False
	;ID Kit & Salvage Kit & Charr salvage kit
	ElseIf IsPREKitItem($lModelID) Then
		Return False
	;(pre-Searing Trophies item and SHOULDN'T be sold)
	ElseIf IsPRETrophiesItem($lModelID) Then
		Return False
	;Belt Pouch & Charr Bag & Small Equipment Pack (pre-Searing Bag item and SHOULDN'T be sold)
	ElseIf IsPREBagItem($lModelID) Then
		Return False
	;(pre-Searing quest item and can't be sold)
	ElseIf IsPREQuestItem($lModelID) Then
		Return False
	;(Bonus Item and can't be sold)
	ElseIf IsBonusItem($lModelID) Then
		Return False
;~ 	;Honeycomb (pre-Searing Gift of the Huntsman Item and can't be sold)
;~ 	ElseIf ($lModelID = $ITEM_ID_Honeycomb) Then
;~ 		Return False
;~ 	;Aged Hunter's Ale (pre-Searing Gift of the Huntsman Item and can't be sold)
;~ 	ElseIf ($lModelID = $ITEM_ID_Aged_Hunters_Ale) Then
;~ 		Return False
;~ 	;Shamrock Ale (pre-Searing Gift of the Huntsman Item and can't be sold)
;~ 	ElseIf ($lModelID = $ITEM_ID_Shamrock_Ale) Then
;~ 		Return False
;~ 	;Four Leaf Clover (pre-Searing Gift of the Huntsman Item and can't be sold)
;~ 	ElseIf ($lModelID = $ITEM_ID_Four_Leaf_Clover) Then
;~ 		Return False
;~ 	;Gift of the Huntsman (pre-Searing Nick Sandford Item and can't be sold)
;~ 	ElseIf ($lModelID = $ITEM_ID_Gift_of_the_Huntsman) Then
;~ 		Return False
;~ 	;Everlasting Olias Tonic and can't be sold
;~ 	ElseIf ($lModelID = $ITEM_ID_EL_Olias_Tonic) Then
;~ 		Return False
;~ 	;Everlasting Melonni Tonic and can't be sold
;~ 	ElseIf ($lModelID = $ITEM_ID_EL_Melonni_Tonic) Then
;~ 		Return False
	; Victory Token (Type 30)
	ElseIf ($lModelID == 18345 ) Then
		Return False
	; Lunar Token (Type 30)
	ElseIf ($lModelID = 21833) Then
		Return False
	; Wayfarer's Mark
	ElseIf ($lModelID = 37765) Then
		Return False
	Else
		Return True
	EndIf
EndFunc    ;==>CanSell

Func IsPREKitItem($aModelID)
	For $i = 1 To $PRE_Kit_Items_Array[0]
		If $PRE_Kit_Items_Array[$i] == $aModelID Then Return True
	Next
	Return False
EndFunc    ;==>IsPRETrophiesItem

Func IsPRETrophiesItem($aModelID)
	For $i = 1 To $PRE_Trophies_Items_Array[0]
		If $PRE_Trophies_Items_Array[$i] == $aModelID Then Return True
	Next
	Return False
EndFunc    ;==>IsPRETrophiesItem

Func IsPREBagItem($aModelID)
	For $i = 1 To $PRE_Bag_Items_Array[0]
		If $PRE_Bag_Items_Array[$i] == $aModelID Then Return True
	Next
	Return False
EndFunc    ;==>IsPRETrophiesItem

Func IsPREQuestItem($aModelID)
	For $i = 1 To $PRE_Quest_Items_Array[0]
		If $PRE_Quest_Items_Array[$i] = $aModelID Then Return True
	Next
	Return False
EndFunc    ;==>IsPREQuestItem

Func IsBonusItem($aModelID)
	For $i = 1 To $Bonus_Items_Array[0]
		If $Bonus_Items_Array[$i] = $aModelID Then Return True
	Next
	Return False
EndFunc    ;==>IsBonusItem

Func IsOtherStackableItem($aModelID)
	For $i = 1 To $PRE_Other_Stackable_Items_Array[0]
		If $PRE_Other_Stackable_Items_Array[$i] = $aModelID Then Return True
	Next
	Return False
EndFunc    ;==>IsBonusItem

Func Sell($bagIndex) ;Sell all authorized items in a bag
	$bag = GetBag($bagIndex)
	$numOfSlots = DllStructGetData($bag, 'slots')
	For $i = 1 To $numOfSlots
		$aitem = GetItemBySlot($bagIndex, $i)
		If (GetRarity($aitem) <> $RARITY_White) And (Not GetIsIdentified($aitem)) Then ContinueLoop ; Item isn't ID'ed so dont sell it
		If DllStructGetData($aitem, 'ID') = 0 Then ContinueLoop
		If CanSell($aitem) Then
			Local $lItemName = GetItemName($aitem)
			logFile("Selling '"&$lItemName&"' Item " & $i & " in bag " & $bagIndex)
			SellItem($aitem)
			RndSleep(250)
		EndIf
	Next
EndFunc	;==>Sell
09/16/2024 15:42 cttpwnage#284
How would you add highly salvageable blues to the do not sell list here?
06/08/2025 11:36 princessmisery#285
Quote:
Originally Posted by Gabhail View Post
This does ldoa 11-20, not super well but gets the job done.

not sure about the rest of the functions. think it may possiby do the 1-10 rurik quest as well. just made small changes to prevent errors. think it can get stuck sometimes at rurik if the enemies are wall blocked.

neither are survivor friendly either.
I'm desperately searching for a working bot. This one comes up but it won't let me select my character. It just keeps selecting the game client name. Anyone know how to fix that? Please please :feelsbadman:

yes I know the thread is old *sigh*