[心得] MUSHclient 捕捉每一次大江戶更新內容
要有效率地換東西,必須先取得正確的物品等級表,不過人無法整天坐
在電腦前等更新,這段觸發可以幫你抓下每次的更新內容,再貼到MUSHclient
內建的記事本視窗去,有空再整理這個內容,提高物品等級表的完工速度。
===============================================================================
<triggers>
<trigger
group="gintama"
lines_to_match="2"
match="\=+\n你擁有的物.."
multi_line="y"
name="g_end"
regexp="y"
send_to="12"
sequence="100"
>
<send>
--終止行數,抓取內容直到本行為止
ginlist_end = GetLineInfo(GetLinesInBufferCount(),10)
--設定記事本視窗的字型,用等寬字型比較整齊
NotepadFont ("大江戶", "細明體", 12, 0, 0)
--紅字為將抓取內容的總行數
--綠字為抓取內容的函數
--黃字則是替換換行符號
--抓完先存到List。
local List =
string.gsub(GetRecentLines(ginlist_end-ginlist_start+1),"\\n","\\r\\n")
--將List的內容貼到記事本視窗 -大江戶- 去。
--綠字補上時間。
--前後加上換行。
AppendToNotepad("大江戶", "\\r\\n","\\r\\n",os.date (),"\\r\\n" ,List, "\\r\\n")
--關閉負責抓取的兩個觸發。
SetTriggerOption ("g_start", "Enabled", 0)
SetTriggerOption ("g_end", "Enabled", 0)
</send>
</trigger>
<trigger
enabled="y"
group="gintama"
lines_to_match="2"
match="【系統】大江戶交換網全新..幕!recall home street n到底!"
multi_line="y"
regexp="y"
send_to="12"
sequence="100"
>
<send>
--監控用,以開啟另外兩個觸發。
SetTriggerOption ("g_start", "Enabled", 1)
SetTriggerOption ("g_end", "Enabled", 1)
</send>
</trigger>
<trigger
group="gintama"
lines_to_match="2"
match="大江戶交換網訊息..覽\:\n\=+$"
multi_line="y"
name="g_start"
regexp="y"
send_to="12"
sequence="100"
>
<send>
--起始行數。從本行開始以下為抓取的內容
ginlist_start = GetLineInfo(GetLinesInBufferCount(),10)
</send>
</trigger>
</triggers>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.133.159.178
→
02/16 10:13, , 1F
02/16 10:13, 1F
→
02/16 10:17, , 2F
02/16 10:17, 2F
→
02/16 10:21, , 3F
02/16 10:21, 3F
→
02/16 10:22, , 4F
02/16 10:22, 4F
→
02/16 10:22, , 5F
02/16 10:22, 5F
推
02/16 10:48, , 6F
02/16 10:48, 6F
推
02/16 11:21, , 7F
02/16 11:21, 7F
→
02/16 12:39, , 8F
02/16 12:39, 8F
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章
-3
15
113
119