[心得] MushClient - 练技能

楼主: pssjim (Mud Gamer)   2014-01-14 08:04:01
请复制两段======中间的代码
Alias部份
==============================================================================
<aliases>
<alias
match="^pr1\s(\S+)$"
enabled="y"
expand_variables="y"
group="practice"
regexp="y"
send_to="12"
keep_evaluating="y"
sequence="100"
>
<send>practice_skill = "%1"
enable_skill = "%1"
require "wait"
wait.make(function()
Execute("tg+ practice;practice XXX 5000;skills ".."%1".."")
wait.time(1.5)
Execute("tig+ practice;t- skill_list")
end)</send>
</alias>
</aliases>
==============================================================================
Timers部分
==============================================================================
<timers>
<timer second="1.50" offset_second="0.00" send_to="12"
group="practice" >
<send>Execute("title 6;h2;practice "..enable_skill.." "..GetVariable
("times_practice").."")</send>
</timer>
</timers>
==============================================================================
Triggers部份
==============================================================================
<triggers>
<trigger
expand_variables="y"
group="practice"
keep_evaluating="y"
match="\s\((.+)\)\s+\-\s+(\d+)\/\s+(\w+)\%$"
name="skill_list"
regexp="y"
send_to="12"
sequence="10"
>
<send>table.insert(table_practice,"%1")</send>
</trigger>
<trigger
expand_variables="y"
group="practice"
keep_evaluating="y"
match="^[&gt; ]*\S+,无法简单的通过练习进步。$"
regexp="y"
send_to="12"
sequence="100"
>
<send>practice_num = practice_num + 1
if tonumber(practice_num) &lt; tonumber(table.getn(table_practice)) then
Execute("enable "..enable_skill.." "..table_practice[practice_num].."")
else Execute("stop")
end
作者: tawi (0.0)   2014-01-14 10:24:00
这篇和上一篇Zmud的 我都把它丢到京华区里囉,希望大家踊跃发文,充实这个版啊
作者: szany (大头仔)   2014-01-14 12:37:00
就是这种写法让我也不敢靠近 mushclient 啊 XDD 看了就眼花
作者: hakman (^____^)   2014-01-14 12:49:00
大大好强 Orz
作者: kiee0621 (C'est la vie!)   2014-01-15 08:24:00
推~这也太难了!

Links booklink

Contact Us: admin [ a t ] ucptt.com