stoneage8.5/客户端lua文件/map/battlemap.lua

33 lines
840 B
Lua
Raw Normal View History

2020-06-23 15:27:59 +08:00
function FreeGetBattleMap(floor)
math.randomseed(os.time());
local ret=0;
for i=1,table.getn(BattleMapList) do
if floor >= BattleMapList[i][1][1] and floor <= BattleMapList[i][1][2] then
local index = math.mod(math.random(9999,999999),table.getn(BattleMapList[i][2]));
if index == 0 then
index = table.getn(BattleMapList[i][2]);
end
ret = BattleMapList[i][2][index];
break;
end
end
return ret;
end
function main()
BattleMapList = {
{{60403,60403},{59301}},
{{33001,33020},{59314}},
{{33021,33040},{59315}},
{{33041,33060},{59316}},
{{33060,33080},{59317}},
{{33081,33101},{59318}},
{{35001,35016},{59300}},
};--{<7B><>ʼ<EFBFBD><CABC>ͼ<EFBFBD><CDBC>,<2C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC>},{<7B><><EFBFBD><EFBFBD>ս<EFBFBD><D5BD><EFBFBD><EFBFBD>ͼ1,<2C><><EFBFBD><EFBFBD>ս<EFBFBD><D5BD><EFBFBD><EFBFBD>ͼ2...<2E><><EFBFBD><EFBFBD>ս<EFBFBD><D5BD><EFBFBD><EFBFBD>ͼn}
end
function data()
end