Jump to content
  • 0

Script para consumivel


Question

3 answers to this question

Recommended Posts

  • 0
Posted
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;


 

  • 0
Posted
On 11/30/2024 at 1:16 PM, masterzeus said:

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;


 

Entendi. 

Estou usando emulador txt ao invés de yml

Basta colocar esta flag no lugar do scrip, né? 

Vou testar e posto aqui....

  • 0
Posted
On 10/15/2024 at 6: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 ... slope 2

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

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