Hey guys, I'm attempting to create a "Inventory" system with my bot. I'm having trouble with a "!use" command. In concept, the bot will take the command and use the target (an item in an inventory) to search a text file to see if it is in the file. If it is, it will be replaced with a "blank". If not, then it will return a message saying that user doesn't have that item. So far I've got
@if@[@readfile@[C:\DeepBot\custom logs\Inventories\@user@.txt]||@target@||@replace@[C:\DeepBot\custom logs\Inventories\@user@.txt|@target@|]||Sorry @user@, you don't seem to be carrying that in your bag.]
Anyone know if this is possible, or if there are any errors in the code? Thanks so much![/size]