Jump to content

Drenar hp do Monstro


lamnor

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  25
  • Reputation:   0
  • Joined:  03/08/16
  • Last Seen:  

Estou com um problema, estou usando em um equipamento o bonus de drenar HP quando mata o monstro: bonus bHPGainValue,100;

Porém, só drena o HP quand mato o monstro com ataques físicos, nao drena quando mato com ataques a distancia ou mágicos.

como resolver?

______________________________________________________________________________________________________

bonus bHPGainValue,n;                                        When killing a monster by physical attack, you gain n HP

Link to comment
Share on other sites


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

I think that kind of drain would be custom, i've seen source custom modifications, related to that. look.

Edited by Stolas
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   6
  • Joined:  02/03/13
  • Last Seen:  

Try this command.

 

bonus2 bHPDrainRate,x,n;        Adds a x/10% chance to drain n% HP from inflicted damage when attacking
bonus2 bSPDrainRate,x,n;        Adds a x/10% chance to drain n% SP from inflicted damage when attacking

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  25
  • Reputation:   0
  • Joined:  03/08/16
  • Last Seen:  

I'm not talking about draining life by attack, I'm talking about draining life by monster death

this hat ------>   

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  25
  • Reputation:   0
  • Joined:  03/08/16
  • Last Seen:  

Elmo Succubus,4,20,,0,,8,,1,0xFFFFFFFF,63,2,256,,65,0,1527,{ bonus bHPGainValue,500; bonus bSPGainValue,50; },{},{  heal 0,-5000;  }

https://ragnaplace.com/bro/item/19163/boneca-da-succubus-1

Link to comment
Share on other sites


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

Desperado is a melee skill, no range...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  25
  • Reputation:   0
  • Joined:  03/08/16
  • Last Seen:  

Right but still not recovering. Only recovering from kills using melee weapons

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   3
  • Joined:  01/22/12
  • Last Seen:  

use -> {bonus bMagicHPGainValue,n;}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   6
  • Joined:  02/03/13
  • Last Seen:  

Bom amigo então não se trata de drenar vida HP, más sim ganhar HP ao derrotar o monstro.

Geralmente os comandos para se montar um script de item podem ser encontrados no arquivo

rathena-master\doc\item_bonus ou dos próprios scripts já existentes no Item_db.

Os comandos para este item são estes.

HP/SP gain
------------
bonus bHPGainValue,n;             Heals +n HP when killing an enemy with a melee-physical attack
bonus bSPGainValue,n;             Heals +n SP when killing an enemy with a melee-physical attack
bonus2 bSPGainRace,r,n;           Heals +n SP when killing an enemy of race r with a melee-physical attack
bonus bLongHPGainValue,n;             Heals +n HP when killing an enemy with a range-physical attack
bonus bLongSPGainValue,n;             Heals +n SP when killing an enemy with a range-physical attack
bonus bMagicHPGainValue,n;        Heals +n HP when killing an enemy with a magical attack
bonus bMagicSPGainValue,n;        Heals +n SP when killing an enemy with a magical attack

 

Segue abaixo o item já criado!

19163,Catherina_Von_Blood,Boneca da Succubus,4,0,,300,,0,,0,0xFFFFFFFF,63,2,256,,1,0,1527,{  bonus bHPGainValue,500;  bonus bMagicHPGainValue,500;  bonus bLongHPGainValue,500; bonus bSPGainValue,50;  bonus bMagicSPGainValue,50; bonus bLongSPGainValue,50; },{},{heal -5000,-500;}
 

Vlw Flw!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.01
  • Content Count:  25
  • Reputation:   0
  • Joined:  03/08/16
  • Last Seen:  

Perfeito! nao sabia da existencia desses bonus:

bonus bLongHPGainValue,n;             Heals +n HP when killing an enemy with a range-physical attack
bonus bLongSPGainValue,n;             Heals +n SP when killing an enemy with a range-physical attack
bonus bMagicHPGainValue,n;        Heals +n HP when killing an enemy with a magical attack
bonus bMagicSPGainValue,n;        Heals +n SP when killing an enemy with a magical attack

 

Resolvido! Muito Obrigado

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   3
  • Joined:  01/22/12
  • Last Seen:  

Na pasta do emulador tem uma pasta doc dentro dela tem um arquivo chamado 'item_bonus' dê uma olhadinha nele, tem práticamente tudo relacionado a bonus de itens.

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
Reply to this topic...

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