|
发表于 2011-4-5 00:56:36
|
显示全部楼层
原帖由 huanxifooo 于 2011-3-11 09:52 AM 发表
zgbl 师兄,领悟的时候经常在和尚院一部发呆,为什么啊,另外还出现下面的错误:
测试的结果是:
主要是roomname变量没有取到正确的房间名!
这个函数改下
function anti_fadai()
_roomname = GetVariable("roomname")
if _roomname == "达摩院二楼" then
EnableTimer("lingwu_fadai",1)
ResetTimer("lingwu_fadai")
lingwu()
elseif _roomname == "达摩院" then
EnableTriggerGroup("walk_check",0)
EnableTriggerGroup("lingwu",1)
EnableTriggerGroup("lianxi",1)
Execute("u")
elseif _roomname == "练武场" then
EnableTriggerGroup("walk_check",0)
EnableTriggerGroup("lingwu",1)
EnableTriggerGroup("lianxi",1)
Execute("nu;u")
elseif _roomname == "和尚院一部" then
EnableTriggerGroup("walk_check",0)
EnableTriggerGroup("lingwu",1)
EnableTriggerGroup("lianxi",1)
Execute("w;nu;u")
elseif _roomname == "和尚院二部" then
EnableTriggerGroup("walk_check",0)
EnableTriggerGroup("lingwu",1)
EnableTriggerGroup("lianxi",1)
Execute("s;w;nu;u")
else
Execute("look")
end
end |
|