Jump to content

Question

Posted

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 

3 answers to this question

Recommended Posts

  • 0
Posted

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.

 

  • 0
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
  • 0
Posted (edited)

É 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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...