Skullz1 Posted May 27, 2018 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 09/23/17 Last Seen: Saturday at 03:28 AM Share Posted May 27, 2018 Hello, How Can I block HP drain when I'm in berserk/frenzy? Doesn't matter if i'm a Lord Knight or using a LK Card with other classes. For exemple: Solar Sword, or Sky Deleter Card... I don't want this "lifesteal" effect working in my server. I hope you understand, guys! Thank you. Sorry my bad English. Quote Link to comment Share on other sites More sharing options...
0 Skullz1 Posted May 29, 2018 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 09/23/17 Last Seen: Saturday at 03:28 AM Author Share Posted May 29, 2018 Anybody? Please! Quote Link to comment Share on other sites More sharing options...
2 joecalis Posted June 1, 2018 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 64 Reputation: 41 Joined: 03/26/12 Last Seen: March 29 Share Posted June 1, 2018 In battle.cpp search for void battle_drain under uint8 i = 0; add the code: struct status_change *sc; sc = status_get_sc(&sd->bl); it should look like this now: uint8 i = 0; struct status_change *sc; sc = status_get_sc(&sd->bl); if (!CHK_RACE(race) && !CHK_CLASS(class_)) return; now after the line battle_vanish(sd, tbl, &d); add this code: if (sc && sc->count){ if (sc->data[SC_BERSERK]) return; } it should now look like this: // Check for vanish HP/SP. !CHECKME: Which first, drain or vanish? battle_vanish(sd, tbl, &d); if (sc && sc->count){ if (sc->data[SC_BERSERK]) return; } // Check for drain HP/SP and there you go, no more lifesteal. Quote Link to comment Share on other sites More sharing options...
Question
Skullz1
Hello,
How Can I block HP drain when I'm in berserk/frenzy?
Doesn't matter if i'm a Lord Knight or using a LK Card with other classes.
For exemple: Solar Sword, or Sky Deleter Card... I don't want this "lifesteal" effect working in my server.
I hope you understand, guys!
Thank you.
Sorry my bad English.
Link to comment
Share on other sites
2 answers to this question
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.