Results 1 to 2 of 2

Thread: Omerta

  1. #1
    Join Date
    Feb 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Omerta

    Hello all
    Im currently trying to do a simple script for Omerta.
    The main obejctive is to get all the anti script images possible until it starts repeating them.
    I never worked with scar before, so ill leave you guys some questions :P :
    - When we login into the game, we are redirected to the main page and it looks like this

    - What i need to do is first click on the option "Crimes" but it doesnt show up on the entry page because we have to scroll down to be able to seet it:
    When we get on the main page we see the menu like this

    But the option i need it to click is only visible if we scroll down a bit:


    So my first question is, how do i make it so i can click that option, presuming scar will see the page has shown in the frist screen?

    Now if i get past that problem, the next one is the following (presuming we are on the crime page already):

    - I need it to select the option i choose it to accomplish (example shoot at the bottle) and after picking it, it must enter the code showing on the img on the textbox.
    Its here where it get's more complicated ... trying to get that code through color functions is out of option. What i have in mind is, creating an option where all the script users can save the images into a database. The script "reads" all the images it has on the database, compares it with the one showing up on the game website, and if they match, it types the text corresponding to the image on the textbox. After this it must click on "Go for it".
    Well this is the main objectives of the script.

    All suggestions/ideas will be appreciated
    Sorry for the bad english and hope you all can help me =P
    Thx

  2. #2
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm... I've played this game before, but not for very long. The first problem can be solved, I believe by scrolling using the arrow keys...clicking on the scrollbar itself will likely not work as it is not universal for all computers. I would recommend doing something like this:
    SCAR Code:
    KeyDown(40); //40 is down arrow key.
    Repeat
     Wait(50)
    Until(FindBitmap({picture of the text},xs,ys,xe,ye))
    KeyUp(40)

    Or far more simply, but less reliably,
    SCAR Code:
    KeyDown(40)
    Wait(pick a number)
    KeyUp(40)

    As for the security image, we are actually lucky because it is all the same colour and only three characters which are all letters. It will still be a challenge, as each one has the potential to be any letter. It still probably isn't a viable option...My math skills have gone to hell since march break began, but I think that you would need to document around 17 000 different images.

    I hope I was helpful, and your English is very good for a second language, much better than many native speakers on this forum. What is your first language?

    Edit: I have come up with a plan, it's not great, but you could try finding BMP's or DTM's of each letter at different angles. Then you could do something like this:
    [scar]
    var
    Character1,Character2,Character3 : string;
    begin
    if FindBitmap(LetterA,x,y,xs,ys,xe,ye) then //Put the first section of the textbox for xs, ys...
    Character1 := 'A'
    if FindBitmap(LetterB,x,y,xs,ys,xe,ye) then
    Character1 :='B'
    end;

    Like I said, not great...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •