Jump to content
  • 0

Restrição


filipe martins

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  03/21/17
  • Last Seen:  

Boa noite, peço desculpas se abri no lugar errado, porém gostaria de saber como faço para restringir que o player não possa jogar um item em especifico do chao 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  212
  • Reputation:   94
  • Joined:  06/02/12
  • Last Seen:  

Hi. Add this in \db\import\item_db.yml

  - Id: 512
    Trade:
      NoDrop: true

In this example, Apple (ID 512) cannot be dropped.
Change the ID to your item's.

PTBR:

Spoiler

Boa noite, tem a seção Portuguese Support > Suporte Geral.
Coloque isso em \db\import\item_db.yml

  - Id: 512
    Trade:
      NoDrop: true

Nesse exemplo, Maça (ID 512) não vai poder ser dropada no chão.
Mude para a ID do seu item.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  03/21/17
  • Last Seen:  

Posted (edited)

Sim, mas eu preciso que o player não possa jogar o item fora pela janela dos itens, o item que eu vou dar, não pode ser vendido, nem dropado e nem jogado fora, as outras restrições consegui fazer, porém o player ainda consegue jogar o item fora pela janela dos itens 

Edited by filipe martins
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  638
  • Reputation:   95
  • Joined:  05/11/12
  • Last Seen:  

É só se dar ao trabalho de LER um pouquinho assim de nada, o cabeçalho do item_db:

 

#   Trade:                  Trade restrictions. (Default: null)
#     Override              Group level to override these conditions. (Default: 100)
#     NoDrop                If the item can not be dropped. (Default: false)
#     NoTrade               If the item can not be traded. (Default: false)
#     TradePartner          If the item can not be traded to the player's partner. (Default: false)
#     NoSell                If the item can not be sold. (Default: false)
#     NoCart                If the item can not be put in a cart. (Default: false)
#     NoStorage             If the item can not be put in a storage. (Default: false)
#     NoGuildStorage        If the item can not be put in a guild storage. (Default: false)
#     NoMail                If the item can not be put in a mail. (Default: false)
#     NoAuction             If the item can not be put in an auction. (Default: false)


 

Edited by Kakaroto
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.

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