12.02.2018, 22:13
I am noob in Scripting.
Can someone help with this?
Any suggestions? Should i create a table with items and get it random ?
Like this:
(I know it is wrong)
giveItem(killerid, Items.id(table_giveitems[random][0]), 1);
table_giveitems <- [
["ITMI_GOLD"],
["ITFO_APPLE"],
["ITFO_MILK"],
["ITFO_BEER"]
]
Can someone help with this?
Any suggestions? Should i create a table with items and get it random ?
Like this:
(I know it is wrong)
giveItem(killerid, Items.id(table_giveitems[random][0]), 1);
table_giveitems <- [
["ITMI_GOLD"],
["ITFO_APPLE"],
["ITFO_MILK"],
["ITFO_BEER"]
]