Page 1 of 1

Grrrr Stupid Vendors

PostPosted: Wed Nov 06, 2002 11:50 am
by Kizozen
setting up market places so all can set a vendor there. how would i do that

PostPosted: Wed Nov 06, 2002 5:22 pm
by Lyl
In playermerchant.src there is a function CanSellAtThisLocation (). This determines if a vendor is allowed to sell at its location. You could write a little check at the beginning of the function that does a "return 2;" if the vendor is within a certain bound.

Or you could use the feature thats already built it for this purpose. CanSellAtThisLocation looks for an objtype 0x7009 near the merchant and allows the merchant to sell if its within 10 spaces. So you could create some 0x7009s and spread them 20 spaces apart in the desired general merchant area. I don't know what an 0x7009 is offhand, you may need to set them invisible and unmovable.

PostPosted: Wed Nov 06, 2002 7:19 pm
by Drocket
What Lyl said. The easiest way to do this is to create a 0x7009 (which is a sign declaring the area a public mall. Its special just for this purpose :) )