|
| 13 Sep 2015 05:05 PM |
Should I make a bunch of values(inventory slots), Bool values(ifuserhasitem) or tables
http://www.roblox.com/--item?id=296639692http://www.roblox.com/--item?id=296639743http://www.roblox.com/--item?id=296639806 |
|
|
| Report Abuse |
|
|
DataDJ
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 854 |
|
|
| 13 Sep 2015 05:08 PM |
Iv wanted to make a youtube video on this. Its really simple on how to do. You have 1 local script in your player thats ur inventory, You have a module script in replicated storage that has a list of items. and theres 3 functions inside that module script. GetItem,AddItem,RemoveItem and the AddItem,RemoveItem functions add/remove the item into your inventory then returns the whole entire table.
-Dev |
|
|
| Report Abuse |
|
|
| |
|
DataDJ
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 854 |
|
|
| 13 Sep 2015 05:10 PM |
I have 0 Scripter tutorials on there, i was suggesting that i wanted to. But i have not done so yet.
-Dev |
|
|
| Report Abuse |
|
|
| |
|
|
| 13 Sep 2015 05:13 PM |
If you can make a tutorial I would be happy. For now I got to do research on module scripts.
http://www.roblox.com/--item?id=296639692http://www.roblox.com/--item?id=296639743http://www.roblox.com/--item?id=296639806 |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 13 Sep 2015 05:20 PM |
DataDJ is dumb don't listen to him.
Handling the inventory on the client is the stupidest thing ever. That's just asking exploiters to come and rekt everything because they can since they have access to editing the inventory.
Muad'Dib |
|
|
| Report Abuse |
|
|
DataDJ
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 854 |
|
|
| 13 Sep 2015 10:15 PM |
Chim, So not true. Just because a script is on local does not mean they have access to everything.
-Dev |
|
|
| Report Abuse |
|
|
|
| 13 Sep 2015 10:18 PM |
i have a dictionary of inventories in a main script like
local plrInventories = {}
plrInventories[Plr.Name] = {} plrInventories[Plr.Name]['Ooga booga monster'] = (object)
and then use remotefunction for the client to get the inventory, remove from inventory, etc
fetty juap R$53,220 Tx476,715 |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 13 Sep 2015 10:21 PM |
DataDJ, if it is on the client they can get it. Exploiters have access to everything on their client. Local scripts only run on a client, take the hint.
Muad'Dib |
|
|
| Report Abuse |
|
|
DataDJ
|
  |
| Joined: 16 Mar 2008 |
| Total Posts: 854 |
|
|
| 13 Sep 2015 10:51 PM |
Chim, That is true they do have access to it. But no exploiters known on roblox have yet taken a table and edited the table within a script.
-Dev |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 13 Sep 2015 10:55 PM |
uh, yeah they have, @dj it's not really that complicated, it's simply editing values. there is no value you can't edit. it's fine to have a mock table for the client to quickly reference without networking, but for adding items and changing specific values and doing elaborate/precious tasks, you should probably make requests to the server for security purposes.
-=Robo=- |
|
|
| Report Abuse |
|
|