Author Topic: Скрипт  (Read 1287 times)

0 Members and 1 Guest are viewing this topic.

Magister

  • Зашел в гости
  • *
  • Posts: 2
    • View Profile
Скрипт
« on: November 18, 2017, 08:31:51 PM »
Скрипт для игры.
Можно ли сделать так.Допустим запускаю скрипт. Если появляется определенный кадр игры то запускается часть кода. Далее появляется другой кадр и начинается другая часть кода. Появляется еще кадр и при виде кадра скрипт отключается.
Заранее спасибо
[spoiler]
// 12.11.2017
запуск по кадру
[spoiler]
WAIT(5)
KEYPRESS(#ENTER)
WAIT(2)
WAITMS(50)
LDOWN(10,10) // Зажимаем
KEYPRESS(#o)
WAIT(2)
KEYPRESS(#2)
WAIT(1)
LUP(10,10) // Отпускаем
 
WAITMS(50)
$time = $_time_t + 1200
WHILE($time > $_time_t) // Цикл 20мин

   waitms(55 + $S_CORR)
move(512,384)
waitms(0 + $S_CORR)
  lDown(512,384)
waitms(47 + $S_CORR)
  lUp(512,384)
waitms(105 + $S_CORR)
  lDown(512,384)
waitms(102 + $S_CORR)
  lUp(512,384)
waitms(90 + $S_CORR)   
   KEYPRESS(#5)   
  lDown(512,384)
waitms(80 + $S_CORR)
  lUp(512,384)
waitms(123 + $S_CORR)
  lDown(512,384)
waitms(78 + $S_CORR)
  lUp(512,384)
waitms(89 + $S_CORR)
  lDown(512,384)
waitms(90 + $S_CORR)
  lUp(512,384)
waitms(81 + $S_CORR)
  lDown(512,384)
waitms(91 + $S_CORR)
  lUp(512,384)
waitms(100 + $S_CORR)
  lDown(512,384)
waitms(69 + $S_CORR)
  lUp(512,384)
waitms(120 + $S_CORR)
  lDown(512,384)
waitms(80 + $S_CORR)
  lUp(512,384)
waitms(74 + $S_CORR)
  lDown(512,384)
waitms(156 + $S_CORR)
  KEYPRESS(#6)
  lUp(512,384)
waitms(40 + $S_CORR)
  lDown(512,384)
waitms(200 + $S_CORR)
  lUp(512,384)
waitms(12 + $S_CORR)
  lDown(512,384)
waitms(98 + $S_CORR)
  lUp(512,384)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(70 + $S_CORR)
  lUp(512,384)
waitms(130 + $S_CORR)
  lDown(512,384)
waitms(90 + $S_CORR)
  lUp(512,384)
waitms(80 + $S_CORR)
  lDown(512,384)
waitms(110 + $S_CORR)
  lUp(512,384)
waitms(100 + $S_CORR)
  lDown(512,384)
waitms(100 + $S_CORR)
  lUp(512,384)
waitms(62 + $S_CORR)
  lDown(512,384)
waitms(128 + $S_CORR)
  lUp(512,384)
waitms(100 + $S_CORR)
  lDown(512,384)
waitms(110 + $S_CORR)
  lUp(512,384)
waitms(90 + $S_CORR)
  lDown(512,384)
waitms(90 + $S_CORR)
  lUp(512,384)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(82 + $S_CORR)
  lUp(512,384)
waitms(118 + $S_CORR)
  lDown(512,384)
waitms(149 + $S_CORR)
  keyDown(82)
waitms(71 + $S_CORR)
  lUp(512,384)
waitms(60 + $S_CORR)
  KEYPRESS(#5)
  keyUp(82)
waitms(19 + $S_CORR)
  lDown(512,384)
waitms(71 + $S_CORR)
  lUp(512,384)
waitms(162 + $S_CORR)
  lDown(512,384)
waitms(20 + $S_CORR)
  lUp(512,384)
waitms(128 + $S_CORR)
  lDown(512,384)
waitms(90 + $S_CORR)
  lUp(512,384)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(84 + $S_CORR)
  lUp(512,384)
waitms(7 + $S_CORR)
  keyDown(82)
waitms(111 + $S_CORR)
  lDown(512,384)
waitms(39 + $S_CORR)
  keyUp(82)
waitms(53 + $S_CORR)
  lUp(512,384)
waitms(200 + $S_CORR)
  lDown(512,384)
waitms(79 + $S_CORR)
  lUp(512,384)
waitms(91 + $S_CORR)
  lDown(512,384)
waitms(249 + $S_CORR)
  lUp(512,384)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(99 + $S_CORR)
  lUp(512,384)
waitms(111 + $S_CORR)
  lDown(512,384)
waitms(85 + $S_CORR)
  lUp(512,384)
waitms(115 + $S_CORR)
  lDown(512,384)
waitms(80 + $S_CORR)
  lUp(512,384)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(70 + $S_CORR)
  lUp(512,384)
waitms(129 + $S_CORR)
  lDown(512,384)
waitms(41 + $S_CORR)
  KEYPRESS(#6)
  lUp(512,384)
waitms(119 + $S_CORR)
  lDown(512,384)
waitms(80 + $S_CORR)
  lUp(512,384)
waitms(313 + $S_CORR)
  lDown(512,384)
waitms(87 + $S_CORR)
  lUp(512,384)
waitms(168 + $S_CORR)
  lDown(512,384)
waitms(3 + $S_CORR)
  lUp(512,384)
waitms(130 + $S_CORR)
  lDown(512,384)
waitms(80 + $S_CORR)
  lUp(512,384)
waitms(39 + $S_CORR)
move(510,384)
waitms(11 + $S_CORR)
move(509,384)
waitms(80 + $S_CORR)
  lDown(509,384)
waitms(79 + $S_CORR)
  lUp(509,384)
waitms(101 + $S_CORR)
  lDown(509,384)
waitms(99 + $S_CORR)
  lUp(509,384)
waitms(101 + $S_CORR)
  lDown(509,384)
waitms(100 + $S_CORR)
  lUp(509,384)
waitms(160 + $S_CORR)
move(512,384)
waitms(0 + $S_CORR)
  lDown(512,384)
waitms(20 + $S_CORR)
  lUp(512,384)
waitms(120 + $S_CORR)
  lDown(512,384)
waitms(90 + $S_CORR)
  lUp(512,384)
waitms(70 + $S_CORR)
  lDown(512,384)
waitms(105 + $S_CORR)
  KEYPRESS(#5)
  lUp(512,384)
waitms(80 + $S_CORR)
  lDown(512,384)
waitms(34 + $S_CORR)
  keyDown(82)
waitms(63 + $S_CORR)
  lUp(512,384)
waitms(68 + $S_CORR)
  keyUp(82)
waitms(14 + $S_CORR)
  lDown(512,384)
waitms(108 + $S_CORR)
  lUp(512,384)
waitms(21 + $S_CORR)
  keyDown(82)
waitms(69 + $S_CORR)
  lDown(512,384)
waitms(74 + $S_CORR)
  keyUp(82)
waitms(6 + $S_CORR)
  lUp(512,384)
waitms(101 + $S_CORR)
  lDown(512,384)
waitms(89 + $S_CORR)
  lUp(512,384)
waitms(111 + $S_CORR)
  lDown(512,384)
waitms(70 + $S_CORR)
  lUp(512,384)
waitms(120 + $S_CORR)
  lDown(512,384)
waitms(72 + $S_CORR)
  lUp(512,384)
waitms(112 + $S_CORR)
  lDown(512,384)
waitms(104 + $S_CORR)
  lUp(512,384)
waitms(141 + $S_CORR)
  lDown(512,384)
waitms(247 + $S_CORR)
  keyDown(82)
waitms(30 + $S_CORR)
  lUp(512,384)
waitms(90 + $S_CORR)
  keyUp(82)
waitms(4 + $S_CORR)
  lDown(512,384)
waitms(90 + $S_CORR)
  lUp(512,384)
waitms(106 + $S_CORR)
  lDown(512,384)
waitms(144 + $S_CORR)
  lUp(512,384)
waitms(44 + $S_CORR)
  lDown(512,384)
waitms(96 + $S_CORR)
  lUp(512,384)
waitms(119 + $S_CORR)
  lDown(512,384)
waitms(52 + $S_CORR)
  lUp(512,384)
waitms(118 + $S_CORR)
  lDown(512,384)
waitms(81 + $S_CORR)
  lUp(512,384)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(90 + $S_CORR)
  KEYPRESS(#6)
  lUp(512,384)
waitms(90 + $S_CORR)
  lDown(512,384)
waitms(90 + $S_CORR)
  lUp(512,384)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(80 + $S_CORR)
  lUp(512,384)
waitms(19 + $S_CORR)
  keyDown(82)
waitms(91 + $S_CORR)
  lDown(512,384)
waitms(29 + $S_CORR)
  keyUp(82)
waitms(61 + $S_CORR)
  lUp(512,384)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(80 + $S_CORR)
  lUp(512,384)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(90 + $S_CORR)
  lUp(512,384)
waitms(106 + $S_CORR)
  lDown(512,384)
waitms(103 + $S_CORR)
  lUp(512,384)
    KEYPRESS(#F2)
waitms(110 + $S_CORR)
  lDown(512,384)
waitms(71 + $S_CORR)
  lUp(512,384)
waitms(104 + $S_CORR)
  lDown(512,384)
waitms(52 + $S_CORR)
  keyDown(82)
waitms(30 + $S_CORR)
  lUp(512,384)
waitms(168 + $S_CORR)
  lDown(512,384)
waitms(0 + $S_CORR)
  keyUp(82)
waitms(29 + $S_CORR)
  lUp(512,384)
waitms(73 + $S_CORR)
  keyDown(82)
waitms(27 + $S_CORR)
  lDown(512,384)
waitms(50 + $S_CORR)
  keyUp(82)
waitms(28 + $S_CORR)
  lUp(512,384)
waitms(262 + $S_CORR)
  lDown(512,384)
waitms(65 + $S_CORR)
  lUp(512,384)
waitms(96 + $S_CORR)
  lDown(512,384)
waitms(80 + $S_CORR)
  lUp(512,384)
    KEYPRESS(#5)
   WAITMS(50)
END_CYC
[/spoiler]
запуск по кадру
[spoiler]
$S_CORR = 0

waitms(17 + $S_CORR)
move(552,461)
waitms(105 + $S_CORR)
move(552,462)
waitms(7 + $S_CORR)
move(552,463)
waitms(6 + $S_CORR)
move(553,464)
waitms(9 + $S_CORR)
move(553,465)
waitms(20 + $S_CORR)
move(554,465)
waitms(4 + $S_CORR)
move(554,466)
waitms(7 + $S_CORR)
move(554,467)
waitms(8 + $S_CORR)
move(555,469)
waitms(8 + $S_CORR)
move(556,471)
waitms(8 + $S_CORR)
move(557,474)
waitms(32 + $S_CORR)
move(560,481)
waitms(3 + $S_CORR)
move(562,485)
waitms(9 + $S_CORR)
move(562,487)
waitms(9 + $S_CORR)
move(564,491)
waitms(4 + $S_CORR)
move(564,493)
waitms(12 + $S_CORR)
move(566,495)
waitms(4 + $S_CORR)
move(566,498)
waitms(8 + $S_CORR)
move(568,501)
waitms(7 + $S_CORR)
move(569,504)
waitms(9 + $S_CORR)
move(571,508)
waitms(8 + $S_CORR)
move(573,512)
waitms(8 + $S_CORR)
move(576,515)
waitms(8 + $S_CORR)
move(577,518)
waitms(7 + $S_CORR)
move(580,520)
waitms(8 + $S_CORR)
move(582,523)
waitms(9 + $S_CORR)
move(583,525)
waitms(10 + $S_CORR)
move(585,527)
waitms(6 + $S_CORR)
move(587,529)
waitms(7 + $S_CORR)
move(588,531)
waitms(11 + $S_CORR)
move(590,533)
waitms(6 + $S_CORR)
move(594,536)
waitms(7 + $S_CORR)
move(597,538)
waitms(12 + $S_CORR)
move(600,540)
waitms(5 + $S_CORR)
move(604,542)
waitms(8 + $S_CORR)
move(607,543)
waitms(11 + $S_CORR)
move(610,544)
waitms(5 + $S_CORR)
move(612,545)
waitms(7 + $S_CORR)
move(614,546)
waitms(26 + $S_CORR)
move(617,550)
waitms(8 + $S_CORR)
move(618,551)
waitms(6 + $S_CORR)
move(618,552)
waitms(8 + $S_CORR)
move(619,553)
waitms(27 + $S_CORR)
move(622,555)
waitms(2 + $S_CORR)
move(623,557)
waitms(7 + $S_CORR)
move(623,558)
waitms(77 + $S_CORR)
move(623,559)
waitms(15 + $S_CORR)
move(623,560)
waitms(19 + $S_CORR)
move(624,561)
waitms(6 + $S_CORR)
move(624,562)
waitms(423 + $S_CORR)
  lDown(624,562)
waitms(139 + $S_CORR)
  lUp(624,562)
waitms(574 + $S_CORR)
move(625,562)
waitms(7 + $S_CORR)
move(625,564)
waitms(17 + $S_CORR)
move(626,564)
waitms(8 + $S_CORR)
move(627,564)
waitms(9 + $S_CORR)
move(628,566)
waitms(56 + $S_CORR)
move(639,580)
waitms(2 + $S_CORR)
move(641,582)
waitms(5 + $S_CORR)
move(641,583)
waitms(8 + $S_CORR)
move(642,585)
waitms(6 + $S_CORR)
move(643,586)
waitms(8 + $S_CORR)
move(644,588)
waitms(162 + $S_CORR)
move(647,597)
waitms(111 + $S_CORR)
move(647,598)
waitms(165 + $S_CORR)
  lDown(647,598)
waitms(253 + $S_CORR)
  lUp(647,598)
waitms(792 + $S_CORR)
move(648,598)
waitms(3 + $S_CORR)
move(649,598)
waitms(11 + $S_CORR)
move(650,598)
waitms(9 + $S_CORR)
move(651,599)
waitms(59 + $S_CORR)
move(657,601)
waitms(13 + $S_CORR)
move(659,602)
waitms(9 + $S_CORR)
move(661,603)
waitms(11 + $S_CORR)
move(664,604)
waitms(12 + $S_CORR)
move(672,607)
waitms(7 + $S_CORR)
move(677,610)
waitms(10 + $S_CORR)
move(682,613)
waitms(11 + $S_CORR)
move(686,614)
waitms(4 + $S_CORR)
move(689,615)
waitms(12 + $S_CORR)
move(692,616)
waitms(16 + $S_CORR)
move(696,619)
waitms(26 + $S_CORR)
move(699,622)
waitms(2 + $S_CORR)
move(700,622)
waitms(11 + $S_CORR)
move(702,622)
waitms(3 + $S_CORR)
move(704,623)
waitms(10 + $S_CORR)
move(706,624)
waitms(6 + $S_CORR)
move(709,625)
waitms(38 + $S_CORR)
move(723,628)
waitms(48 + $S_CORR)
move(742,633)
waitms(36 + $S_CORR)
move(756,637)
waitms(22 + $S_CORR)
move(762,637)
waitms(1 + $S_CORR)
move(766,638)
waitms(11 + $S_CORR)
move(768,638)
waitms(9 + $S_CORR)
move(771,638)
waitms(6 + $S_CORR)
move(774,638)
waitms(6 + $S_CORR)
move(776,638)
waitms(11 + $S_CORR)
move(779,639)
waitms(15 + $S_CORR)
move(783,640)
waitms(21 + $S_CORR)
move(787,642)
waitms(0 + $S_CORR)
move(790,644)
waitms(13 + $S_CORR)
move(792,644)
waitms(4 + $S_CORR)
move(796,646)
waitms(16 + $S_CORR)
move(802,647)
waitms(7 + $S_CORR)
move(806,648)
waitms(8 + $S_CORR)
move(808,649)
waitms(8 + $S_CORR)
move(811,649)
waitms(8 + $S_CORR)
move(812,650)
waitms(10 + $S_CORR)
move(815,651)
waitms(6 + $S_CORR)
move(816,651)
waitms(8 + $S_CORR)
move(817,652)
waitms(9 + $S_CORR)
move(820,653)
waitms(10 + $S_CORR)
move(822,654)
waitms(8 + $S_CORR)
move(826,655)
waitms(17 + $S_CORR)
move(831,657)
waitms(4 + $S_CORR)
move(833,658)
waitms(9 + $S_CORR)
move(836,658)
waitms(9 + $S_CORR)
move(838,660)
waitms(6 + $S_CORR)
move(840,661)
waitms(9 + $S_CORR)
move(842,662)
waitms(7 + $S_CORR)
move(844,663)
waitms(8 + $S_CORR)
move(846,664)
waitms(8 + $S_CORR)
move(849,666)
waitms(12 + $S_CORR)
move(851,666)
waitms(6 + $S_CORR)
move(855,668)
waitms(9 + $S_CORR)
move(859,670)
waitms(6 + $S_CORR)
move(864,672)
waitms(7 + $S_CORR)
move(869,672)
waitms(9 + $S_CORR)
move(875,674)
waitms(14 + $S_CORR)
move(880,675)
waitms(9 + $S_CORR)
move(884,676)
waitms(2 + $S_CORR)
move(887,677)
waitms(7 + $S_CORR)
move(890,678)
waitms(8 + $S_CORR)
move(891,679)
waitms(59 + $S_CORR)
move(893,681)
waitms(2 + $S_CORR)
move(894,683)
waitms(7 + $S_CORR)
move(895,683)
waitms(11 + $S_CORR)
move(895,684)
waitms(9 + $S_CORR)
move(896,684)
waitms(50 + $S_CORR)
move(897,685)
waitms(14 + $S_CORR)
move(897,687)
waitms(2 + $S_CORR)
move(898,689)
waitms(6 + $S_CORR)
move(899,690)
waitms(8 + $S_CORR)
move(899,691)
waitms(8 + $S_CORR)
move(900,692)
waitms(8 + $S_CORR)
move(901,693)
waitms(7 + $S_CORR)
move(901,694)
waitms(9 + $S_CORR)
move(901,695)
waitms(16 + $S_CORR)
move(902,695)
waitms(32 + $S_CORR)
move(902,696)
waitms(15 + $S_CORR)
move(903,697)
waitms(16 + $S_CORR)
move(903,698)
waitms(360 + $S_CORR)
  lDown(903,698)
waitms(128 + $S_CORR)
  lUp(903,698)
waitms(2376 + $S_CORR)
move(902,695)
waitms(7 + $S_CORR)
move(900,693)
waitms(9 + $S_CORR)
move(895,688)
waitms(44 + $S_CORR)
move(866,666)
waitms(5 + $S_CORR)
move(861,662)
waitms(9 + $S_CORR)
move(854,656)
waitms(6 + $S_CORR)
move(848,652)
waitms(9 + $S_CORR)
move(842,648)
waitms(8 + $S_CORR)
move(836,644)
waitms(49 + $S_CORR)
move(824,634)
waitms(2 + $S_CORR)
move(818,628)
waitms(1 + $S_CORR)
move(813,624)
waitms(2 + $S_CORR)
move(810,620)
waitms(17 + $S_CORR)
move(805,616)
waitms(1 + $S_CORR)
move(800,612)
waitms(7 + $S_CORR)
move(796,609)
waitms(10 + $S_CORR)
move(790,604)
waitms(7 + $S_CORR)
move(786,601)
waitms(7 + $S_CORR)
move(782,599)
waitms(9 + $S_CORR)
move(779,596)
waitms(10 + $S_CORR)
move(775,593)
waitms(8 + $S_CORR)
move(771,590)
waitms(7 + $S_CORR)
move(766,586)
waitms(6 + $S_CORR)
move(761,581)
waitms(8 + $S_CORR)
move(754,575)
waitms(9 + $S_CORR)
move(749,569)
waitms(9 + $S_CORR)
move(741,562)
waitms(12 + $S_CORR)
move(734,555)
waitms(3 + $S_CORR)
move(727,548)
waitms(9 + $S_CORR)
move(719,541)
waitms(7 + $S_CORR)
move(710,533)
waitms(8 + $S_CORR)
move(703,528)
waitms(8 + $S_CORR)
move(694,521)
waitms(15 + $S_CORR)
move(681,509)
waitms(9 + $S_CORR)
move(674,504)
waitms(12 + $S_CORR)
move(668,499)
waitms(3 + $S_CORR)
move(663,496)
waitms(8 + $S_CORR)
move(658,492)
waitms(8 + $S_CORR)
move(653,489)
waitms(9 + $S_CORR)
move(649,486)
waitms(8 + $S_CORR)
move(644,483)
waitms(8 + $S_CORR)
move(639,479)
waitms(7 + $S_CORR)
move(635,477)
waitms(9 + $S_CORR)
move(630,474)
waitms(8 + $S_CORR)
move(626,471)
waitms(10 + $S_CORR)
move(622,468)
waitms(5 + $S_CORR)
move(618,466)
waitms(10 + $S_CORR)
move(615,464)
waitms(5 + $S_CORR)
move(613,463)
waitms(11 + $S_CORR)
move(610,460)
waitms(8 + $S_CORR)
move(607,459)
waitms(6 + $S_CORR)
move(605,457)
waitms(7 + $S_CORR)
move(603,456)
waitms(22 + $S_CORR)
move(598,451)
waitms(3 + $S_CORR)
move(595,450)
waitms(9 + $S_CORR)
move(592,448)
waitms(8 + $S_CORR)
move(590,446)
waitms(7 + $S_CORR)
move(587,444)
waitms(8 + $S_CORR)
move(585,442)
waitms(19 + $S_CORR)
move(582,439)
waitms(14 + $S_CORR)
move(579,437)
waitms(9 + $S_CORR)
move(577,436)
waitms(9 + $S_CORR)
move(577,435)
waitms(11 + $S_CORR)
move(576,434)
waitms(1 + $S_CORR)
move(575,433)
waitms(9 + $S_CORR)
move(574,432)
[/spoiler]
стоп по кадру

 
HALT // Стоп



[/spoiler]
« Last Edit: November 18, 2017, 09:12:07 PM by Magister »

Magister

  • Зашел в гости
  • *
  • Posts: 2
    • View Profile
Re: Скрипт
« Reply #1 on: November 19, 2017, 12:48:18 AM »
можно
[spoiler]Не, ну точно можно, какие могут быть сомненья? Готовых шаблонов ожидание картинки хватит, практически без всяких изменений[/spoiler]
спасибо