soul4soul
Intermediate OT User
i use this code right now
if there any way to simplify it? would something like this work
Code:
eq = math.random(1,6)
if eq == 1 then
doPlayerAddItem(cid, 9927, 1)
elseif eq == 2 then
doPlayerAddItem(cid, 9929, 1)
elseif eq == 3 then
doPlayerAddItem(cid, 9928, 1)
elseif eq == 4 then
doPlayerAddItem(cid, 9931, 1)
elseif eq == 5 then
doPlayerAddItem(cid, 2527, 1)
elseif eq == 6 then
doPlayerAddItem(cid, 7697, 1)
end
if there any way to simplify it? would something like this work
Code:
doPlayerAddItem(cid, math.random({9927,9929,9928,9931,2527,7697}), 1)