Jump to content
  • 0

help me with an equipment script please


girino

Question


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  02/24/25
  • Last Seen:  

Hello everyone, I'm Brazilian, so please excuse my English.

I need some help creating a piece of equipment that exists in Ragnarok BRO. I'm not sure if it exists on other servers, but the item is called Curativo YSF01.

I'm having trouble scripting the part of the item that says:

"Increases movement speed.
When performing physical attacks with [LK_BERSERK] active:
20% chance to activate an [effect] for 5 seconds.

Effect:
ATK +1,000."

My main problem is figuring out how to check if the user who has this item equipped currently has LK_BERSERK active.

Any help would be greatly appreciated.
Thanks in advance!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  18
  • Reputation:   3
  • Joined:  02/03/24
  • Last Seen:  

Fiz isso enquanto estava no ônibus voltando dl serviço, veja se funciona e caso de erros poste aqui pra ver se consigo ajudar.

 

- Id: 400001
  AegisName: YSF01_Bandage
  Name: Curativo YSF01
  Type: Armor
  SubType: Lower
  Buy: 20
  Weight: 10
  Defense: 0
  Slots: 1
  Jobs:
    All: true
  Locations:
    LowerHeadgear: true
  Bonuses:
    SpeedRate: 25
  Script: |
    bonus bSpeedRate, 25;
    if (getstatus(SC_BERSERK) && rand(100) < 20) {
        sc_start SC_ATK_INC, 5000, 1000;
    }

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  02/24/25
  • Last Seen:  

boa noite então no caso essa parte da descrição seria um combo do equipamento vou trazer o equipamento completo aqui

Descrição 
Curativo YSF01 [1]
19446 Injured_Eyepatch_JP_

Um tapa-olho feito para uma cobaia que quase enforcou o cientista Eisen.
Seu código de identificação no Laboratório Werner é [Ymir project Sample Final 01].
--------------------------
AGI +10.
HP máx. +15%.
Velocidade de ataque +15%.
--------------------------
Conjunto
[Carta Lorde Seyren]
Aumenta a velocidade de movimento.
Ao realizar ataques físicos com [Frenesi] ativo:
20% de chance de ativar um [efeito] por 5 segundos.
--------------------------
Efeito:
ATQ +1.000.
--------------------------
Bônus de ATQ se sobrepõe a outros consumíveis semelhantes.
--------------------------
Tipo: Equip. para Cabeça
Equipa em: Meio
DEF: 0 DEFM: 0
Peso: 30
Nível necessário: 99
Classes: Todas

no caso o equipamento eu ja criei

  - Id: 19446 
    AegisName: Injured_Eyepatch_JP_
    Name: Curativo YSF01 [1]
    Type: Armor
    Weight: 300
    View: 3506
    Sell: 20
    Slots: 1
    Locations:
      Head_Mid: true
    ArmorLevel: 1
    EquipLevelMin: 99
    Refineable: true
    Script: |
     bonus bAgi,10;
     bonus bMaxHP,15;
     bonus bAspdRate,15;

na parte do combo coloquei o que voce falou

  - Combos:
      - Combo:
          - Injured_Eyepatch_JP_   
          - B_Seyren_Card    
    Script: |
      bonus bSpeedRate, 25;
      if (getstatus(SC_BERSERK) && rand(100) < 20) {
        sc_start SC_ATK_INC, 5000, 1000;
      }

mas infelizmente não surtiu nenhum efeito so aumentou a velocidade de movimento mesmo, porém não conhecia esse getstatus vou dar uma olhada para verificar como ele funciona talvez consiga usa-lo nesse script, caso voce consiga arrumar um jeito me avisa, que eu aviso aqui se eu conseguir

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  02/24/25
  • Last Seen:  

1 hour ago, EderRock said:

Fiz isso enquanto estava no ônibus voltando dl serviço, veja se funciona e caso de erros poste aqui pra ver se consigo ajudar.

 

- Id: 400001
  AegisName: YSF01_Bandage
  Name: Curativo YSF01
  Type: Armor
  SubType: Lower
  Buy: 20
  Weight: 10
  Defense: 0
  Slots: 1
  Jobs:
    All: true
  Locations:
    LowerHeadgear: true
  Bonuses:
    SpeedRate: 25
  Script: |
    bonus bSpeedRate, 25;
    if (getstatus(SC_BERSERK) && rand(100) < 20) {
        sc_start SC_ATK_INC, 5000, 1000;
    }

no caso respondi ali em cima esqueci de marcar a resposta desculpe

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  02/24/25
  • Last Seen:  

tentei fazer da seguinte forma
- Combos:
      - Combo:
          - Injured_Eyepatch_JP_   
          - B_Seyren_Card    
    Script: |
      bonus bSpeedRate, 25;
      autobonus "{ bonus bAtk,1000; }", 5000, 200, BF_WEAPON, "getstatus(SC_BERSERK)";

mas quando ativa o efeito dos 1000 de ataque toda vez que eu bato enquanto estiver em frenesi ele sempre fica com + 1000 de ataque =(

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  18
  • Reputation:   3
  • Joined:  02/03/24
  • Last Seen:  

O bonus fica de forma permanente?

 

Não voltei antes pois tive problemas pessoais e não fui notificado de sua interação.

 

Tentarei ver algo quando possível. 

Tenta algo assim.

 

- Combos:

      - Combo:

          - Injured_Eyepatch_JP_   

          - B_Seyren_Card    

    Script: |

      bônus bSpeedRate, 25;

      sc_start SC_BATK, 5000, 1000; 

Edited by EderRock
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  18
  • Reputation:   3
  • Joined:  02/03/24
  • Last Seen:  

Fiz aqui vê se funciona, vou tentar voltar mais tarte para ver uma possível resposta.

 

- Id: 19446

  AegisName: Injured_Eyepatch_JP_

  Name: Curativo YSF01 [1]

  Type: Armor

  Buy: 20

  Weight: 30

  Def: 0

  Mdef: 0

  Locations:

    - LowerHeadgear

  Slots: 1

  EquipLevelMin: 99

  Jobs: All

  Script: |

    bonus bAgi, 10;

    bonus bMaxHPrate, 15;

    bonus bAspdRate, 15;

 

  Combos:

    - Combo:

        - Injured_Eyepatch_JP_

        - B_Seyren_Card

      Script: |

        bonus bSpeedRate, 25;

        if(rand(100) < 20 && getstatus(SC_BERSERK)) {

          sc_start SC_ATKPOTION, 5000, 1000;

        }

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