How can i make my bot to pickup trick or treat bags? can someone help me u just looked on this threat but i cant find it.
im pretty much illiterate to the coding, im curious if someone can/will help me with where to add the usage of a cupcake @ start of each run. ive found these in other scripts, im not sure of placement, or accuracy period. thanks.Quote:
Updated the Factions chest running bot.
Updated the Omni bot
latest update - Chest runner bot seems to get an error when stash is full. If anyone can fix that please do, thanks.
error:
Line 532 of ChestRun Pongmei.au3
If Not IdentifyBag($IBag, False, True, $store_golds) Then If Not ^ ERROR
Error: Incorrect number of parameters in function call
Quote:
im pretty much illiterate to the coding, im curious if someone can/will help me with where to add the usage of a cupcake @ start of each run. ive found these in other scripts, im not sure of placement, or accuracy period. thanks.
;~ Any pcons you want to use during a run
Global $pconsCupcake_slot[2]
Global $useCupcake = True ; set it on true and he use it
;~ Scans your bags for Cupcakes and uses one to make the run faster.
pconsScanInventory()
Sleep(GetPing()+500)
UseCupcake()
Sleep(GetPing()+500)
Func Main() ;Code here UseCupcake() ;Code here EndFunc Func UseCupcake() Local $aBag Local $aItem Sleep(200) For $i = 1 To 4 $aBag = GetBag($i) For $j = 1 To DllStructGetData($aBag, "Slots") $aItem = GetItemBySlot($aBag, $j) If DllStructGetData($aItem, "ModelID") == 22269 Then UseItem($aItem) Return True EndIf Next Next EndFunc
;For using different drinks depending on what I can easily buy Func Main() ;code here UseDrink(6366) ;Firewater = 2513, Grog = 30855, Spiked Eggnog = 6366 ;code here EndFunc Func UseDrink($mID) Local $aBag Local $aItem Sleep(200) For $i = 1 To 4 $aBag = GetBag($i) For $j = 1 To DllStructGetData($aBag, "Slots") $aItem = GetItemBySlot($aBag, $j) If DllStructGetData($aItem, "ModelID") == $mID Then UseItem($aItem) Return True EndIf Next Next EndFunc
do u mind directing me to the strings to paste this too? <3Quote:
Or if you want to be fancy, just use a general item command and pass it a model ID:Code:Func Main() ;Code here UseCupcake() ;Code here EndFunc Func UseCupcake() Local $aBag Local $aItem Sleep(200) For $i = 1 To 4 $aBag = GetBag($i) For $j = 1 To DllStructGetData($aBag, "Slots") $aItem = GetItemBySlot($aBag, $j) If DllStructGetData($aItem, "ModelID") == 22269 Then UseItem($aItem) Return True EndIf Next Next EndFunc
Code:;For using different drinks depending on what I can easily buy Func Main() ;code here UseDrink(6366) ;Firewater = 2513, Grog = 30855, Spiked Eggnog = 6366 ;code here EndFunc Func UseDrink($mID) Local $aBag Local $aItem Sleep(200) For $i = 1 To 4 $aBag = GetBag($i) For $j = 1 To DllStructGetData($aBag, "Slots") $aItem = GetItemBySlot($aBag, $j) If DllStructGetData($aItem, "ModelID") == $mID Then UseItem($aItem) Return True EndIf Next Next EndFunc
Didn't expect to see you around anymoreQuote:
Press previous page twice and you will have your answer :)
Did you try with:Quote:
Do
$aItem = GetNearestItemToAgent(-2)
$lDistance = @[Only registered and activated users can see links. Click Here To Register...]
$aItemID = DllStructGetData($aItem, 'ID')
$aModelID = DllStructGetData($aItem, 'ModelID')
Do
$aItem = GetNearestItemToAgent(-2)
$lDistance = GetDistance($aItem)
$aItemID = DllStructGetData($aItem, 'ID')
$aModelID = DllStructGetData($aItem, 'ModelID')
your IdentifyBag function contains 4 arguments:Quote:
getting error when he goes to sell can anyone help?
says line 532.
;~ Description: Identifies all items in a bag. Func IdentifyBag($aBag, $aWhites = False, $aGolds = True) Local $lItem If Not IsDllStruct($aBag) Then $aBag = GetBag($aBag) For $i = 1 To DllStructGetData($aBag, 'Slots') $lItem = GetItemBySlot($aBag, $i) If DllStructGetData($lItem, 'ID') == 0 Then ContinueLoop If GetRarity($lItem) == 2621 And $aWhites == False Then ContinueLoop If GetRarity($lItem) == 2624 And $aGolds == False Then ContinueLoop IdentifyItem($lItem) Sleep(GetPing()) Next EndFunc ;==>IdentifyBag
IdentifyBag(1, False, True)