yesAny update on problems when the code?
the waves are configurableQuestion since i never seen system like this. How it works? Is there like any limits how many waves you can survive or it goes until everyone dies? And what happens if you survive first wave does it spawn a some kind of boss and everyone need to kill it, or first wave ends then second wave goes and it can reach like x999999 waves and thats it? and how you determine the amount of monsters it spawns each round does it increase each round or it always stays same?
local MONSTER_WAVES = {
[1] = {exp = 20000, waitTimeBoss = 60,
monsters = {
{"Cyclops", Position(1000, 1000, 7)},
{"Cyclops", Position(1000, 1000, 7)},
{"Cyclops", Position(1000, 1000, 7)},
{"Cyclops Drone", Position(1000, 1000, 7)},
{"Cyclops Drone", Position(1000, 1000, 7)}
},
boss = { -- Boss is spawned after waitTimeBoss seconds after the wave is stated --
{"Cyclops Smith", Position(1000, 1000, 7)}
}
itemRewards = { -- Items rewarded for completing the wave. --
{2152, 50},
{2160, 1}
},
outfitReward = {male = 260, female = 261, addons = 0, name = "Citizen"}, -- outfit rewards for completing the wave --
mountReward = {126, "Horse"}
} -- You can delete any of the values to remove it from the wave. exp, itemreward, boss, outfitreward, mountreward (DO NOT DELETE THE monsters TABLE) --
-- [2]
}
O so basically that [1] = sdfgsdfsdf is a first wave and you can create [2] = which is second wave?the waves are configurable
Lua:local MONSTER_WAVES = { [1] = {exp = 20000, waitTimeBoss = 60, monsters = { {"Cyclops", Position(1000, 1000, 7)}, {"Cyclops", Position(1000, 1000, 7)}, {"Cyclops", Position(1000, 1000, 7)}, {"Cyclops Drone", Position(1000, 1000, 7)}, {"Cyclops Drone", Position(1000, 1000, 7)} }, boss = { -- Boss is spawned after waitTimeBoss seconds after the wave is stated -- {"Cyclops Smith", Position(1000, 1000, 7)} } itemRewards = { -- Items rewarded for completing the wave. -- {2152, 50}, {2160, 1} }, outfitReward = {male = 260, female = 261, addons = 0, name = "Citizen"}, -- outfit rewards for completing the wave -- mountReward = {126, "Horse"} } -- You can delete any of the values to remove it from the wave. exp, itemreward, boss, outfitreward, mountreward (DO NOT DELETE THE monsters TABLE) -- -- [2] }
yeaO so basically that [1] = sdfgsdfsdf is a first wave and you can create [2] = which is second wave?
post your lib, mine is with several errors
Using the one from the first post, haven't tested it again since the changes but I had errors to.post your lib, mine is with several errors