Grrrr Stupid Vendors

For questions relating to POL scripting (not necessarily related to WoD)

Moderators: Siobhan, Sebastian, Drocket

Grrrr Stupid Vendors

Postby Kizozen on Wed Nov 06, 2002 11:50 am

setting up market places so all can set a vendor there. how would i do that
Kizozen
Jr. Newbie
 
Posts: 1
Joined: Fri Nov 01, 2002 12:47 pm

Postby Lyl on Wed Nov 06, 2002 5:22 pm

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.
Lyl
Regular Poster
 
Posts: 109
Joined: Fri Oct 11, 2002 1:04 am

Postby Drocket on Wed Nov 06, 2002 7:19 pm

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 :) )
Drocket
Site Admin
 
Posts: 820
Joined: Mon Oct 07, 2002 2:54 am


Return to Scripting Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron