Jump to content

Como criar uma zona com proibição de item


Kelvin

Recommended Posts

  • L2JBr ADM

Caminho: gameserver/data/zone

Vamos pegar uma zona como exemplo:

   <zone name="[queen_ant_epic]" type="epic" >
        <polygon>
            <coords loc="-23176 185080 -6000 -5500" />
            <coords loc="-20104 185080 -6000 -5500" />
            <coords loc="-20104 177928 -6000 -5500" />
            <coords loc="-23176 177928 -6000 -5500" />
        </polygon>
    </zone>

Vamos adicionar o parâmetro zoneProhibitedItemIds:

  <zone name="[queen_ant_epic]" type="epic" >
        <set name="zoneProhibitedItemIds" val="7575;6379" />
        <polygon>
            <coords loc="-23176 185080 -6000 -5500" />
            <coords loc="-20104 185080 -6000 -5500" />
            <coords loc="-20104 177928 -6000 -5500" />
            <coords loc="-23176 177928 -6000 -5500" />
        </polygon>
    </zone>

O ID presente dentro ode val="" é dos itens que você deseja proibir, no exemplo é um draconic bow e um peito draconic.

Se o player estiver coim ele o item será desequipado e o player não poderá equipar até sair de lá.

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
Reply to this topic...

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

Loading...



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.