然後啊~很多人都會跟我要關於依露娜的腳本...
我不是很懂為什麼會有人有這類的想法!
我給你腳本,然後開始接受你那無止境地問東問西...
與其聽你在那邊無意義的問,倒不如來這篇教學文學寫腳本~
這個帖裡的相關代碼大部分我都是用在編寫依露娜戰紀的!
要學不學你自己決定~至於跟我要嘛...
這個腳本不是啥神聖的玩意...自從被人知道我有依露娜的掛機腳本!
我就很常聽到(可以給我你的腳本嗎?/出個價吧!/與其學倒不如跟你買...)
總之呢...這腳本就如上述,並不神聖...被問了那麼久了!我就乾脆公開好了...
有興趣的自己來複製回去改吧~對於改哪不是很懂的我竟量教!
function log(txt)
date = os.date("%m/%d/%Y-%H:%M:%S");
file = io.open("/mnt/sdcard/Touchelper/cooler.txt","a");
file:write(date.."
"..txt.."
");
file:write("
");
file:close();
end--對應記錄日誌
function main()-- 主入口
y1=os.time()
while true do
y2=os.time()
mSleep(100);
if y2-y1>=10*60 then
y1=os.time()
mSleep(2000);
touchDown(0, 46, 19);
mSleep(108);
touchUp(0);
mSleep(4000);
else
g = getColor(444, 21);--確認介面
p = getColor(99, 473);--確認占卜
u = getColor(222, 738);--確認背包
c = getColor(461, 410);--確認血量
j = getColor(461, 525);--確認魔量
if g ~= 0x5a413a then--介面異常
mSleep(1000);
log("介面異常")--紀錄介面異常
mSleep(60000);
else
if p == 0xceaa7b then--關閉占卜
mSleep(1000);
touchDown(0, 120, 359);--點擊關閉
mSleep(100);
touchUp(0);
else
if u == 0x291c21 then--背包已滿
mSleep(1000);
touchDown(0, 138, 136);
mSleep(100);
touchUp(0);
--丟棄物品
mSleep(3000);
touchDown(0, 457, 47);
mSleep(100);
touchUp(0);
mSleep(500);
touchDown(0, 347, 68);
mSleep(100);
touchUp(0);
mSleep(500);
touchDown(0, 396, 392);
mSleep(100);
touchUp(0);
mSleep(500);
touchDown(0, 337, 237);
mSleep(100);
touchUp(0);
mSleep(500);
touchDown(0, 230, 586);
mSleep(100);
touchUp(0);
mSleep(500);
touchDown(0, 186, 302);
mSleep(100);
touchUp(0);
mSleep(500);
touchDown(0, 189, 303);
mSleep(100);
touchUp(0);
mSleep(500);
touchDown(0, 456, 41);
mSleep(100);
touchUp(0);
--丟棄物品
else
if c ~= 0xad2000 then--回血
mSleep(200);
touchDown(0, 377, 751);--點擊右02
mSleep(100);
touchUp(0);
else
if j ~= 0x0869ad then--回魔
mSleep(200);
touchDown(0, 375, 655);--點擊右01
mSleep(100);
touchUp(0);
else
--以下攻擊
if j == 0x0869ad and c == 0xad2000 then
mSleep(500);
touchDown(0, 235, 650);--點擊右05
mSleep(100);
touchUp(0);
--以上攻擊
end--對應循環
end--對應時間
end--對應攻擊
end--對應魔量
end--對應血量
end--對應背包
end--對應占卜
end--對應介面
end--對應腳本
這腳本我不知道為啥只寫到一半~總之沒再玩了!對於腳本的更近也沒有興趣了...
腳本基本上就是
1.自動掛機(包含吃補) 2.被包滿格後丟棄放置於第一個的道具 3.紀錄關於斷線的訊息
喜歡自便,爛腳本寫了6個月~只因家人一句(電費變高了)果斷不玩依露娜XD |