Kuantikum
Member
- Joined
- Jul 3, 2015
- Messages
- 219
- Solutions
- 1
- Reaction score
- 20
Hello guys!
Could someone instruct me if
works with
Here is the a exemple im trying to do:
Can you help me?
Thx!
Could someone instruct me if
Lua:
doCreateItem
Lua:
table.random
Here is the a exemple im trying to do:
Lua:
local dpitem = table.random({24710, 24711, 24712, 24710, 24711, 24712, 24710, 24711, 24712, 19839, 24710, 24711, 24712, 19832, 18945, 19851, 19852, 19833, 19853, 19854, 19829, 19855, 19856, 19830, 19857, 19837, 19858, 19834, 19831, 19859, 19836, 19860, 19835,})
elseif (not doPlayerAddItem(cid, table.random({24710, 24711, 24712, 24710, 24711, 24712, 24710, 24711, 24712, 19839, 24710, 24711, 24712, 19832, 18945, 19851, 19852, 19833, 19853, 19854, 19829, 19855, 19856, 19830, 19857, 19837, 19858, 19834, 19831, 19859, 19836, 19860, 19835,}), math.random(1, 3), false)) then
doPlayerAddDepotItem(cid, 0, doCreateItem(dpitem, math.random(1, 3), getCreaturePosition(cid)))
end
Can you help me?
Thx!