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

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...