Author Topic: Complex Commmand  (Read 824 times)

0 Members and 1 Guest are viewing this topic.

LoveLillie

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: LoveLillie
Complex Commmand
« on: December 16, 2016, 03:54:10 AM »
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

Code: [Select]
@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]