一步步来,首先先备份好你自己的 shujian.lua ,免的改出错了也可以再换回来。安全第一。再打开 shujian.lua
1、搜索找到 function sLetterlost(),在这下面再建一条触发。
create_trigger_t('lostletter8',"^(> )*这是一封大理国镇南王府送出的书信。",'','lostp_look')
SetTriggerOption("lostletter8","group","lostletter")
2、再新建函数
function lostp_look()
DeleteTriggerGroup("lostplace")
create_trigger_t('lostplace1',"^(> )*好象收信人曾在(\\D*)一带出现。",'','lostp_get')
SetTriggerOption("lostplace1","group","lostplace")
EnableTriggerGroup("lostplace",true)
end
3、再建一个
function lostp_get(n,l,w)
ll_place = w[2]
if string.find(ll_place,'神龙岛') then
ll_place = '黄河入海口'
elseif string.find(ll_place,'长江南岸') or string.find(ll_place,'姑苏慕容') or string.find(ll_place,'燕子坞') or string.find(ll_place,'曼佗罗山庄') then
ll_place = '扬州城长江北岸'
end
end
4、再建一个
function lost_goto()
if ll_place~=nil then
return goto(ll_place)
end
end
5、找到 function sendOk() ,在这下面加上
ll_place=nil
DeleteTriggerGroup("lostplace")
6、找到 function setAlias(),在这下面加一句
create_alias_s('llgo','llgo','lost_goto')
以上都弄好后,在吃过 vpearl 的前提下,在当铺完成 mark 后,输入 llgo ,就会跑去对方所在位置了。对方位置变化了,也可以随时再 llgo |