Log in

View Full Version : A vendor that ONLY sells?


N0ctrnl
02-12-2016, 08:41 PM
As the title says, how hard would it be to make a vendor that won't buy any of your junk, and only sells his own? Alternatively, a vendor that just didn't display anything he didn't have unlimited quantities of would accomplish the same thing for my purpose.

What I'm shooting for is making a portal stone vendor that won't fill up with every random bit of junk that people sell him. Sorting by quantity is one way to get around the clutter, but it'd be much slicker if it just didn't have anything listed except his items.

Thoughts?

Thanks!

joligario
02-12-2016, 09:50 PM
I thought there was an rule/variable for merchants to not keep temp/bought items

N0ctrnl
02-13-2016, 02:32 PM
Kayen came through on this one :)

https://github.com/N0ctrnl/VAServer/commit/cae9cb1630d316e770771dd348aaf4aa38856abf

What this code does is allow you to key off a value from the NPC. I chose STA and a value of 789. So when a set a vendor to have 789 STA, he will not buy anything at all from players:

http://www.vegarlson-server.org/images/vendor-nobuy.jpg