Sign in to follow this  
Followers 0
thenewkid

how to make a script tell a cards name

6 posts in this topic

Hi

me and a pal was working on a script for a game we both play but he had to stop and he got half way thow doing his bit but he never told me how he did it and how it works and that all i know is it uses the Pixels on the card to tell there names from the others

3515049060-266426779=Pernicious Deed [AP]

; ^ how did he get thows numbers

the attached file is the cards pic what it uses to get the name of the card


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites



As far as I know.. I get a number of: 3583584530

I have used PixelChecksum(31,141,201,277) on your image..

So I think he used that one ;)

Neo


[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

Share this post


Link to post
Share on other sites

the numbers dont mach the same he had 2 sets of numbers and if u use checksum it only gives 1


some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites

I only tried this in 10 sec... perhaps you can play with PixelChecksum on the card and can figure the second yourself ;)

*HINT: I think it is the pinky textbox* :lmao:

Neo


[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

Share this post


Link to post
Share on other sites

maybe the code will help this code heres some of the coded used for it when i run the script to tell the cards name

but i need to get the numbers for that to work and i dont know how to

Func _NumberCheck($X, $Y)
;======Checks for 0======
    If PixelGetColor($X + 1, $Y + 0) = 16777215 And _
            PixelGetColor($X + 2, $Y + 0) = 16777215 And _
            PixelGetColor($X + 3, $Y + 0) = 16777215 And _
            PixelGetColor($X + 0, $Y + 1) = 16777215 And _
            PixelGetColor($X + 4, $Y + 1) = 16777215 And _
            PixelGetColor($X + 0, $Y + 2) = 16777215 And _
            PixelGetColor($X + 4, $Y + 2) = 16777215 And _
            PixelGetColor($X + 0, $Y + 3) = 16777215 And _
            PixelGetColor($X + 4, $Y + 3) = 16777215 And _
            PixelGetColor($X + 0, $Y + 4) = 16777215 And _
            PixelGetColor($X + 4, $Y + 4) = 16777215 And _
            PixelGetColor($X + 0, $Y + 5) = 16777215 And _
            PixelGetColor($X + 4, $Y + 5) = 16777215 And _
            PixelGetColor($X + 0, $Y + 6) = 16777215 And _
            PixelGetColor($X + 4, $Y + 6) = 16777215 And _
            PixelGetColor($X + 0, $Y + 7) = 16777215 And _
            PixelGetColor($X + 4, $Y + 7) = 16777215 And _
            PixelGetColor($X + 0, $Y + 8) = 16777215 And _
            PixelGetColor($X + 4, $Y + 8) = 16777215 And _
            PixelGetColor($X + 1, $Y + 9) = 16777215 And _
            PixelGetColor($X + 2, $Y + 9) = 16777215 And _
            PixelGetColor($X + 3, $Y + 9) = 16777215 Then
        Return "0"
    EndIf
;======checks for 1=======
    If PixelGetColor($X + 2, $Y + 0) = 16777215 And _
            PixelGetColor($X + 0, $Y + 1) = 16777215 And _
            PixelGetColor($X + 1, $Y + 1) = 16777215 And _
            PixelGetColor($X + 2, $Y + 1) = 16777215 And _
            PixelGetColor($X + 2, $Y + 2) = 16777215 And _
            PixelGetColor($X + 2, $Y + 3) = 16777215 And _
            PixelGetColor($X + 2, $Y + 4) = 16777215 And _
            PixelGetColor($X + 2, $Y + 5) = 16777215 And _
            PixelGetColor($X + 2, $Y + 6) = 16777215 And _
            PixelGetColor($X + 2, $Y + 7) = 16777215 And _
            PixelGetColor($X + 2, $Y + 8) = 16777215 And _
            PixelGetColor($X + 2, $Y + 9) = 16777215 Then
        Return "1"
    EndIf
;======Checks for 2======
    If PixelGetColor($X + 1, $Y + 0) = 16777215 And _
            PixelGetColor($X + 2, $Y + 0) = 16777215 And _
            PixelGetColor($X + 3, $Y + 0) = 16777215 And _
            PixelGetColor($X + 0, $Y + 1) = 16777215 And _
            PixelGetColor($X + 4, $Y + 1) = 16777215 And _
            PixelGetColor($X + 0, $Y + 2) = 16777215 And _
            PixelGetColor($X + 4, $Y + 2) = 16777215 And _
            PixelGetColor($X + 4, $Y + 3) = 16777215 And _
            PixelGetColor($X + 3, $Y + 4) = 16777215 And _
            PixelGetColor($X + 2, $Y + 5) = 16777215 And _
            PixelGetColor($X + 1, $Y + 6) = 16777215 And _
            PixelGetColor($X + 0, $Y + 7) = 16777215 And _
            PixelGetColor($X + 0, $Y + 8) = 16777215 And _
            PixelGetColor($X + 0, $Y + 9) = 16777215 And _
            PixelGetColor($X + 1, $Y + 9) = 16777215 And _
            PixelGetColor($X + 2, $Y + 9) = 16777215 And _
            PixelGetColor($X + 3, $Y + 9) = 16777215 And _
            PixelGetColor($X + 4, $Y + 9) = 16777215 Then
        Return "2"
    EndIf
;======checks for 4======
    If PixelGetColor($X + 4, $Y + 0) = 16777215 And _
            PixelGetColor($X + 3, $Y + 1) = 16777215 And _
            PixelGetColor($X + 4, $Y + 1) = 16777215 And _
            PixelGetColor($X + 2, $Y + 2) = 16777215 And _
            PixelGetColor($X + 4, $Y + 2) = 16777215 And _
            PixelGetColor($X + 2, $Y + 3) = 16777215 And _
            PixelGetColor($X + 4, $Y + 3) = 16777215 And _
            PixelGetColor($X + 1, $Y + 4) = 16777215 And _
            PixelGetColor($X + 4, $Y + 4) = 16777215 And _
            PixelGetColor($X + 0, $Y + 5) = 16777215 And _
            PixelGetColor($X + 4, $Y + 5) = 16777215 And _
            PixelGetColor($X + 0, $Y + 6) = 16777215 And _
            PixelGetColor($X + 1, $Y + 6) = 16777215 And _
            PixelGetColor($X + 2, $Y + 6) = 16777215 And _
            PixelGetColor($X + 3, $Y + 6) = 16777215 And _
            PixelGetColor($X + 4, $Y + 6) = 16777215 And _
            PixelGetColor($X + 4, $Y + 7) = 16777215 And _
            PixelGetColor($X + 4, $Y + 8) = 16777215 And _
            PixelGetColor($X + 4, $Y + 9) = 16777215 Then
        Return "4"
    EndIf
;======checks for 5======
    If PixelGetColor($X + 0, $Y + 0) = 16777215 And _
            PixelGetColor($X + 1, $Y + 0) = 16777215 And _
            PixelGetColor($X + 2, $Y + 0) = 16777215 And _
            PixelGetColor($X + 3, $Y + 0) = 16777215 And _
            PixelGetColor($X + 4, $Y + 0) = 16777215 And _
            PixelGetColor($X + 0, $Y + 1) = 16777215 And _
            PixelGetColor($X + 0, $Y + 2) = 16777215 And _
            PixelGetColor($X + 0, $Y + 3) = 16777215 And _
            PixelGetColor($X + 0, $Y + 4) = 16777215 And _
            PixelGetColor($X + 1, $Y + 4) = 16777215 And _
            PixelGetColor($X + 2, $Y + 4) = 16777215 And _
            PixelGetColor($X + 3, $Y + 4) = 16777215 And _
            PixelGetColor($X + 0, $Y + 5) = 16777215 And _
            PixelGetColor($X + 4, $Y + 5) = 16777215 And _
            PixelGetColor($X + 4, $Y + 6) = 16777215 And _
            PixelGetColor($X + 4, $Y + 7) = 16777215 And _
            PixelGetColor($X + 0, $Y + 8) = 16777215 And _
            PixelGetColor($X + 4, $Y + 8) = 16777215 And _
            PixelGetColor($X + 1, $Y + 9) = 16777215 And _
            PixelGetColor($X + 2, $Y + 9) = 16777215 And _
            PixelGetColor($X + 3, $Y + 9) = 16777215 Then
        Return "5"
    EndIf
;======checks for 6======
    If PixelGetColor($X + 1, $Y + 0) = 16777215 And _
            PixelGetColor($X + 2, $Y + 0) = 16777215 And _
            PixelGetColor($X + 3, $Y + 0) = 16777215 And _
            PixelGetColor($X + 0, $Y + 1) = 16777215 And _
            PixelGetColor($X + 4, $Y + 1) = 16777215 And _
            PixelGetColor($X + 0, $Y + 2) = 16777215 And _
            PixelGetColor($X + 0, $Y + 3) = 16777215 And _
            PixelGetColor($X + 0, $Y + 4) = 16777215 And _
            PixelGetColor($X + 2, $Y + 4) = 16777215 And _
            PixelGetColor($X + 3, $Y + 4) = 16777215 And _
            PixelGetColor($X + 0, $Y + 5) = 16777215 And _
            PixelGetColor($X + 1, $Y + 5) = 16777215 And _
            PixelGetColor($X + 4, $Y + 5) = 16777215 And _
            PixelGetColor($X + 0, $Y + 6) = 16777215 And _
            PixelGetColor($X + 4, $Y + 6) = 16777215 And _
            PixelGetColor($X + 0, $Y + 7) = 16777215 And _
            PixelGetColor($X + 4, $Y + 7) = 16777215 And _
            PixelGetColor($X + 0, $Y + 8) = 16777215 And _
            PixelGetColor($X + 4, $Y + 8) = 16777215 And _
            PixelGetColor($X + 1, $Y + 9) = 16777215 And _
            PixelGetColor($X + 2, $Y + 9) = 16777215 And _
            PixelGetColor($X + 3, $Y + 9) = 16777215 Then
        Return "6"
    EndIf
;======checks for 7======
    If PixelGetColor($X + 0, $Y + 0) = 16777215 And _
            PixelGetColor($X + 1, $Y + 0) = 16777215 And _
            PixelGetColor($X + 2, $Y + 0) = 16777215 And _
            PixelGetColor($X + 3, $Y + 0) = 16777215 And _
            PixelGetColor($X + 4, $Y + 0) = 16777215 And _
            PixelGetColor($X + 4, $Y + 1) = 16777215 And _
            PixelGetColor($X + 4, $Y + 2) = 16777215 And _
            PixelGetColor($X + 3, $Y + 3) = 16777215 And _
            PixelGetColor($X + 3, $Y + 4) = 16777215 And _
            PixelGetColor($X + 2, $Y + 6) = 16777215 And _
            PixelGetColor($X + 1, $Y + 7) = 16777215 And _
            PixelGetColor($X + 1, $Y + 8) = 16777215 And _
            PixelGetColor($X + 1, $Y + 9) = 16777215 Then
        Return "7"
    EndIf
;======checks for 8======
    If PixelGetColor($X + 1, $Y + 0) = 16777215 And _
            PixelGetColor($X + 2, $Y + 0) = 16777215 And _
            PixelGetColor($X + 3, $Y + 0) = 16777215 And _
            PixelGetColor($X + 0, $Y + 1) = 16777215 And _
            PixelGetColor($X + 4, $Y + 1) = 16777215 And _
            PixelGetColor($X + 0, $Y + 2) = 16777215 And _
            PixelGetColor($X + 4, $Y + 2) = 16777215 And _
            PixelGetColor($X + 0, $Y + 3) = 16777215 And _
            PixelGetColor($X + 4, $Y + 3) = 16777215 And _
            PixelGetColor($X + 1, $Y + 4) = 16777215 And _
            PixelGetColor($X + 2, $Y + 4) = 16777215 And _
            PixelGetColor($X + 3, $Y + 4) = 16777215 And _
            PixelGetColor($X + 0, $Y + 5) = 16777215 And _
            PixelGetColor($X + 4, $Y + 5) = 16777215 And _
            PixelGetColor($X + 0, $Y + 6) = 16777215 And _
            PixelGetColor($X + 4, $Y + 6) = 16777215 And _
            PixelGetColor($X + 0, $Y + 7) = 16777215 And _
            PixelGetColor($X + 4, $Y + 7) = 16777215 And _
            PixelGetColor($X + 0, $Y + 8) = 16777215 And _
            PixelGetColor($X + 4, $Y + 8) = 16777215 And _
            PixelGetColor($X + 1, $Y + 9) = 16777215 And _
            PixelGetColor($X + 2, $Y + 9) = 16777215 And _
            PixelGetColor($X + 3, $Y + 9) = 16777215 Then
        Return "8"
    EndIf
;======checks for 3======
    If PixelGetColor($X + 1, $Y + 0) = 16777215 And _
            PixelGetColor($X + 2, $Y + 0) = 16777215 And _
            PixelGetColor($X + 3, $Y + 0) = 16777215 And _
            PixelGetColor($X + 0, $Y + 1) = 16777215 And _
            PixelGetColor($X + 4, $Y + 1) = 16777215 And _
            PixelGetColor($X + 4, $Y + 2) = 16777215 And _
            PixelGetColor($X + 4, $Y + 3) = 16777215 And _
            PixelGetColor($X + 2, $Y + 4) = 16777215 And _
            PixelGetColor($X + 3, $Y + 4) = 16777215 And _
            PixelGetColor($X + 4, $Y + 5) = 16777215 And _
            PixelGetColor($X + 4, $Y + 6) = 16777215 And _
            PixelGetColor($X + 4, $Y + 7) = 16777215 And _
            PixelGetColor($X + 0, $Y + 8) = 16777215 And _
            PixelGetColor($X + 4, $Y + 8) = 16777215 And _
            PixelGetColor($X + 1, $Y + 9) = 16777215 And _
            PixelGetColor($X + 2, $Y + 9) = 16777215 And _
            PixelGetColor($X + 3, $Y + 9) = 16777215 Then
        Return "3"
    EndIf
;======checks for 9======
    If PixelGetColor($X + 1, $Y + 0) = 16777215 And _
            PixelGetColor($X + 2, $Y + 0) = 16777215 And _
            PixelGetColor($X + 3, $Y + 0) = 16777215 And _
            PixelGetColor($X + 0, $Y + 1) = 16777215 And _
            PixelGetColor($X + 4, $Y + 1) = 16777215 And _
            PixelGetColor($X + 0, $Y + 2) = 16777215 And _
            PixelGetColor($X + 4, $Y + 2) = 16777215 And _
            PixelGetColor($X + 0, $Y + 3) = 16777215 And _
            PixelGetColor($X + 4, $Y + 3) = 16777215 And _
            PixelGetColor($X + 0, $Y + 4) = 16777215 And _
            PixelGetColor($X + 3, $Y + 4) = 16777215 And _
            PixelGetColor($X + 4, $Y + 4) = 16777215 And _
            PixelGetColor($X + 1, $Y + 5) = 16777215 And _
            PixelGetColor($X + 2, $Y + 5) = 16777215 And _
            PixelGetColor($X + 4, $Y + 5) = 16777215 And _
            PixelGetColor($X + 4, $Y + 6) = 16777215 And _
            PixelGetColor($X + 4, $Y + 7) = 16777215 And _
            PixelGetColor($X + 0, $Y + 8) = 16777215 And _
            PixelGetColor($X + 4, $Y + 8) = 16777215 And _
            PixelGetColor($X + 1, $Y + 9) = 16777215 And _
            PixelGetColor($X + 2, $Y + 9) = 16777215 And _
            PixelGetColor($X + 3, $Y + 9) = 16777215 Then
        Return "9"
    Else
        Return "."
    EndIf
EndFunc  ;==>_NumberCheck

some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with

Share this post


Link to post
Share on other sites

I don`t have the X en Y coordinates.. but if I had to say what is does:

Read the WHITE letters...

It`s searching for somehing WHITE, because the code 16777215 is RGB-dec color for it.

And if I look at your img.. I see that the letters are white.

So probably it's reading the letters indeed... and if all the given codes are white: result = card else result = none

Neo


[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

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