|
我是从今年一月重玩书剑,对于mush,完全是从未接触过,一路走来,得到过师兄们的不少帮助。最初也是跟着论坛的贴子改,
一改就出错,错了就又还原,然后又改,慢慢的也懂一些了。我抽时间把别人发的贴子整理一下,方便对mush基本不太会用的新手
师弟们,今天先发岛主的南疆沙漠补丁:
1.打开MUSH里的lua文件夹,再打开rooms.lua
把以下的内容复制过去直接替换:
Room {
id = "yili/yili1",
name = "南城门",
outdoor = "伊犁城",
ways = {
["#yilicheckwds"] = "yili/yilihe",
["#yilicheckwd"] = "yili/yili2",
},
nolooks = {
--["north"] = true,
["#yilicheckwd"] = true,
},
lengths = {
--["north"] = "if MidNight[locl.time] then return false else return 1 end",
["#yilicheckwd"] = 2,
},
}
Room {
id = "xingxiu/silk8",
name = "吐谷浑伏俟城",
outdoor = "星宿海",
ways = {
["#eaeac"] = "xingxiu/silk9",
["#eaead"] = "xingxiu/silk10",
["#eaeab"] = "xingxiu/bank",
["#eaea"] = "xingxiu/silk7",
--["east"] = "xingxiu/silk7",
},
--lengths = {
--["#eaea"] = 10,
--},
--nolooks = {
--["#eaea"] = true,
--},
}
2.打开lujing.lua
在底部加上如下内容:
------------------------------------吐谷浑伏俟城-----------------
eaea=function()
locate_finish=0
fastLocate()
return check_bei(eaea_start,0.5)
end
eaea_start=function()
if string.find(locl.room,'吐谷浑伏俟城') then
exe('east')
return eaea_over()
else
return go(road.act)
end
end
eaea_over=function()
return walk_wait()
end
eaeab=function()
locate_finish=0
fastLocate()
return check_bei(eaea_startb,0.5)
end
eaea_startb=function()
if string.find(locl.room,'吐谷浑伏俟城') then
exe('west')
return eaea_overb()
else
return go(road.act)
end
end
eaea_overb=function()
return walk_wait()
end
eaeac=function()
locate_finish=0
fastLocate()
return check_bei(eaea_startc,0.5)
end
eaea_startc=function()
if string.find(locl.room,'吐谷浑伏俟城') then
exe('northwest')
return eaea_overc()
else
return go(road.act)
end
end
eaea_overc=function()
return walk_wait()
end
eaead=function()
locate_finish=0
fastLocate()
return check_bei(eaea_startd,0.5)
end
eaea_startd=function()
if string.find(locl.room,'吐谷浑伏俟城') then
exe('north')
return eaea_overd()
else
return go(road.act)
end
end
eaea_overd=function()
return walk_wait()
end
----------------------------------伊犁城门------------------------------------
check_yilitriger=function()
DeleteTriggerGroup("yilidoorr")
--create_trigger_t('yilidoorr1','^>*\\s*要看什么','','yilidoor_close')
--create_trigger_t('yilidoorr2','^>*\\s*城中心','','yilidoor_open')
--create_trigger_t('yilidoorr3',"^(> )*(你分开双手,黑气慢慢沉下|你将内息走满一个周天,只感到全身通泰|你感到自己和天地融为一体,全身清爽如浴春风,忍不住舒畅的呻吟了一声,缓缓睁开了眼睛)",'','yilicheckwd')
--SetTriggerOption("yilidoorr1","group","yilidoorr")
--SetTriggerOption("yilidoorr2","group","yilidoorr")
SetTriggerOption("yilidoorr3","group","yilidoorr")
EnableTriggerGroup("yilidoorr",false)
end
yilicheckwd=function()
--check_yilitriger()
--EnableTriggerGroup("yilidoorr",true)
--exe('look north')
fastLocate()
if flag.find==1 then return end
wait.make(function()
wait.time(0.5)
return yilidoor_checkk()
end)
end
yilidoor_close=function()
exe('lianfc;yun jingli;yun qi;dazuo '..hp.dazuo)
end
yilidoor_open=function()
wdyilidz=0
end
yilidoor_checkk=function()
if locl.room_relation=='南城门|伊犁河南城门' then
wait.make(function()
wait.time(1)
return yilicheckwd()
end)
elseif locl.room_relation=='城中心|南城门|伊犁河南城门' then
--EnableTriggerGroup("yilidoorr",false)
return check_halt(yilidoor_over)
else
return go_locate()
end
end
yilidoor_over=function()
exe('n')
if flag.find==1 then return end
return walk_wait()
end
yilicheckwds=function()
fastLocate()
if flag.find==1 then return end
wait.make(function()
wait.time(0.5)
return yilidoor_checkks()
end)
end
yilidoor_checkks=function()
if locl.room=='南城门' then
return check_halt(yilidoor_overs)
else
return go_locate()
end
end
yilidoor_overs=function()
exe('s')
if flag.find==1 then return end
return walk_wait()
end
提示:当初我也是跟着改,出错了,岛主里面有一些函数是自己用的,如果你添加进去了,就会报错。 |
评分
-
1
查看全部评分
-
|