Re: [分享] MO 網頁多人線上RPG
看板Little-Games (小遊戲)作者Workforme (誠徵女友QQ)時間11年前 (2013/09/17 14:47)推噓57(57推 0噓 71→)留言128則, 14人參與討論串112/142 (看更多)
本來想用推文 但是大概會推很多行
直接用發文的好了 ˊ3ˋ 抱歉我懶
好用判斷條件
Ifcolor then
else
end if
這個一定要會用
一般來說 掛機打怪 要有
1.判斷驗證碼是否出現?
2.你是不是在你要的點?
3.是不是有人打斷你的循環?
4.運氣很衰 怪還沒死就點了下個怪
1很簡單 在點下個怪之前 寫個判斷式 判斷驗證碼那個視窗有沒有跳出來
有的話開始放音樂提醒、停止腳本
沒的話就繼續點下個怪(我都直接點怪的 省得多被打一下)
2.3其實是同一件事 因為有人打你想要的怪 你就不會站在原本該在的點
然後位置就會跑掉 要怎麼改善?
就在你的循環中間到處加入幾個判斷式 找附近地標判斷你是不是在點上
不要用怪當地標 萬一怪被打掉 程式就會提醒了
我是用"礦"當地標
角色A點 判斷礦是不是在OOO,XXX的位置
是的話繼續點怪 不是的話放音樂提醒、停止腳本
我在繞宙斯(18隻)的地方 放了三個判斷 就算被人亂了
也可以在30秒內就停住
4改用怪的血條當作判斷條件
血條還在 就不動 血條沒了就點下個怪
這樣應該就可以避掉很多問題了
其他一些小細節 自己想一下怎麼判斷 應該永遠不會進水牢了
還有什麼細節可以提出來大家一起討論 應該可以有更好的寫法
--
◢- "◣ 歲月飛逝,當年你拼命搶救的笑點
▌#救 ▌ ═ ≡ ═ 如今都這麼大了...
▌ 援 ▌ ▼▼▼▼ ╯
▌ 鄉'▌ ξ ▲▲▲▲ ◢ ◣
◢▃ 民 ▃◣ ║ σ◥ >◣ ‧ _ ‧
◢ vv v v v ◣ ●● ▏ㄑㄑ ◥ ◤
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 1.171.24.22
推
09/17 15:38, , 1F
09/17 15:38, 1F
→
09/17 15:38, , 2F
09/17 15:38, 2F
→
09/17 15:39, , 3F
09/17 15:39, 3F
推
09/17 15:49, , 4F
09/17 15:49, 4F
推
09/17 16:32, , 5F
09/17 16:32, 5F
→
09/17 16:32, , 6F
09/17 16:32, 6F
→
09/17 16:33, , 7F
09/17 16:33, 7F
→
09/17 16:37, , 8F
09/17 16:37, 8F
推
09/17 17:15, , 9F
09/17 17:15, 9F
→
09/17 17:16, , 10F
09/17 17:16, 10F
→
09/17 17:19, , 11F
09/17 17:19, 11F
推
09/17 17:40, , 12F
09/17 17:40, 12F
→
09/17 18:16, , 13F
09/17 18:16, 13F
→
09/17 18:16, , 14F
09/17 18:16, 14F
推
09/17 18:53, , 15F
09/17 18:53, 15F
→
09/17 19:16, , 16F
09/17 19:16, 16F
→
09/17 19:18, , 17F
09/17 19:18, 17F
→
09/17 19:18, , 18F
09/17 19:18, 18F
推
09/17 19:32, , 19F
09/17 19:32, 19F
→
09/17 19:49, , 20F
09/17 19:49, 20F
推
09/17 19:59, , 21F
09/17 19:59, 21F
→
09/17 20:00, , 22F
09/17 20:00, 22F
→
09/17 20:01, , 23F
09/17 20:01, 23F
推
09/17 20:04, , 24F
09/17 20:04, 24F
→
09/17 20:07, , 25F
09/17 20:07, 25F
→
09/17 20:08, , 26F
09/17 20:08, 26F
→
09/17 20:08, , 27F
09/17 20:08, 27F
推
09/18 01:24, , 28F
09/18 01:24, 28F
推
09/18 09:07, , 29F
09/18 09:07, 29F
推
09/18 09:10, , 30F
09/18 09:10, 30F
→
09/18 09:11, , 31F
09/18 09:11, 31F
→
09/18 11:50, , 32F
09/18 11:50, 32F
→
09/18 11:50, , 33F
09/18 11:50, 33F
推
09/18 11:52, , 34F
09/18 11:52, 34F
推
09/18 11:52, , 35F
09/18 11:52, 35F
→
09/18 11:52, , 36F
09/18 11:52, 36F
→
09/18 11:53, , 37F
09/18 11:53, 37F
推
09/18 11:58, , 38F
09/18 11:58, 38F
→
09/18 11:58, , 39F
09/18 11:58, 39F
還有 50 則推文
還有 6 段內文
推
09/20 14:44, , 90F
09/20 14:44, 90F
推
09/20 15:06, , 91F
09/20 15:06, 91F
→
09/20 15:07, , 92F
09/20 15:07, 92F
→
09/20 15:56, , 93F
09/20 15:56, 93F
推
09/20 16:08, , 94F
09/20 16:08, 94F
→
09/20 16:09, , 95F
09/20 16:09, 95F
→
09/20 16:14, , 96F
09/20 16:14, 96F
→
09/20 16:15, , 97F
09/20 16:15, 97F
→
09/20 16:16, , 98F
09/20 16:16, 98F
→
09/20 16:17, , 99F
09/20 16:17, 99F
推
09/20 16:33, , 100F
09/20 16:33, 100F
推
09/20 16:35, , 101F
09/20 16:35, 101F
→
09/20 17:05, , 102F
09/20 17:05, 102F
→
09/20 18:22, , 103F
09/20 18:22, 103F
推
09/20 19:07, , 104F
09/20 19:07, 104F
→
09/20 19:40, , 105F
09/20 19:40, 105F
推
09/21 00:57, , 106F
09/21 00:57, 106F
→
09/21 02:16, , 107F
09/21 02:16, 107F
推
09/21 12:16, , 108F
09/21 12:16, 108F
推
09/21 15:50, , 109F
09/21 15:50, 109F
推
09/21 16:06, , 110F
09/21 16:06, 110F
推
09/21 16:33, , 111F
09/21 16:33, 111F
→
09/21 16:37, , 112F
09/21 16:37, 112F
推
09/21 17:23, , 113F
09/21 17:23, 113F
推
09/21 22:08, , 114F
09/21 22:08, 114F
推
09/22 00:03, , 115F
09/22 00:03, 115F
→
09/22 00:04, , 116F
09/22 00:04, 116F
推
09/22 01:45, , 117F
09/22 01:45, 117F
→
09/22 08:05, , 118F
09/22 08:05, 118F
→
09/22 09:40, , 119F
09/22 09:40, 119F
推
09/22 10:31, , 120F
09/22 10:31, 120F
推
09/22 10:38, , 121F
09/22 10:38, 121F
推
09/22 10:45, , 122F
09/22 10:45, 122F
→
09/22 13:52, , 123F
09/22 13:52, 123F
推
09/25 11:50, , 124F
09/25 11:50, 124F
推
09/25 16:41, , 125F
09/25 16:41, 125F
自動放魔法
IfColor 142,126,"2bc750",0 Then <-判斷怪血條上某點是否是有血的顏色A
KeyPress "1", 1 如果是 按鍵盤1,2,3,4 各一次
KeyPress "2", 1
KeyPress "3", 1
KeyPress "4", 1
Else 如果不是
IfColor 142,126,"2ac750",0 Then <-判斷怪血條上某點是否是有血的顏色B
KeyPress "1", 1 如果是 按鍵盤1,2,3,4 各一次
KeyPress "2", 1
KeyPress "3", 1
KeyPress "4", 1
Else 如果不是 怪血量條短於特定部份
我就不放魔法了
End If END IF 要記得寫
End If 2個IF 配2個END IF
Delay 910 發呆 不然一直判定電腦會lag
伺服器也會一直接到1234 可能會出問題
※ 編輯: Workforme 來自: 1.171.4.1 (09/27 10:53)
推
09/29 17:18, , 126F
09/29 17:18, 126F
→
09/29 17:18, , 127F
09/29 17:18, 127F
推
09/29 18:17, , 128F
09/29 18:17, 128F
討論串 (同標題文章)
Little-Games 近期熱門文章
PTT遊戲區 即時熱門文章