|
楼主 |
发表于 2019-2-18 12:52:10
|
显示全部楼层
晕,我那个帖子说的不够明白?
你先把那个变量和函数放在shujian.lua中,这一步可以先做,我把我最新的函数发出来
go_on_smy=0 --20161117增加变量go_on_smy开关控制 防止系统重启后自动打开颂摩崖
ebooktimes=0
lostletter_locate=""
ll={}
ll.area=''
ll.room=''
antiFlood="" --Check Flood
drugBuy ={
["川贝内息丸"] = {"dali/yaopu","zhiye/yaodian1"},
复制代码
上面变量就放那儿,就antiFlood="" --Check Flood这一行啊,别的不用复制,也别动它
function dzxy_finish()
EnableTimer('mr_dzxy_timer',false)
DeleteTimer("mr_dzxy_timer")
messageShow('任务监控:慕容斗转星移完成!')
exe('jump down')
EnableTriggerGroup("dzxy",false)
DeleteTriggerGroup("dzxy")
exe('cha;hp')
weapon_unwield()
local leweapon=GetVariable("learnweapon")
exe('unwield '..leweapon)
exe('jump down')
return go(xueshan_finish_ask,'大雪山','入幽口')
end
--Anti Flood
function AntiFloodTimer()
print('Anti Flood Sucessful! antiFlood='..antiFlood)
if antiFlood=="" then
return
elseif antiFlood=="wudang" then
check_bei(wudangStart())
elseif antiFlood=="wudang_fangqi" then
check_bei(wudangFangqiAsk())
elseif antiFlood=="huashan" then
check_bei(job_huashan())
elseif antiFlood=="huashan_yls" then
check_bei(huashan_yls())
elseif antiFlood=="songxin" then
check_bei(job_songxin())
elseif antiFlood=="songxin_fangqi" then
check_bei(songxin_fangqi_ask())
elseif antiFlood=="lingwu" then
check_busy(lingwuzb)
elseif antiFlood=="dujiang"then
--locl.room='长江岸边'
check_busy(duCjiang_start())
elseif antiFlood=="duhe"then
--locl.room='渡口'
check_bei(duHhe_start())
elseif antiFlood=="huashan_ybq" then
check_bei(exe('give ling pai to yue buqun'))
elseif antiFlood=="songxin_ok" then
EnableTrigger("songxin_find1",true)
exe('l')
elseif antiFlood=="songxin.dazuo" then
check_bei(sxgodazuo())
end
end
复制代码
为了说明位置,函数我复制了两个,你只要复制最后一个函数function AntiFloodTimer(),把它完整复制下来,放在shujian.lua文件最后就可以 |
|