Code: Select all
case Text:
GetCXStr(pWnd->WindowText,DataTypeTemp,MAX_STRING);
Dest.Ptr=&DataTypeTemp[0];
Dest.Type=pStringType;
return true;
+ case NewText:
+ strcpy(pWnd->WindowText->Text,Index);
+ GetCXStr(pWnd->WindowText,DataTypeTemp,MAX_STRING);
+ Dest.Ptr=&DataTypeTemp[0];
+ Dest.Type=pStringType;
+ return true;
case Tooltip:
GetCXStr(pWnd->Tooltip,DataTypeTemp,MAX_STRING);
Dest.Ptr=&DataTypeTemp[0];
Dest.Type=pStringType;
return true;
As for the macro.. I ran it once to see what changed. I noticed that it doesn't take my own initial prices into account when averaging. i.e. if you have 3 items priced at 5000, 4500, and 1800 where my price is the 5000, it will set the new price to 1799. Personally, I would make sure that my price was added into the figuring, and set the price at slightly less than 4500 instead of 1799.
Also, I think you need to weight the number of a specific item for sale. For example, I had over 400 small pieces of acrylia for sale at 55p. Two other people had about 150 each for sale at 58 and 56p. There were a group of people with 1-10 pieces for sale at prices ranging from 20-50p. It set my price to 39p. I really don't care about the people with 1-10 pieces for sale, just the ones with large quantities.
Finally, I had a case where it marked an item to 0. I had 400 bone chips for sale at 2p. Prices ranged anywhere from 5gp to 5p, with the majority of traders with smaller quantities at 1p. Myself and another with larger stocks were at 2p. It marked mine at 0p... the lower price-1p.
Actually, just the piece that marks the stuff for sale that's under vendor price would be awesome. Have it go through the bazaar and let me know of any stupid deals. :-)


