lamnor Posted October 29, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 26 Reputation: 0 Joined: 03/08/16 Last Seen: April 13 Share Posted October 29, 2019 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 Quote Link to comment Share on other sites More sharing options...
Mael Posted October 30, 2019 Group: Forum Moderator Topic Count: 25 Topics Per Day: 0.01 Content Count: 837 Reputation: 321 Joined: 02/11/19 Last Seen: Yesterday at 01:54 PM Share Posted October 30, 2019 (edited) I think that kind of drain would be custom, i've seen source custom modifications, related to that. look. Edited October 30, 2019 by Stolas Quote Link to comment Share on other sites More sharing options...
tiagofm94 Posted October 30, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 6 Joined: 02/03/13 Last Seen: October 5, 2024 Share Posted October 30, 2019 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 Quote Link to comment Share on other sites More sharing options...
lamnor Posted October 30, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 26 Reputation: 0 Joined: 03/08/16 Last Seen: April 13 Author Share Posted October 30, 2019 I'm not talking about draining life by attack, I'm talking about draining life by monster death this hat ------> Quote Link to comment Share on other sites More sharing options...
lamnor Posted October 30, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 26 Reputation: 0 Joined: 03/08/16 Last Seen: April 13 Author Share Posted October 30, 2019 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 Quote Link to comment Share on other sites More sharing options...
Mael Posted October 30, 2019 Group: Forum Moderator Topic Count: 25 Topics Per Day: 0.01 Content Count: 837 Reputation: 321 Joined: 02/11/19 Last Seen: Yesterday at 01:54 PM Share Posted October 30, 2019 Desperado is a melee skill, no range... Quote Link to comment Share on other sites More sharing options...
lamnor Posted October 30, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 26 Reputation: 0 Joined: 03/08/16 Last Seen: April 13 Author Share Posted October 30, 2019 Right but still not recovering. Only recovering from kills using melee weapons Quote Link to comment Share on other sites More sharing options...
nomade Posted October 30, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 15 Reputation: 3 Joined: 01/22/12 Last Seen: May 28, 2023 Share Posted October 30, 2019 use -> {bonus bMagicHPGainValue,n;} Quote Link to comment Share on other sites More sharing options...
tiagofm94 Posted October 30, 2019 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 14 Reputation: 6 Joined: 02/03/13 Last Seen: October 5, 2024 Share Posted October 30, 2019 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! Quote Link to comment Share on other sites More sharing options...
lamnor Posted October 31, 2019 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 26 Reputation: 0 Joined: 03/08/16 Last Seen: April 13 Author Share Posted October 31, 2019 Perfeito! nao sabia da existencia desses bonus: bonus bLongHPGainValue,n; Heals +n HP when killing an enemy with a range-physical attackbonus bLongSPGainValue,n; Heals +n SP when killing an enemy with a range-physical attackbonus bMagicHPGainValue,n; Heals +n HP when killing an enemy with a magical attackbonus bMagicSPGainValue,n; Heals +n SP when killing an enemy with a magical attack Resolvido! Muito Obrigado Quote Link to comment Share on other sites More sharing options...
nomade Posted October 31, 2019 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 15 Reputation: 3 Joined: 01/22/12 Last Seen: May 28, 2023 Share Posted October 31, 2019 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.