vexler222
Active Member
- Joined
- Apr 22, 2012
- Messages
- 714
- Solutions
- 15
- Reaction score
- 46
Hi, i have problem with boss drop, i try make math.random two items in boss, but when i add it like that
But it only works once per creaturescripts reload, when I reload the script randomizes one number and it drops all the time until the next reload
Code:
local item = math.random(1,5)
local cc = math.random(1,50)
local config = {
["Boss"] = {
loot = {{12686,100,item},{2160,100,cc},{12688,33,1},{10224,20,1}},
message = "You got reward to your backpack",
BagId = 9774,
level = 1
},
But it only works once per creaturescripts reload, when I reload the script randomizes one number and it drops all the time until the next reload