function Mining() { var xTileInd, yTileInd, findMsg, stopWeight = 1100,; var mineMsg = "You loosen some rocks|You put the|ore in your pack|ores in your pack|You broke the pickaxe|incorrectly entered a code|entered a true code"; var stopMsg = "There is nothing|Цель слишком далеко|Try mining in rock|That is too far away|There is no metal here to mine|Вы слишком далеко|Try mining |Try mining elsewhere"; for (xTileInd = -2; xTileInd <= 2; xTileInd ++) { for (yTileInd = -2; yTileInd <= 2; yTileInd ++) { do { if (Player.Weight() >= stopWeight) { Orion.Print("Перевес!"); return; } Orion.WaitTargetTileRelative("mine", xTileInd, yTileInd, Player.Z()); Orion.UseType("0x0E86"); findMsg = Orion.WaitJournal(mineMsg + "|" + stopMsg, Orion.Now(), Orion.Now() + 6000); Orion.Wait(100); } while ((findMsg == null || !Orion.Contains(findMsg.Text(), stopMsg)) && !Player.Dead()); } } Orion.Print("Выполнил Mining!"); }
вот этот скрипт даже не пашет пишет линия 3 еррор
|