Please let me know if you find any problems. Thanks again Hiro!
There are lots of changes, but the main things I wanted to change were having the vendor name determined by the object name, and to have a way to turn off listening to reduce lag. Some mall owners are very touchy about vendors that cause script lag.
Changes are as follows.
1. Modified a number of command names to make them shorter and easier to remember
- GetHiroVendorName -> getname
- updateitems -> update
- listitems -> list
- clearsales -> clear
- setprice ->price
2. Vendor name is now determined by object name
- the name is the characters of the object name up to a space
- for example, if the object name is "soft pillow (mirage)", the vendor name will be "soft"
3. All listening vendors can be commanded using the name 'all'
- for example, "all:update"
4. All new vendors can be commanded using the name 'new'
- for example, "new:update"
- vendors are considered new until update is called
5. If the owner touches the vendor, listening mode will be toggled
- default is listening
- message will display "Listening to commands" or "Deaf to commands"
- when a vendor is deaf it will not respond to commands and will not cause script lag
6. Added command: deaf
- turns off listening
- for example, "all:deaf"
7. Added command: touch
- causes the vendor to act like it was touched by someone who isn't the owner
- can be used to test the vendor since owner touch has new meaning
8. Added command: sumsales
- displays the total number of sales and the total number of lindens made from recent sales (does not list individual sales)
9. Added an optional parameter to update for setting the price
- if a price is added to the end of update, it will update the contents and set the price if there is only one item
- for example: "soft:update:50"
- this acts the same as "soft:update" followed by "soft
