Quote:
Originally Posted by Hajsu
yes I can read, but I think your writings should be clear.
" If $lRarity == $RARITY_GOLD Then Return True ; if you want to pick up all golds items (unselect items below) "
all cele have TRUE value and on the other hand as u wrote and as i can see bot picks up only shield so in logic case it doesn't seems logic.
idk which lines u mean to be deleted but lines which I'm deleting don't give me a change. it's still the same. that's what i'm talking about. i'm not a coder, so solutions could be clear written.
|
If you go into the code.. you can see i did this in front of the lines for bows/other melee weaps... ";~" Commenting out the code for the other items aside from shield/scepter/staves.. As when i was using I had zero desire for those other items..
Func CanPickUp($aItem)
Local $Quantity
Local $lModelID = DllStructGetData(($aItem), 'ModelID')
Local $lRarity = GetRarity($aItem)
If $lModelID == 2511 And GetGoldCharacter() < 99000 Then Return True ; gold coins (only pick if character has less than 99k in inventory)
If $lModelID > 21785 And $lModelID < 21806 Then Return True ; Elite/Normal Tomes
;~ If $lRarity == $RARITY_GOLD Then Return True ; if you want to pick up all golds items (unselect items below)
Switch $lModelID
Case $CeleStr, $CeleTact ; Celestial shield strenght and tactic
$Drops += DllStructGetData($aItem, 'Quantity')
GUICtrlSetData($DropsCount,$Drops)
Return True
;~ Case $CeleSword ; Celestial Sword
;~ $Drops2 += DllStructGetData($aItem, 'Quantity')
;~ GUICtrlSetData($DropsCount2,$Drops2)
;~ Return True
Case $CeleStaff ; Celestial Staff
$Drops3 += DllStructGetData($aItem, 'Quantity')
GUICtrlSetData($DropsCount3,$Drops3)
Return True
;~ Case $CeleLbow ; Celestial long bow
;~ $Drops4 += DllStructGetData($aItem, 'Quantity')
;~ GUICtrlSetData($DropsCount4,$Drops4)
;~ Return True
;~ Case $CeleDagger ; Celestial Dagger
;~ $Drops5 += DllStructGetData($aItem, 'Quantity')
;~ GUICtrlSetData($DropsCount5,$Drops5)
;~ Return True
Case $CeleScepter ; Celestial Scepter
$Drops6 += DllStructGetData($aItem, 'Quantity')
GUICtrlSetData($DropsCount6,$Drops6)
Return True
;~ Case $CeleAxe ; Celestial Axe
;~ $Drops7 += DllStructGetData($aItem, 'Quantity')
;~ GUICtrlSetData($DropsCount7,$Drops7)
;~ Return True
;~ Case $CeleHammer ; Celestial Hammer
;~ $Drops8 += DllStructGetData($aItem, 'Quantity')
;~ GUICtrlSetData($DropsCount8,$Drops8)
;~ Return True
case $ITEM_ID_MEYES ; Monstruous eyes
$Drops9 += DllStructGetData($aItem, 'Quantity')
GUICtrlSetData($DropsCount9,$Drops9)
Return True
Case $ITEM_ID_RUBY ; Ruby
$Drops10 += DllStructGetData($aItem, 'Quantity')
GUICtrlSetData($DropsCount10,$Drops10)
Return True
Case $ITEM_ID_AMBER ; Amber
$Drops11 += DllStructGetData($aItem, 'Quantity')
GUICtrlSetData($DropsCount11,$Drops11)
Return True
Case $ITEM_ID_LOCKPICKS ; Lockpicks
Return True
Case Else
Return False
EndSwitch
Yes.. It says remain true under them but I have completely commented them out with my ;~ squigly lines.. Something you see commonly done instead of completely deleting lines of the code..
Quote:
Originally Posted by ARJ
I have a cooding question (:
So this function makes me enter a mission.
But if my team is not full or "has a character form another campaign" it askes me if i want to still enter the missions..
Now how do I make the bot press "yes" xD
Thx
|
I think in some GWA2 there is another manner of doing it but a friend taught me this and this has worked for me in the passed when I've had that issue, if it doesn't help let me know and maybe can steer you in a different direction.
EnterChallenge()
Sleep(500+GetPing())
ControlSend(GetWindowHandle(), "", "", "{Enter}")
Sleep(500+GetPing())
ControlSend(GetWindowHandle(), "", "", "{Enter}")