Orgins Posted March 20, 2008 Share Posted March 20, 2008 I made a small script/bot to play this flash game but it picks every item (I only have so much room so it gets full).How would I read the text of this items name?#1 is whats shown when you hover the mouse over the item (shows stats and what not)#2 is what it looks like before you move the move to it (only shows name)Each item ether has no prefix (which I don't want to pick up) or Magical Rare Mystical ect before the items name I only want to pick items with the prefixs or the rarer prefixs. So how would I tell if it has one of the wanted prefixs. Don't need a hand out just some input. I'm a newbie.Sorry if I don't reposed to your replays very fast. Link to comment Share on other sites More sharing options...
Bert Posted March 20, 2008 Share Posted March 20, 2008 You will have to do a pixel search. I don't know of a way to hook into the flash controls. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Orgins Posted March 20, 2008 Author Share Posted March 20, 2008 (edited) I use PixelSearch now to find out if a item is there to pick up (for black or red) Black is if I can use the item red is when I can't use the item. but how would I read the first word with that? what I'm using atm to pick: (ya its not very good but it works to pick everything up) ;picks if item is there $coord1 = PixelSearch( 135, 290, 207, 322, 0x000000 );looks for black text If Not @error Then MouseClick("left", $coord1[0], $coord1[1], 2) EndIf $coord2 = PixelSearch( 135, 290, 207, 322, 0xFF0000 );looks for red text If Not @error Then MouseClick("left", $coord2[0], $coord2[1], 2) EndIf Edited March 20, 2008 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast. Link to comment Share on other sites More sharing options...
Orgins Posted March 21, 2008 Author Share Posted March 21, 2008 (edited) Is this what you/he wanted me to do?: The msgbox and large delays will be removed when done (just had them to try this out) and will probably have 3-4 pixelgetcolor's per letter. But If I do it this way its going be alot of work thats just for one out of 10 types for 1 out of 12+ slots. expandcollapse popup$Slot1 = 0 Sleep(3000) ;Slot 1 Mystical (Mys Looks for the M then Y then S (1 pixel per atm)) If PixelGetColor( 563 , 299 ) = 0x000000 Then MsgBox(4096,"", "Blake M.") $Slot1 = $Slot1 + 1 ElseIf PixelGetColor( 563 , 299 ) = 0xFF0000 Then MsgBox(4096,"", "Red M") $Slot1 = $Slot1 + 1 EndIf If PixelGetColor( 574 , 306 ) = 0x000000 Then MsgBox(4096,"", "Blake y.") $Slot1 = $Slot1 + 1 ElseIf PixelGetColor( 574 , 306 ) = 0xFF0000 Then MsgBox(4096,"", "Red y") $Slot1 = $Slot1 + 1 EndIf If PixelGetColor( 585 , 305 ) = 0x000000 Then MsgBox(4096,"", "Blake s.") $Slot1 = $Slot1 + 1 ElseIf PixelGetColor( 585 , 305 ) = 0xFF0000 Then MsgBox(4096,"", "Red s") $Slot1 = $Slot1 + 1 EndIf If $Slot1 = 0 Then ToolTip("Selling slot1 (0/3)", 0, 0) Sleep(2000) MouseClickDrag("left", 567, 304, 571, 631);drags item to be trashed/deleted EndIf If $Slot1 = 1 Then ToolTip("Selling slot1 (1/3)", 0, 0) Sleep(2000) MouseClickDrag("left", 567, 304, 571, 631);drags item to be trashed/deleted endif If $Slot1 = 2 Then ToolTip("Keeping slot1 (2/3)", 0, 0) Sleep(2000) endif If $Slot1 = 3 Then ToolTip("Keeping slot1 (3/3)", 0, 0) Sleep(2000) endif Edited March 21, 2008 by Orgins I'm a newbie.Sorry if I don't reposed to your replays very fast. Link to comment Share on other sites More sharing options...
Tomb Posted March 21, 2008 Share Posted March 21, 2008 what is this game >?< looks like ladderslasher to me. Link to comment Share on other sites More sharing options...
Orgins Posted March 21, 2008 Author Share Posted March 21, 2008 It is ladderslasher. I don't play d2 anymore so I needed something to waste my time. I'm a newbie.Sorry if I don't reposed to your replays very fast. Link to comment Share on other sites More sharing options...
Tomb Posted March 21, 2008 Share Posted March 21, 2008 It is ladderslasher. I don't play d2 anymore so I needed something to waste my time.ah coolmake sure to add in some random sleep timers between actions so they don't suspect that you are botting.like sleep a random amount from 500-3000 ms. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now