Sign in to follow this  
Followers 0
Orgins

Best way to read this text in a flash game?

7 posts in this topic

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)

Posted Image

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.

Share this post


Link to post
Share on other sites



#3 ·  Posted (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 by Orgins

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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.

$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 by Orgins

I'm a newbie.Sorry if I don't reposed to your replays very fast.

Share this post


Link to post
Share on other sites

what is this game >?<

looks like ladderslasher to me.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

It is ladderslasher. I don't play d2 anymore so I needed something to waste my time.

ah cool

make 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.

:)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0