Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How can i call use item


or3o
 Share

Recommended Posts

without calling it by inv number? like what if i wanna call it by its lst index number? basically is i say senduseitem(50) it uses the 50th item in the inventory slot, but i would like to make it so it uses item number 50 instead :/ thanks for the help
Link to comment
Share on other sites

I suppose this way would be the easiest implementation of adjusting the recipe system.. Wouldn't it be better to have a list of what the user has learnt server-side though, and calling the recipes from there? e.g. the user's Recipe #1 is Recipe 50, So Player(Index).Recipe(1) would be 50, which can be called with Recipe(Player(Index).Recipe(1)), and there you have your recipe system encapsulated in a new system? Allowing players to send a USE command when they don't own the item could cause potenional security exploits.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...