Results 1 to 3 of 3

Thread: Jail opening

  1. #1
    Join Date
    Feb 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Jail opening

    Hello

    I started with programming a script. I really like al the tutorials people have make so thanks all Only I don't understand how to open a Jail door. The wall is the same as the door so I can't use ACA to detect the door. Anybody have ideas for detecting the door? I'm a beginner programmer. I found this in a script:
    result := ClickObject(2175656, 4079680, 25, 25, 5, 1, 'yster', 'xit');

    But I don't understand: (2175656, 4079680, 25, 25, 5, 1)
    The first codes are colors. 25 is maybe the Tolercance?
    Maybe I can use that statement? Or will it be very buggy?

    Mark

  2. #2
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Simba Code:
    if FindObjCustom(x,y,['yster','xit'],[2175656, 4079680],25) then
      ClickMouse2(true);

    x,y are where the coords of the object will be stored.
    the text is the uptext of the object
    numbers are the colors.
    25 is the tolerance.

  3. #3
    Join Date
    Feb 2012
    Posts
    42
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if FindObjCustom(x,y,['yster','xit'],[2175656, 4079680],25) then
    ClickMouse2(true);

    If I change this to:

    if FindObjCustom(x,y,['etal','pen'],[color wall and door, color wall and door],25) then
    ClickMouse2(true);

    It should work?

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
  •