or3o Posted September 1, 2012 Author Share Posted September 1, 2012 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 More sharing options...
Joyce Posted September 1, 2012 Share Posted September 1, 2012 Why would you want to activate an item the user doesn't have anyway? Link to comment Share on other sites More sharing options...
or3o Posted September 1, 2012 Author Share Posted September 1, 2012 crafting, i wanna use a recipe from a menu that pops up when ya walk onto a crafting tile, is this a stupid way!? Link to comment Share on other sites More sharing options...
tslusny Posted September 1, 2012 Share Posted September 1, 2012 call Senduseitem(Item(50).Num)i think this will work Link to comment Share on other sites More sharing options...
or3o Posted September 1, 2012 Author Share Posted September 1, 2012 highlights .num method or data member not found Link to comment Share on other sites More sharing options...
Joyce Posted September 1, 2012 Share Posted September 1, 2012 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 More sharing options...
Link Posted September 1, 2012 Share Posted September 1, 2012 Edit:Nvm, Joyce posted a bit before me. Link to comment Share on other sites More sharing options...
or3o Posted September 1, 2012 Author Share Posted September 1, 2012 once agian thank you sooo very much Joyce!i guess im still not smart enough to figure this out :/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now