Prevent Merchant From Buying
This is an old snippet of code I copied from somewhere on these forums, long ago. (I don't remember where)
I never got around to trying it out until now, but I just tested it out and it works awesome. I simply set the (vendor->GetSTA() == 999) which I set the STA to 999 on the custom merchant NPC. This comes in real handy for a custom vendor that you don't want players selling all their vendor trash to and making it hard for others to shop. A client will still get that infamous message "I will give you xxx plat....", but also get a msg, "I am not interested in that....." So whoever wrote this, Thank YOU !!! In client_packet.cpp Code:
// EDIT NOTE: add the parts inbetween //CUSTOM Will STOP a merchant from buying (with GetSTA value) |
All times are GMT -4. The time now is 10:08 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.