hey all - never made edits to a bot before (all my coding experience is just SQL), but I have been poking around in the scripts and using toolbox to understand how the game is set up. I wanted to mess with something simple first - changing the item pickup logic. I see in the refeather script this section of code:
Quote:
Func CanPickUp($aitem)
$m = DllStructGetData($aitem, 'ModelID')
$r = GetRarity($aitem)
If $m == 921 Or $m == 28434 Or $m == 30855 Or $m = 2511 Then
Return True
ElseIf $r = $RARITY_Green And GetChecked($pickupgreen) Then
Return True
ElseIf $r = $RARITY_Gold And GetChecked($pickupgold) Then
Return True
ElseIf $r = $RARITY_Purple And GetChecked($pickuppurple) Then
Return True
ElseIf $r = $RARITY_Blue And GetChecked($pickupblue) Then
Return True
ElseIf $r = $RARITY_White And GetChecked($pickupwhite) Then
Return True
ElseIf $m = 146 Then ;Dyes
If DllStructGetData($aitem,"ExtraId") > 9 Then
Return True
Else
Return False
EndIf
ElseIf $m = 22751 Then ;Lockpicks
Return True
ElseIf $m > 21785 And $m < 21806 Then ;Elite/Normal Tomes
Return True
ElseIf $m = 835 Then ;Feathered Crests 8253
$crests += 1
GUICtrlSetData($featheredcrests, $crests)
Return True
ElseIf $m = 933 Then ;Feathers 7665
$feather += DllStructGetData($aitem,"Quantity")
GUICtrlSetData($feathers, $feather)
Return True
ElseIf $m = 27047 Then ;Glacial Stones
Return True
ElseIf $m = 22191 OR $m = 22190 Or $m = 22644 Or $m = 22752 Then ;event items
Return True
ElseIf $m = 22269 Then ;birthdays
Return True
ElseIf $m = 28435 Then ;ciders
Return True
ElseIf $m = 910 Then ;ales
Return True
ElseIf $m = 22191 Then ;grog
Return True
ElseIf $m = 26784 Then ;honeycombs
Return True
ElseIf $m = 21810 Then ;poppers
Return True
ElseIf $m = 28436 Then ;pie
Return True
ElseIf $m = 21809 Then ;rockets
Return True
ElseIf $m = 21813 Then ;sparkler
Return True
ElseIf $m = 18345 Then ;tokens
Return True
Else
Return False
EndIf
EndFunc ;==>CanPickUp
|
I was thinking about changing the feather bot to pick up feathers, crests, and then any blue or purple armor that drops (it seems like there are just 4 modelID's - 2 each for sensali garb and sensali crestguard to account for unid blue and purples). to a layman, it looks like i could just add in something like
Quote:
ElseIf $m = 1154 Then ;unid blue garb
Return True
|
and that would pick up all the blue sensali garbs regardless of what I have selected in the gui (which looks like is identified by all the elseif statements higher up in the code.
is that correct/make sense?