一步步来,首先先备份好你自己的 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 |