본문내용
ble %N82%
Variable Modify Integer: %N80% = %N80% + 28
End If
If Variable %N80% > variable %N82%
Variable Modify Integer: %N80% = %N80% - 28
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// ..
// y축 이동
2번째 마작이 위치한 x축까지 이동하는 루틴입니다.
Repeat Until %N81% = %N83%
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% = variable %N99%
If Variable %N81% < variable %N83%
Variable Modify Integer: %N81% = %N81% - 28
End If
If Variable %N81% > variable %N83%
Variable Modify Integer: %N81% = %N81% + 28
End If
Repeat Exit
End If
If Variable %N81% < variable %N83%
Variable Modify Integer: %N81% = %N81% + 28
End If
If Variable %N81% > variable %N83%
Variable Modify Integer: %N81% = %N81% - 28
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// ..
End If
현재의 위치가 2번째 마작의 좌표와 일치하면 리턴 D1=1 을 보내라
If Variable %N80% = variable %N82%
AND
If Variable %N81% = variable %N83%
Variable Set Decimal %D1% to 1
End If
// y축 ==> 으로 시작 종료
3]----------------------------------------------------
4]----------------------------------------------------
// y축 <== 으로 시작
1번마작에서 위쪽으로 먼저가는 루틴입니다.
Variable Set Integer %N80% to %N90%
Variable Set Integer %N81% to %N91%
Variable Modify Integer: %N81% = %N81% - 28
마작하나의 칸이 28x28 으로 28을 뺀다는건 한칸씩 위쪽으로 간다는말이겠죠
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% <> variable %N99%
AND
If Variable %D1% <> 1
현재 위치에 마작이있는지 확인하는루틴입니다.
Variable Set Integer %N81% to %N91%
다시 1번 마작의 위치로 돌아가라
Repeat Until %N81% < 161
1번마작에서 위쪽으로 맨처음까지 가는루틴
Variable Modify Integer: %N81% = %N81% - 28
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% = variable %N99%
Variable Modify Integer: %N81% = %N81% + 28
Repeat Exit
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// x축 이동
2번째 마작이 위치한 x축까지 이동하는 루틴입니다.
Repeat Until %N80% = %N82%
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% = variable %N99%
If Variable %N80% < variable %N82%
Variable Modify Integer: %N80% = %N80% - 28
End If
If Variable %N80% > variable %N82%
Variable Modify Integer: %N80% = %N80% + 28
End If
Repeat Exit
End If
If Variable %N80% < variable %N82%
Variable Modify Integer: %N80% = %N80% + 28
End If
If Variable %N80% > variable %N82%
Variable Modify Integer: %N80% = %N80% - 28
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// ..
// y축 이동
2번째 마작이 위치한 y축까지 이동하는 루틴입니다.
Repeat Until %N81% = %N83%
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% = variable %N99%
If Variable %N81% < variable %N83%
Variable Modify Integer: %N81% = %N81% - 28
End If
If Variable %N81% > variable %N83%
Variable Modify Integer: %N81% = %N81% + 28
End If
Repeat Exit
End If
If Variable %N81% < variable %N83%
Variable Modify Integer: %N81% = %N81% + 28
End If
If Variable %N81% > variable %N83%
Variable Modify Integer: %N81% = %N81% - 28
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// ..
End If
현재의 위치가 2번째 마작의 좌표와 일치하면 리턴 D1=1 을 보내라
If Variable %N80% = variable %N82%
AND
If Variable %N81% = variable %N83%
Variable Set Decimal %D1% to 1
End If
// y축 ==> 으로 시작 종료
Variable Modify Integer: %N80% = %N80% + 28
End If
If Variable %N80% > variable %N82%
Variable Modify Integer: %N80% = %N80% - 28
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// ..
// y축 이동
2번째 마작이 위치한 x축까지 이동하는 루틴입니다.
Repeat Until %N81% = %N83%
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% = variable %N99%
If Variable %N81% < variable %N83%
Variable Modify Integer: %N81% = %N81% - 28
End If
If Variable %N81% > variable %N83%
Variable Modify Integer: %N81% = %N81% + 28
End If
Repeat Exit
End If
If Variable %N81% < variable %N83%
Variable Modify Integer: %N81% = %N81% + 28
End If
If Variable %N81% > variable %N83%
Variable Modify Integer: %N81% = %N81% - 28
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// ..
End If
현재의 위치가 2번째 마작의 좌표와 일치하면 리턴 D1=1 을 보내라
If Variable %N80% = variable %N82%
AND
If Variable %N81% = variable %N83%
Variable Set Decimal %D1% to 1
End If
// y축 ==> 으로 시작 종료
3]----------------------------------------------------
4]----------------------------------------------------
// y축 <== 으로 시작
1번마작에서 위쪽으로 먼저가는 루틴입니다.
Variable Set Integer %N80% to %N90%
Variable Set Integer %N81% to %N91%
Variable Modify Integer: %N81% = %N81% - 28
마작하나의 칸이 28x28 으로 28을 뺀다는건 한칸씩 위쪽으로 간다는말이겠죠
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% <> variable %N99%
AND
If Variable %D1% <> 1
현재 위치에 마작이있는지 확인하는루틴입니다.
Variable Set Integer %N81% to %N91%
다시 1번 마작의 위치로 돌아가라
Repeat Until %N81% < 161
1번마작에서 위쪽으로 맨처음까지 가는루틴
Variable Modify Integer: %N81% = %N81% - 28
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% = variable %N99%
Variable Modify Integer: %N81% = %N81% + 28
Repeat Exit
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// x축 이동
2번째 마작이 위치한 x축까지 이동하는 루틴입니다.
Repeat Until %N80% = %N82%
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% = variable %N99%
If Variable %N80% < variable %N82%
Variable Modify Integer: %N80% = %N80% - 28
End If
If Variable %N80% > variable %N82%
Variable Modify Integer: %N80% = %N80% + 28
End If
Repeat Exit
End If
If Variable %N80% < variable %N82%
Variable Modify Integer: %N80% = %N80% + 28
End If
If Variable %N80% > variable %N82%
Variable Modify Integer: %N80% = %N80% - 28
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// ..
// y축 이동
2번째 마작이 위치한 y축까지 이동하는 루틴입니다.
Repeat Until %N81% = %N83%
Get Pixel: Screen Coords: %N80%,%N81% into %N1%
If Variable %N1% = variable %N99%
If Variable %N81% < variable %N83%
Variable Modify Integer: %N81% = %N81% - 28
End If
If Variable %N81% > variable %N83%
Variable Modify Integer: %N81% = %N81% + 28
End If
Repeat Exit
End If
If Variable %N81% < variable %N83%
Variable Modify Integer: %N81% = %N81% + 28
End If
If Variable %N81% > variable %N83%
Variable Modify Integer: %N81% = %N81% - 28
End If
Repeat End
이동중에 마작이있으면 바로전에 멈추는 루틴입니다.
// ..
End If
현재의 위치가 2번째 마작의 좌표와 일치하면 리턴 D1=1 을 보내라
If Variable %N80% = variable %N82%
AND
If Variable %N81% = variable %N83%
Variable Set Decimal %D1% to 1
End If
// y축 ==> 으로 시작 종료