Jump to content
  • 0

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


Mitosky

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  104
  • Reputation:   0
  • Joined:  10/22/19
  • Last Seen:  

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.

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  896
  • Reputation:   248
  • Joined:  01/30/13
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  950
  • Reputation:   180
  • Joined:  04/05/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  104
  • Reputation:   0
  • Joined:  10/22/19
  • Last Seen:  

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)

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  837
  • Reputation:   321
  • Joined:  02/11/19
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  104
  • Reputation:   0
  • Joined:  10/22/19
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  104
  • Reputation:   0
  • Joined:  10/22/19
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   1
  • Joined:  04/16/13
  • Last Seen:  

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)

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