|
发表于 2018-2-5 15:18:35
|
显示全部楼层
有两个建议:一种是把这个红色的not去掉,应该就是让master.id得到名字的全称,
for p in pairs(locl.item[score.master]) do
if not string.find(p," ") then
master.id = p
end
end
那一行改为 if string.find(p," ") then
或者因为你的师父不变,有一个简单的办法,就是把师父ID写死,如下增加红色那一行:
function xuexiStart()
EnableTriggerGroup("xuexi",true)
tmp.xuexi=1
if master.id and locl.item and locl.item[score.master] and not locl.item[score.master][master.id] then
master.id = nil
end
if not master.id and locl.item and locl.item[score.master] then
master.id=locl.item[score.master]
for p in pairs(locl.item[score.master]) do
if not string.find(p," ") then
master.id = p
end
end
master.id = “zhang wuji”
end
exe('bai '..master.id)
我只是手动试了一下bai huang yaoshi是可以的,具体的lua文件修改没有测试,供参考。
|
评分
-
1
查看全部评分
-
|