SRL Archive - First Scripts

Jail opening


Stanger

2012-03-30 07:15:59

Hello

I started with programming a script. I really like al the tutorials people have make so thanks all:D 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

Sin

2012-03-30 07:18:53


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.

Stanger

2012-03-30 08:49:51

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

If I change this to:

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

It should work?