|
发表于 2019-4-5 22:14:47
|
显示全部楼层
function wayMl()
local ways = {
["north"] = "east",
["east"] = "south",
["south"] = "west",
["west"] = "north",
}
local wayt = {
["north"] = "west",
["east"] = "north",
["south"] = "east",
["west"] = "south",
}
if not tmp.way or not ways[tmp.way]then
tmp.way = 'south'
end
if locl.room=="青石板大路" then
if tmp.ml and tmp.ml=="in" then
return wayMlOver()
else
tmp.way = "north"
exe(tmp.way)
locate()
return checkWait(wayMl,0.1)
end
end
if locl.room=="小路" then
if tmp.ml and tmp.ml=="out" then
return wayMlOver()
else
tmp.way = "south"
exe('south;south')
locate()
return checkWait(wayMl,0.1)
end
end
if locl.room~="小路" and locl.room~="青石板大路" and locl.room~="梅林" then
return wayMlOver()
end
tmp.way = ways[tmp.way]
while not locl.exit[tmp.way] do
Note(tmp.way)
tmp.way = wayt[tmp.way]
end
exe(tmp.way)
locate()
return checkWait(wayMl,0.2)
end
你是说的这个么? |
|