PB&JJ 11 Posted May 16, 2017 (edited) Usage: item bonus command: bonus2 bReduceSkillDamage x,y; // x = skill id, y = % Example: { Id: 8001 AegisName: "Custom_Card" Name: "Custom Card" Type: 6 Buy: 20 Weight: 10 Loc: 32 Script: <" bonus2 bReduceSkillDamage,MO_EXTREMITYFIST,50; //Reduces Asura strikes damage by 50% "> }, you can find it on my github here. Edited May 6, 2022 by PB&JJ 2 bWolfie and tedexx reacted to this Quote Share this post Link to post Share on other sites
bWolfie 139 Posted May 16, 2017 (edited) Woohoo! I will test later. This is awesome. One warning: ReduceSkillDamage.c ReduceSkillDamage.c: In function ‘battle_calc_damage_post’: ReduceSkillDamage.c:100:27: warning: variable ‘s_sd’ set but not used [-Wunused-but-set-variable] struct map_session_data *s_sd, *t_sd; Compiling in CentOS7 (gcc 4.8.5 20150623) Edited May 16, 2017 by True Zeal Quote Share this post Link to post Share on other sites
PB&JJ 11 Posted May 16, 2017 (edited) Ah, that's right. I forgot to remove that. I'll fix it once I get home, thanks! Edited May 6, 2022 by PB&JJ Quote Share this post Link to post Share on other sites
Eternity 1 Posted May 16, 2017 Ah, that's right. I forgot to remove that. I'll fix it once I get home, thanks! Update: It has been pushed to my Git, please refer to the first link, thanks! Hi Jeroen i've been looking for this kind of modifier. is there way u can support rA also? That would be appreciated. Quote Share this post Link to post Share on other sites
PB&JJ 11 Posted May 17, 2017 Eternity, I sent you a PM earlier. However, it has come to my Attention that rAthena already has a script command that does this, namely:bonus2 bSubSkill,sk,n; Quote Share this post Link to post Share on other sites
bWolfie 139 Posted June 30, 2017 Seems some memory leaks caused by this plugin: Memory manager: Memory leaks found at 2017/06/30 00h34m30s (Git rev '42387612c796fab0bc3257c555b2401df0d13033'). 0001 : HPM.c line 282 size 8 address 0x0x51928e4 0002 : HPM.c line 1023 size 24 address 0x0x576658c 0003 : HPM.c line 274 size 24 address 0x0x57669cc 0004 : script.c line 19544 size 19 address 0x0x5b7d844 0005 : script.c line 19545 size 19 address 0x0x5b7d904 0006 : HPM.c line 274 size 24 address 0x0x5b7e2c4 0007 : script.c line 19544 size 19 address 0x0x5b7e984 0008 : script.c line 19545 size 19 address 0x0x5b7f304 0009 : HPM.c line 1023 size 24 address 0x0x5ca95b4 0010 : HPM.c line 274 size 24 address 0x0x68dcb7c 0011 : HPM.c line 1023 size 24 address 0x0x68dce3c 0012 : HPM.c line 1023 size 24 address 0x0x68dd37c 0013 : HPM.c line 1023 size 24 address 0x0x68e4a7c 0014 : ReduceSkillDamage.c line 61 size 40 address 0x0x6987474 0015 : ReduceSkillDamage.c line 61 size 40 address 0x0x6988d24 0016 : pc.c line 2219 size 38 address 0x0x6989d64 0017 : ReduceSkillDamage.c line 61 size 40 address 0x0x698a174 0018 : HPM.c line 1023 size 24 address 0x0x6ec8c3c 0019 : HPM.c line 282 size 8 address 0x0x6f37ad4 0020 : HPM.c line 282 size 8 address 0x0x6f37ec4 0021 : ReduceSkillDamage.c line 61 size 40 address 0x0x767e454 0022 : ReduceSkillDamage.c line 61 size 40 address 0x0x767ebd4 0023 : ReduceSkillDamage.c line 61 size 40 address 0x0x767f5d4 0024 : pc.c line 2219 size 38 address 0x0x767f624 0025 : ReduceSkillDamage.c line 61 size 40 address 0x0x767f714 0026 : ReduceSkillDamage.c line 61 size 40 address 0x0x7680164 0027 : ReduceSkillDamage.c line 61 size 40 address 0x0x7680e34 0028 : ReduceSkillDamage.c line 61 size 40 address 0x0x7683d64 0029 : ReduceSkillDamage.c line 61 size 40 address 0x0x76843f4 0030 : pc.c line 2218 size 25 address 0x0x77d2ef4 0031 : HPM.c line 274 size 24 address 0x0x77d6474 0032 : HPM.c line 274 size 24 address 0x0x77d8274 0033 : HPM.c line 274 size 24 address 0x0x77d85b4 0034 : HPM.c line 1023 size 24 address 0x0x77d8ab4 0035 : HPM.c line 274 size 24 address 0x0x77d8eb4 0036 : HPM.c line 274 size 24 address 0x0x77d9a74 0037 : HPM.c line 1023 size 24 address 0x0x77d9ff4 0038 : pc.c line 2218 size 25 address 0x0x77da3f4 0039 : HPM.c line 1023 size 24 address 0x0x77da4b4 0040 : pc.c line 9570 size 2 address 0x0x8e0ce9c 0041 : HPM.c line 282 size 8 address 0x0x8e0ec6c 0042 : HPM.c line 282 size 8 address 0x0x8e106dc 0043 : pc.c line 9570 size 2 address 0x0x8e12a4c 0044 : pc.c line 9570 size 2 address 0x0x8e147ec 0045 : pc.c line 9570 size 2 address 0x0x8e14abc 0046 : pc.c line 9570 size 2 address 0x0x8e14cfc 0047 : channel.c line 105 size 1104 address 0x0xacfcc1c 0048 : HPM.c line 282 size 8 address 0x0xaf18494 0049 : HPM.c line 282 size 8 address 0x0xaf18d04 0050 : HPM.c line 282 size 8 address 0x0xaf19094 0051 : HPM.c line 282 size 8 address 0x0xaf191e4 0052 : ReduceSkillDamage.c line 61 size 40 address 0x0xb1a68f4 0053 : ReduceSkillDamage.c line 61 size 40 address 0x0xb1aa2c4 0054 : pc.c line 9570 size 2 address 0x0xb3fe804 0055 : HPM.c line 282 size 8 address 0x0xb400784 0056 : HPM.c line 282 size 8 address 0x0xb400e14 0057 : HPM.c line 282 size 8 address 0x0xb401e94 0058 : HPM.c line 282 size 8 address 0x0xb4025e4 0059 : HPM.c line 282 size 8 address 0x0xb402fd4 0060 : pc.c line 9554 size 2 address 0x0xb404084 0061 : pc.c line 9570 size 2 address 0x0xb404534 0062 : HPM.c line 1023 size 24 address 0x0xba8fb24 0063 : script.c line 19544 size 19 address 0x0xc0b6e24 0064 : HPM.c line 274 size 24 address 0x0xc0b7324 0065 : script.c line 19544 size 19 address 0x0xc0b73a4 0066 : HPM.c line 274 size 24 address 0x0xc0b7924 0067 : HPM.c line 274 size 24 address 0x0xc0b7ee4 0068 : HPM.c line 1023 size 24 address 0x0xc0b80a4 0069 : HPM.c line 274 size 24 address 0x0xc0b8ca4 0070 : HPM.c line 1023 size 24 address 0x0xc0b9c64 0071 : script.c line 19545 size 19 address 0x0xc0ba064 0072 : script.c line 19545 size 19 address 0x0xc0ba2a4 0073 : HPM.c line 274 size 24 address 0x0xc0ba824 0074 : HPM.c line 274 size 24 address 0x0xc0bac64 0075 : HPM.c line 1023 size 24 address 0x0xc0bafe4 0076 : HPM.c line 1023 size 24 address 0x0xc0bb024 0077 : ReduceSkillDamage.c line 61 size 40 address 0x0xc11d344 Quote Share this post Link to post Share on other sites