請問這腳本怎麼不可以使用
-- 脚本描述
DESCRIPTION="1";
-- 适用屏幕参数
SCREEN_RESOLUTION="1080x1920";
SCREEN_COLOR_BITS=4;
function appa()--攻擊副程式
touchDown(0, 682, 1814);
mSleep(184);
touchUp(0);
mSleep(200);
touchDown(0, 678, 1805);
mSleep(145);
touchUp(0);
mSleep(200);
touchDown(0, 691, 1794);
mSleep(105);
touchUp(0);
mSleep(200);
touchDown(0, 691, 1794);
mSleep(105);
touchUp(0);
end--結束攻擊副程式
function appb()--補魔副程式
touchDown(0, 871, 1795); -- 那麼點擊該坐標
mSleep(135);
touchUp(0);
mSleep(135);
touchDown(0, 871, 1795);
mSleep(135);
touchUp(0);
mSleep(1500);
touchDown(0, 871, 1795);
mSleep(135);
touchUp(0);
mSleep(135);
touchDown(0, 871, 1795);
mSleep(135);
touchUp(0);
end--結束補魔副程式
function appc()--補血副程式
touchDown(0, 444, 353);
mSleep(140);
touchUp(0);
mSleep(140);
touchDown(0, 444, 353);
mSleep(140);
touchUp(0);
end--結束補血副程式
function main()--主入口
y1=os.time()
while true do
y2=os.time()
mSleep(100);
if y2-y1>=1*60 then
y1=os.time()
b = getColor(1043, 950); -- 補血
c = getColor(1043, 1294); --
補魔
if b ~= 0xba3d1f
then
appc()--調用appc補血副程式
else--否則
if c ~= 0x1f7eb2
then -- 如果該點顏色不為魔
appb()--調用appb補魔副程式
else--否則
if b == 0xba3d1f and c == 0x1f7eb2
then
mSleep(500);
appa()--調用appa攻擊副程式
end--這裡是while true do
的end
end--這裡if y2-y1>=1*60 then的end
end--主入口的end
-- 脚本描述
DESCRIPTION="1";
-- 适用屏幕参数
SCREEN_RESOLUTION="1080x1920";
SCREEN_COLOR_BITS=4;
function appa()--攻擊副程式
touchDown(0, 682, 1814);
mSleep(184);
touchUp(0);
mSleep(200);
touchDown(0, 678, 1805);
mSleep(145);
touchUp(0);
mSleep(200);
touchDown(0, 691, 1794);
mSleep(105);
touchUp(0);
mSleep(200);
touchDown(0, 691, 1794);
mSleep(105);
touchUp(0);
end--結束攻擊副程式
function appb()--補魔副程式
touchDown(0, 871, 1795); -- 那麼點擊該坐標
mSleep(135);
touchUp(0);
mSleep(135);
touchDown(0, 871, 1795);
mSleep(135);
touchUp(0);
mSleep(1500);
touchDown(0, 871, 1795);
mSleep(135);
touchUp(0);
mSleep(135);
touchDown(0, 871, 1795);
mSleep(135);
touchUp(0);
end--結束補魔副程式
function appc()--補血副程式
touchDown(0, 444, 353);
mSleep(140);
touchUp(0);
mSleep(140);
touchDown(0, 444, 353);
mSleep(140);
touchUp(0);
end--結束補血副程式
function main()--主入口
y1=os.time()
while true do
y2=os.time()
mSleep(100);
if y2-y1>=1*60 then
y1=os.time()
b = getColor(1043, 950); -- 補血
c = getColor(1043, 1294); --
補魔
if b ~= 0xba3d1f
then
appc()--調用appc補血副程式
else--否則
if c ~= 0x1f7eb2
then -- 如果該點顏色不為魔
appb()--調用appb補魔副程式
else--否則
if b == 0xba3d1f and c == 0x1f7eb2
then
mSleep(500);
appa()--調用appa攻擊副程式
end--這裡是while true do
的end
end--這裡if y2-y1>=1*60 then的end
end--主入口的end
|