|
function aaaaa()
wait.make (function ()
SetVariable("a_con","0")
SetVariable("b_con","0")
local a_con = tonumber(GetVariable ("a_con"))
local b_con = tonumber(GetVariable ("b_con"))
Send("say 做某某某\r\nset brief 1")
wait.time (1)
Send("xxxxxx")
wait.time (1)
for i=1,15 do
Send("xxxxxxxxxxxxxxxxxxx")
wait.time (5)
if a_con == 1 and b_con == 1 then
break
end
end
if a_con == 1 and b_con == 1 then
isxxxxok()
end
Send("xxxxxxxxxxx")
wait.time (1)
xxxxxx()
end)
end
function isxxxxok()
wait.make (function ()
Send("xxxxxxxxxx")
wait.time (1)
Send("xxxxxxxxxx")
wait.time (5)
Send("xxxxxxxxxx")
wait.time (1)
end)
end
-----------------------------这样也不行--------------------
function aaaaa()
wait.make (function ()
SetVariable("a_con","0")
SetVariable("b_con","0")
local a_con = tonumber(GetVariable ("a_con"))
local b_con = tonumber(GetVariable ("b_con"))
Send("say 做某某某\r\nset brief 1")
wait.time (1)
Send("xxxxxx")
wait.time (1)
for i=1,15 do
Send("xxxxxxxxxxxxxxxxxxx")
wait.time (5)
if a_con == 1 and b_con == 1 then
break
end
end
if if a_con == 1 and b_con == 1 then
wait.make (function ()
Send("xxxxxxxxxx")
wait.time (1)
Send("xxxxxxxxxx")
wait.time (5)
Send("xxxxxxxxxx")
wait.time (1)
end
Send("xxxxxxxxxxx")
wait.time (1)
xxxxxx()
end)
end
这两个都是1
SetVariable("a_con","0")
SetVariable("b_con","0")
[ 本帖最后由 tesaa 于 2010-3-31 09:49 PM 编辑 ] |
|