Jump to content
  • 0

when change armor with same card (tao gunka) lost hp.


Question

Posted

Hi, I noticed a problem on my server: when I change to another armor with a Tao Gunka card from another armor with the same thing, my hp goes down, which shouldn't happen and I consider that it should stay the same, right? Has this happened to anyone else? Please help.

 

7 answers to this question

Recommended Posts

  • 0
Posted

It's because equipping a new item included unequipping the previous item. Without the armor your HP is halved. Then you equip a new armor that increases your MaxHP, but your normal HP stays the same. This is how it officially works.

You could of course recode the system to increase your HP when your MaxHP increases, but it's not that simple and might also be exploitable.

  • 0
Posted
12 hours ago, Start_ said:

When equip item that change MaxHP it will does this. So it was normal.

I understand, but can I make it so that the HP doesn't change? I mean, if I have the same armor and the same card, when I change them, my HP should stay where it is and not go down? (I think)

  • 0
Posted
42 minutes ago, Mitosky said:

I understand, but can I make it so that the HP doesn't change? I mean, if I have the same armor and the same card, when I change them, my HP should stay where it is and not go down? (I think)

It is part of unequipping one piece of equipment to equip another. It's not the same.

  • 0
Posted
1 hour ago, Mael said:

It is part of unequipping one piece of equipment to equip another. It's not the same.

This happens and my armor script is the following (in case it helps)
look the gif and the hp 

my item script:
 

Quote

  - Id: 37419
    AegisName: HELARMOR
    Name: Hell Armor
    Type: Armor
    Weight: 2800
    Defense: 6
    Slots: 4
    Jobs:
      All: true
      Novice: true
      SuperNovice: true
      Taekwon: true
      StarGladiator: true
      Gunslinger: true
      SoulLinker: true
    Locations:
      Armor: true
    Gender: Both
    ArmorLevel: 1
    EquipLevelMin: 1
    Refineable: true
    Script: |
      bonus bAllStats,10;
      bonus2 bAddClass,Class_Boss,10;
      bonus bAllStats,getrefine()*1;
      bonus bUnbreakableArmor;
      bonus2 bAddClass,Class_Boss,getrefine()*2;

 

Animation22.gif

  • 0
Posted
5 hours ago, Playtester said:

It's because equipping a new item included unequipping the previous item. Without the armor your HP is halved. Then you equip a new armor that increases your MaxHP, but your normal HP stays the same. This is how it officially works.

You could of course recode the system to increase your HP when your MaxHP increases, but it's not that simple and might also be exploitable.

I understand, but could you guide me more or less where I can adjust? If it is the src I can do it without problems :c

  • 0
Posted

You have to first save the new "to equip" body amor after checking if this has the tao card within it. Then you can check lets say a variable named "toEquipTaoNameID" if it is set by your check then you can let the drop in hp get ignored. (reminder, reset the "toEquipTaoNameID" again to prevent exploids)

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