33 lines
840 B
Lua
33 lines
840 B
Lua
|
|
|
|
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}},
|
|
};--{羲宎華芞瘍,賦旰華芞瘍},{呴儂桵須華芞1,呴儂桵須華芞2...呴儂桵須華芞n}
|
|
end
|
|
|
|
function data()
|
|
end
|