how to implement picking up items in my bot menu

User Tag List

Results 1 to 8 of 8
  1. #1
    tfooj666stary's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    61
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to implement picking up items in my bot

    need help from you guys, i don't know how to implement picking up items in my bot.. would simple image search function do the thing like:

    Code:
    $ret = Square($mojx, $mojy) ;this goes at the end of the run when character has already killed the boss
    If $ret =1 Then D3_MouseClick(621,126,"left")
    
    Func Square(ByRef $rx, ByRef $ry)
    return _ImageSearchArea("square.bmp",1, 200,64,730,360,$rx,$ry,50)
     EndFunc
    i tried it but it does not seem to work in my 800x600 bot, the script does not simply recognize the items on the ground, any suggestions? other things like recognition of the area for instance "old ruins" works just fine, as well as jewelcrating and stuff.. i think it does have something to do with the background of the item depending on the floor color.. any idea how to overcome this?

    how to implement picking up items in my bot
  2. #2
    Sychotix's Avatar Moderator Authenticator enabled
    Reputation
    1425
    Join Date
    Apr 2006
    Posts
    3,951
    Thanks G/R
    285/575
    Trade Feedback
    1 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    One easy way to do it is to not use pixel searching for your bot. It is a terrible method.

  3. #3
    tfooj666stary's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    61
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i don't use it at all.. is my code okay? would you add something?

  4. #4
    Sychotix's Avatar Moderator Authenticator enabled
    Reputation
    1425
    Join Date
    Apr 2006
    Posts
    3,951
    Thanks G/R
    285/575
    Trade Feedback
    1 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by tfooj666stary View Post
    i don't use it at all.. is my code okay? would you add something?
    return _ImageSearchArea("square.bmp",1, 200,64,730,360,$rx,$ry,50)

    This is pixel searching... it is comparing the pixels of the image you provide with the section that you are telling it.

  5. #5
    tfooj666stary's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    61
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thought imagesearch and pixelsearch are different.. how else can i do it?

  6. #6
    npploveyou's Avatar Member
    Reputation
    2
    Join Date
    Jun 2012
    Posts
    27
    Thanks G/R
    0/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    use the memory reading, but instead you can think outside the autoit and learn some other basic/advanced programming lang

  7. #7
    tfooj666stary's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    61
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well.. i managed to make it pick up flawless squares and magic items but only at times.. doesn't seem to be worth it taking into account GPH, would be better if i implemented pixelsearching but according to pixel color not image.. but got no idea how to put it in the script, i don't have time for learning other programming ;p

  8. #8
    OriginalJedi's Avatar Member
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is what I use in Autoit v3. Remove the ; for the ones you which to pick up, I only pick up Set & Legendaries since everytime he picks up screws up my route. Also, do not know how to pick only items lvls 63, Rings and Ammys yet.. hope this help.. oh, you would have to use command Pickitup () everytime you move or kill stuff.

    Getting an error, won't let me post the code.. how do I post it here??

    Code:
    $Rare = 0xFFFF00 ;Rare color code
    $Rare2 = 15855874 ;Backup Rare color code
    $Magic = 0x6969FF ;Magic color code
    $Legend = 0xBF642F ;Legendary color code
    $Set = 0x00FF00 ;Set color code
    $Tome = 9482223 ;Tome color code
    $Potion = 10075135 ; Potion color code
    $Gem = 8363216 ; Gem color code
    $Left = 64
    $Top = 42
    $Right = 720
    $Bottom = 519

    Func Pickitup ()
    $Pickit=1
    $ClickCount = 0
    While $Pickit=1 And $ClickCount < $ClickMax
    $Pickit=0

    $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Legend)
    If Not @error Then
    Mousemove ($SearchResult[0],$SearchResult[1],0)
    sleep (100)
    MouseClick("Left",$SearchResult[0],$SearchResult[1],1,0)
    Sleep(Random(1500,2000))
    $Pickup = 1
    $ClickCount = $ClickCount + 1
    EndIf

    $SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Set)
    If Not @error Then
    Mousemove ($SearchResult[0],$SearchResult[1],0)
    sleep (100)
    MouseClick("Left",$SearchResult[0],$SearchResult[1],1,0)
    Sleep(Random(1500,2000))
    $Pickup = 1
    $ClickCount = $ClickCount + 1
    EndIf

    ;$SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Rare)
    ;If Not @error Then
    ; Mousemove ($SearchResult[0],$SearchResult[1],0)
    ; sleep (100)
    ; MouseClick("Left",$SearchResult[0],$SearchResult[1],1,0)
    ; Sleep(Random(1500,2000))
    ; $Pickup = 1
    ; $ClickCount = $ClickCount + 1
    ;EndIf

    ;$SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Potion)
    ;If Not @error Then
    ; Mousemove ($SearchResult[0],$SearchResult[1],0)
    ; sleep (100)
    ; MouseClick("Left",$SearchResult[0],$SearchResult[1],1,0)
    ; Sleep(Random(1500,2000))
    ; $Pickup = 1
    ; $ClickCount = $ClickCount + 1
    ;EndIf

    ;$SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Rare2)
    ;If Not @error Then
    ; Mousemove ($SearchResult[0],$SearchResult[1],0)
    ; sleep (100)
    ; MouseClick("Left",$SearchResult[0],$SearchResult[1],1,0)
    ; Sleep(Random(1500,2000))
    ; $Pickup = 1
    ; $ClickCount = $ClickCount + 1
    ;EndIf

    ;$SearchResult = PixelSearch($Left, $Top, $Right, $Bottom, $Gem)
    ;If Not @error Then
    ; Mousemove ($SearchResult[0],$SearchResult[1],0)
    ; sleep (100)
    ; MouseClick("Left",$SearchResult[0],$SearchResult[1],1,0)
    ; Sleep(Random(1500,2000))
    ; $Pickup = 1
    ; $ClickCount = $ClickCount + 1
    ;EndIf
    WEnd
    EndFunc
    Last edited by OriginalJedi; 10-14-2012 at 11:17 AM. Reason: Posting code

Similar Threads

  1. Replies: 5
    Last Post: 01-16-2013, 08:15 AM
  2. How to Add Premade Leveling Items [Included]
    By Herzeleid in forum WoW EMU Guides & Tutorials
    Replies: 8
    Last Post: 10-30-2007, 03:53 AM
  3. How to make your own items!!!
    By Ben090 in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 09-26-2007, 01:08 AM
  4. How to make your own items!!!
    By Ben090 in forum WoW EMU Guides & Tutorials
    Replies: 13
    Last Post: 09-18-2007, 07:14 PM
  5. How can i make custom items
    By silviu2008 in forum World of Warcraft General
    Replies: 1
    Last Post: 09-14-2007, 04:51 AM
All times are GMT -5. The time now is 11:47 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search