EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Feature Requests (https://www.eqemulator.org/forums/forumdisplay.php?f=612)
-   -   A vendor that ONLY sells? (https://www.eqemulator.org/forums/showthread.php?t=40397)

N0ctrnl 02-12-2016 08:41 PM

A vendor that ONLY sells?
 
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/...aaf4aa38856abf

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


All times are GMT -4. The time now is 10:13 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.