Valleyguy wrote:Thanks for the fix Rock it is a huge thing allot of ppl filter by start and end of item names it might be something to just include in the next svn update for all to use.
I never committed this change because it could potentially cause people to loose items and I didn't want to be responsible for that.
For example imagine someone had some expensive items in their inventory like a "Potential V" and some "Hero Potion"s. And lets say they have "... , Potential , Hero Potion , ..." as part of INV_AUTOSELL_IGNORE.
Currently, because the spaces near the commas are ignored a match will occur so the expensive items wont be sold. But, if I change it, when they upgrade, the search terms will no longer match so they will be sold. This could potentially cost the user a lot of money.
It would be nice if we could implement some sort of warning system. This is how I envision it working. When you start a new version of the bot for the first time with an important message, it displays an detailed explanation of what you need to do or what you need to know. Then there needs to be some way to acknowledge that you have read the message. Maybe a variable in the profile or in userfunctions.lua? And at the end of the message it would say something like "To acknowledge this message add this line to userfunctions.lua" or " add this option variable to your profile". Then when you next start the bot it detects the variable so doesn't display the message. If we need to send a message in a future version we just need to change the value of the variable to the new value to acknowledge the new message.
Anyway that's something I've been thinking about. I don't know how practical it is though.