更新下更方便些
#ALIAS hubiao {#untr -*;give cai wu to zhang;ask zhang about finish;ask zhang about fail;ask zhang about 押镖;l letter;#var getbiaonum 5;listesc};#FUNC getbiaonum {0};
#TRIGGER {^(%d)%s*{长安飞马镖局|华山别院|扬州醉仙楼|洛阳四海钱庄|全真天尊讲经堂|武当三清殿|华山村铁匠铺|少林佛心井|曲阜孔府}*秒 待认领 0} {#KEY F@getbiaonum {getesc %1};#echo ---------->>> F@getbiaonum <<<----------;#add getbiaonum 1} {getbiao} 519 太强悍了,感谢楼主{:7_277:} 想问下前辈,如何把你的宏改成别的按键呢??
我从F1到F9,小键盘的0到9外加* / + -我都做成宏了 没弄懂#FUNC那个函数啥作用
红烧肉要改宏键就把#KEY后面的F去掉,就是用1-9接镖了。能不能接了镖就取消刚设置的宏键呢 没弄懂#FUNC那个函数啥作用
红烧肉要改宏键就把#KEY后面的F去掉,就是用1-9接镖了。能不能接了镖就取消刚设 ...
lkyun 发表于 2012-4-12 01:23 AM http://pkuxkx.com/forum/images/common/back.gif
八科前辈,这个1-9是小键盘吧。如何变成大键盘的1到9呢??? 本帖最后由 begin 于 2012-4-12 11:21 PM 编辑
----------------------------------------------------------------------------------------------------
--护镖任务------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------
hubiao_quest_list={}
hubiao_quest_count=0
hubiao_quest_region=""
hubiao_quest_fellow=""
hubiao_quest_position=""
function Hubiao_Quest_Begin()
hubiao_quest_list={}
hubiao_quest_count=0
EnableTrigger("hubiao_quest_list",true)
EnableTrigger("hubiao_quest_end",true)
end
function Hubiao_Quest_List(n,l,w)
hubiao_quest_count=hubiao_quest_count+1
hubiao_quest_list={}
hubiao_quest_list["id"]=w
hubiao_quest_list["target"]=w
hubiao_quest_list["time"]=w
hubiao_quest_list["status"]=w
hubiao_quest_list["player"]=w
if string.find(w,"嘉兴")~=nil then
hubiao_quest_list["value"]=0
elseif string.find(w,"泉州")~=nil then
hubiao_quest_list["value"]=1
elseif string.find(w,"岳王墓")~=nil then
hubiao_quest_list["value"]=2
elseif string.find(w,"苏州")~=nil then
hubiao_quest_list["value"]=3
elseif string.find(w,"杭州")~=nil then
hubiao_quest_list["value"]=4
elseif string.find(w,"南昌")~=nil then
hubiao_quest_list["value"]=5
elseif string.find(w,"牙山")~=nil then
hubiao_quest_list["value"]=6
elseif string.find(w,"归云庄")~=nil then
hubiao_quest_list["value"]=7
elseif string.find(w,"镇江")~=nil then
hubiao_quest_list["value"]=8
end
end
function Hubiao_Quest_End()
EnableTrigger("hubiao_quest_list",false)
EnableTrigger("hubiao_quest_end",false)
local id=""
local value=-1
for i in pairs(hubiao_quest_list)
do
if (hubiao_quest_list["status"]=="待认领") then
if (hubiao_quest_list["value"]>value) then
value=hubiao_quest_list["value"]
id=hubiao_quest_list["id"]
end
end
end
if (id=="") then
print("没有可用的任务!")
else
SendNoEcho("getesc "..id)
EnableTrigger("hubiao_quest_detail",true)
end
end
function Hubiao_Quest_Print()
print("========================================")
print("区域:"..hubiao_quest_region)
print("人名:"..hubiao_quest_fellow)
print("位置:"..hubiao_quest_position)
print("========================================")
end
function Hubiao_Quest_Detail(n,l,w)
hubiao_quest_region=w
hubiao_quest_fellow=w
hubiao_quest_position=w
DeleteAlias("hh")
AddAlias("hubiao_quest_print", "hh", "", alias_flag.Enabled, "Hubiao_Quest_Print")
end
add_trigger("hubiao_quest_begin","^\\>*\\s*任务序号\\s+任务目的地\\s+任务发布时间\\s+任务状态\\s+认领玩家","hubiao","Hubiao_Quest_Begin")
add_trigger("hubiao_quest_end","^\\>*\\s*使用命令【getesc\\s+任务序号】来认领押镖任务。","hubiao","Hubiao_Quest_End")
add_trigger("hubiao_quest_list","^\\>*\\s*(\\d+)\\s*(.*)\\s*(\\d+)秒\\s*(.*)\\s+(.*)$","hubiao","Hubiao_Quest_List")
add_trigger("hubiao_quest_detail","^\\>*\\s*柳亦风把这批红货送到(.*)那里,他已经派了个伙计名叫(.*)到(.*)附近接你,把镖车送到他那里就行了。$","hubiao","Hubiao_Quest_Detail")
EnableTrigger("hubiao_quest_list",false)
EnableTrigger("hubiao_quest_end",false)
mush版本的领取任务的模块,根据某大大部分代码进行了修改(林震南部分)
领取任务的时候,输入listesc,会根据设定的优先级自动进行任务领取(这里优先级的策略是远的地方优先)
在护镖的过程中随时输入hh,可以查询当前镖的有关情况。 我觉得用宏键不是很方便,不如直接设置成别名,例如g1,g2这样,简单方便
页:
1
[2]