Foob Posted July 6, 2020 Share Posted July 6, 2020 I have this bonus script. [email protected] = getrefine(); bonus bMdef,15; bonus bDelayrate,-10+(getskilllv("SU_NYANGGRASS")>4?-20:0); bonus2 bMagicAddClass,Class_Boss,getskilllv("SU_MEOWMEOW")>4?25:0; bonus2 bSkillAtk,"SU_CN_METEOR",[email protected]>8?50:([email protected]>6?25:10); bonus2 bSkillAtk,"SU_SV_STEMSPEAR",[email protected]>8?50:([email protected]>6?25:10); bonus2 bVariableCastrate,"SU_STOOP",[email protected]>8?-100:([email protected]>6?-50:0); bonus2 bVariableCastrate,"SU_LOPE",[email protected]>8?-100:([email protected]>6?-50:0); if([email protected] >=10 ){ autobonus " bonus bUseSPrate,-100; ",10,20000,BF_MAGIC|BF_SKILL; } bonus bHPGainValue,[email protected]*30; bonus bLongHPGainValue,[email protected]*30; bonus bMagicHPGainValue,[email protected]*30; bonus bSPGainValue,[email protected]*3; bonus bLongSPGainValue,[email protected]*3; bonus bMagicSPGainValue,[email protected]*3; if(getskilllv("SU_SPIRITOFLAND")>=1){ bonus2 bVariableCastrate,"SU_CN_METEOR",-4*(getskilllv("SU_CN_METEOR")+getskilllv("SU_SV_STEMSPEAR")+getskilllv("SU_NYANGGRASS")+getskilllv("SU_CN_POWDERING")+getskilllv("SU_SV_ROOTTWIST")); bonus2 bVariableCastrate,"SU_SV_STEMSPEAR",-4*(getskilllv("SU_CN_METEOR")+getskilllv("SU_SV_STEMSPEAR")+getskilllv("SU_NYANGGRASS")+getskilllv("SU_CN_POWDERING")+getskilllv("SU_SV_ROOTTWIST")); } And results an error below. However, if I use the same script removing one line of bonus2 bVariableCastrate,"SU_SV_STEMSPEAR",-4*(getskilllv("SU_CN_METEOR")+getskilllv("SU_SV_STEMSPEAR")+getskilllv("SU_NYANGGRASS")+getskilllv("SU_CN_POWDERING")+getskilllv("SU_SV_ROOTTWIST")); it works perfectly. What am I missing on the bonus? So the error only shows if I use 2 "bonus2 bVariableCastrate,sk,n;" Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted July 6, 2020 Share Posted July 6, 2020 Try use skill id instead of skill name. Maybe your item script is too long. Quote Link to comment Share on other sites More sharing options...
0 Foob Posted July 6, 2020 Author Share Posted July 6, 2020 1 hour ago, Start_ said: Try use skill id instead of skill name. Maybe your item script is too long. Weird if the script is too long because if I remove one of the bvariablecastrate it has no error Quote Link to comment Share on other sites More sharing options...
I have this bonus script.
[email protected] = getrefine(); bonus bMdef,15; bonus bDelayrate,-10+(getskilllv("SU_NYANGGRASS")>4?-20:0); bonus2 bMagicAddClass,Class_Boss,getskilllv("SU_MEOWMEOW")>4?25:0; bonus2 bSkillAtk,"SU_CN_METEOR",[email protected]>8?50:([email protected]>6?25:10); bonus2 bSkillAtk,"SU_SV_STEMSPEAR",[email protected]>8?50:([email protected]>6?25:10); bonus2 bVariableCastrate,"SU_STOOP",[email protected]>8?-100:([email protected]>6?-50:0); bonus2 bVariableCastrate,"SU_LOPE",[email protected]>8?-100:([email protected]>6?-50:0); if([email protected] >=10 ){ autobonus " bonus bUseSPrate,-100; ",10,20000,BF_MAGIC|BF_SKILL; } bonus bHPGainValue,[email protected]*30; bonus bLongHPGainValue,[email protected]*30; bonus bMagicHPGainValue,[email protected]*30; bonus bSPGainValue,[email protected]*3; bonus bLongSPGainValue,[email protected]*3; bonus bMagicSPGainValue,[email protected]*3; if(getskilllv("SU_SPIRITOFLAND")>=1){ bonus2 bVariableCastrate,"SU_CN_METEOR",-4*(getskilllv("SU_CN_METEOR")+getskilllv("SU_SV_STEMSPEAR")+getskilllv("SU_NYANGGRASS")+getskilllv("SU_CN_POWDERING")+getskilllv("SU_SV_ROOTTWIST")); bonus2 bVariableCastrate,"SU_SV_STEMSPEAR",-4*(getskilllv("SU_CN_METEOR")+getskilllv("SU_SV_STEMSPEAR")+getskilllv("SU_NYANGGRASS")+getskilllv("SU_CN_POWDERING")+getskilllv("SU_SV_ROOTTWIST")); }And results an error below.
However, if I use the same script removing one line of
bonus2 bVariableCastrate,"SU_SV_STEMSPEAR",-4*(getskilllv("SU_CN_METEOR")+getskilllv("SU_SV_STEMSPEAR")+getskilllv("SU_NYANGGRASS")+getskilllv("SU_CN_POWDERING")+getskilllv("SU_SV_ROOTTWIST"));it works perfectly. What am I missing on the bonus? So the error only shows if I use 2 "bonus2 bVariableCastrate,sk,n;"
Link to comment
Share on other sites