各位大佬好,萌新想请教一下,
我在CE里面如何才能自动重复运行LUA脚本?
我发现CE加载后就只运行一次脚本就停下了,
我想写的是监视数量的脚本,需要不断重复运行,
我单纯地用WHILE循环,会卡死,
中间加了SLEEP函数也还是没有帮助。
就是想同时监视17个数值,数值一旦变成0就要马上改成1500
不知道要怎么处理才能不会卡死,用GOTO都是无济于事。
这是代码:
if(memoryrecord_getValue(bot1address) == "0")then
memoryrecord_setValue(bot1address,1500)
else
end
if(memoryrecord_getValue(bot2address) == "0")then
memoryrecord_setValue(bot2address,1500)
else
end
if(memoryrecord_getValue(bot3address) == "0")then
memoryrecord_setValue(bot3address,1500)
else
end
if(memoryrecord_getValue(bot4address) == "0")then
memoryrecord_setValue(bot4address,1500)
else
end
if(memoryrecord_getValue(bot5address) == "0")then
memoryrecord_setValue(bot5address,1500)
else
end
if(memoryrecord_getValue(bot6address) == "0")then
memoryrecord_setValue(bot6address,1500)
else
end
if(memoryrecord_getValue(bot7address) == "0")then
memoryrecord_setValue(bot7address,1500)
else
end
if(memoryrecord_getValue(bot8address) == "0")then
memoryrecord_setValue(bot8address,1500)
else
end
if(memoryrecord_getValue(bot9address) == "0")then
memoryrecord_setValue(bot9address,1500)
else
end
if(memoryrecord_getValue(bot10address) == "0")then
memoryrecord_setValue(bot10address,1500)
else
end
if(memoryrecord_getValue(bot11address) == "0")then
memoryrecord_setValue(bot11address,1500)
else
end
if(memoryrecord_getValue(bot12address) == "0")then
memoryrecord_setValue(bot12address,1500)
else
end
if(memoryrecord_getValue(bot13address) == "0")then
memoryrecord_setValue(bot13address,1500)
else
end
if(memoryrecord_getValue(bot14address) == "0")then
memoryrecord_setValue(bot14address,1500)
else
end
if(memoryrecord_getValue(bot14address) == "0")then
memoryrecord_setValue(bot14address,1500)
else
end
if(memoryrecord_getValue(bot15address) == "0")then
memoryrecord_setValue(bot15address,1500)
else
end
if(memoryrecord_getValue(bot16address) == "0")then
memoryrecord_setValue(bot16address,1500)
else
end
if(memoryrecord_getValue(bot17address) == "0")then
memoryrecord_setValue(bot17address,1500)
else
end
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!