function RandomInt(n)
math.randomseed(tostring(os.time()):reverse():sub(1,7))
return math.random(1,n)
end
以下就是秒杀辅助A版本多地图挂机脚本执行范本,玩家可以根据自己的服参照修改脚本:
function 地图1()
游戏菜单(2)
等待(1500)
选择("@244")
等待(1500)
选择("@247")
等待(1500)
移动到范围2("3",325,326,5)
等待(1500)
坐标对话(325,326)
等待(1500)
选择("@1")
等待(1500)
end
function 地图2()
游戏菜单(2)
等待(1500)
选择("@244")
等待(1500)
选择("@247")
等待(1500)
移动到范围2("3",329,326,5)
等待(1500)
坐标对话(329,326)
等待(1500)
选择("@1")
等待(1500)
end
function 地图3()
游戏菜单(2)
等待(1500)
选择("@244")
等待(1500)
选择("@247")
等待(1500)
移动到范围2("3",333,326,5)
等待(1500)
坐标对话(333,326)
等待(1500)
选择("@1")
等待(1500)
end
function 地图4()
游戏菜单(2)
等待(1500)
选择("@244")
等待(1500)
选择("@247")
等待(1500)
移动到范围2("3",337,326,5)
等待(1500)
坐标对话(337,326)
等待(1500)
选择("@1")
等待(1500)
end
function 回城()
--随机出发
local n=RandomInt(3)
if n==1 then
地图1()
elseif n==2 then
地图2()
elseif n==3 then
地图3()
else
地图4()
end
return 挂机()
end
function 挂机()
清空挂机路线()
开始挂机()
end
do
local mapid=获取地图id()
if mapid=="3" then
回城()
else
挂机()
end
end