Jump to content
  • 0

Script para consumivel


DejongsBR

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.04
  • Content Count:  8
  • Reputation:   0
  • Joined:  09/09/24
  • Last Seen:  

Ola pessoal, sou novato em emulador rathena... Alguem me ensina como manter o consumivel sempre 1 unidade ? Nao tenho iddeia de como realizar este script ...

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   1
  • Joined:  08/18/13
  • Last Seen:  

On 10/15/2024 at 1:45 AM, DejongsBR said:

Ola pessoal, sou novato em emulador rathena... Alguem me ensina como manter o consumivel sempre 1 unidade ? Nao tenho iddeia de como realizar este script ...

Ola, você pode configurar uma "Flag" chamada "NoConsume" para evitar que o item usado seja consumido.

Isso é configurado em "master/db/pre-re/item_db_usable.yml" - "master/db/re/item_db_usable.yml"
Aqui está um exemplo:

  - Id: 501
    AegisName: Red_Potion
    Name: Red Potion
    Type: Healing
    Buy: 50
    Weight: 70
    Script: |
      itemheal rand(45,65),0;

To:

  - Id: 501
    AegisName: Red_Potion
    Name: Red Potion
    Type: Healing
    Buy: 50
    Weight: 70
    Flags:
      NoConsume: true
    Script: |
      itemheal rand(45,65),0;


 

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