Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Give random item for Player
#1
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"]
]
Reply


Messages In This Thread
Give random item for Player - by liegav - 12.02.2018, 22:13
RE: Give random item for Player - by Patrix - 12.02.2018, 23:20
RE: Give random item for Player - by liegav - 13.02.2018, 06:43
RE: Give random item for Player - by Patrix - 13.02.2018, 10:17
RE: Give random item for Player - by Patrix - 14.02.2018, 18:30

Possibly Related Threads…
Thread Author Replies Views Last Post
  Give- / Removeitems on Focus ItschiAtschiUtschi 3 2,421 10.06.2020, 16:04
Last Post: Patrix
  how do I Kill a player on the client side? demor140202 4 3,662 24.02.2020, 12:32
Last Post: Patrix
  Random spawn players demor140202 5 4,201 10.02.2020, 07:37
Last Post: Quarchodron
  Short question about Gold, how to give it ? Mattwell 2 3,427 26.01.2018, 00:12
Last Post: Mattwell
  Dev 8 item synchronisation HammelGammel 0 2,007 21.01.2017, 11:04
Last Post: HammelGammel
  Default world Item Xardas0327 1 2,155 21.03.2016, 13:51
Last Post: Bimbol
  Random Number Osmith 5 4,586 20.02.2016, 14:21
Last Post: Blacha

Forum Jump:


Users browsing this thread: 1 Guest(s)