Jump to content
  • 0

Shop Restriction


kostaspk

Question

Recommended Posts

  • 0

thanks for you guide wolf! +1 and i want to do it coz all low rate server has many private traders and crafters..

Then why dont you create some some custom area into the zones.xml   give the X Y Z square 

like you see in this image below

 

257locm.jpg

 

(note the red area is restricted for private stores)

and for name of your custom area just put NO_PRIVATE_STORE (is already inside pack as area that not allowed private stores and return message)

it is much easer than block generaly all private stores in giran..

 

 

Ps. There is a variable inside L2PcInstance.java and a line called

         setPrivateStoreType(L2PcInstance.STORE_PRIVATE_SELL + 1);

 

This mean that everytime a player do a private sell the variable update its sell to ++

 

you can put a code inside SetPrivateSellStore.java that check if this variable is more than X and IF and if is bigger than 100 to return a message

"you can't sell something right now, there are already many sellers" or something like that.. i just gave you ideas

Edited by WolfGiaS3na
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...