Hi, I have huge issues when it comes to stocking and setting prices in my shop. So I thought I would make a script request as I suck at scripting and all my efforts so far have failed.
How it will work:
Toggle on/off
Clicking the nameid on IH retrieves the #.
Being able to set the price and bin of the selected item
Outputs : PRICE <i#> <price> BIN <bin>
Comments
for k,v in ipairs(Stockprices[type]) do
if v.name == name then
send("price "..id.." "..v.price.." bin "..v.bin)
end--if
end--for
Hrm that'd make it harder to add to the thing I thought up and I'm not really good enough to work with loading/saving tables yet, so I work mostly hardcode. But this will auto set prices on everything that's defined in a table (check the script) and in a specific room (based on the room id which you can get off gmcp)
GMCP documentation: https://github.com/keneanung/GMCPAdditions
svof github site: https://github.com/svof/svof and documentation at https://svof.github.io/svof