Jump to content

Question

Posted

How can i do when player is make store near to another send him warning message  "You are not allowed to open store near to another player" and to dont let him sit ?

 

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

As a inspiration

for (L2PcInstance player : activeChar.getKnownList().getKnownTypeInRadius(L2PcInstance.class, 400)
{
    if (player.isInStore())
        return;
}
Edited by SweeTs
  • 0
Posted (edited)

You need check all existing stores in defined radius before starting store.

 

Oh, SweeTs. You shared my code from the customer section.  :happyforever:

Edited by Rootware
  • 0
Posted

You need check all existing stores in defined radius before starting store.

 

Oh, SweeTs. You shared my code from the customer section.  :happyforever:

 

And he edit it before i see full code...

 

//On Topic... if somebody can help please :)

  • 0
Posted (edited)

Oh, SweeTs. You shared my code from the customer section.  :happyforever:

Tk's actually, also.. It's the way :D I keep some (small) codes in advance :)

 

And he edit it before i see full code...

I didn't. It's all you need :)

Edited by SweeTs

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock