DnA 3 Report post Posted June 9, 2016 How to add get bonus MIN ATT, MAX ATT, and Defence after Rebirth? Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted June 11, 2016 There is a skill 'Rebirth Mystic Power' (I do not remember name exactly). You can edit it in SkillEffect.lua 1 Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
Jones 36 Report post Posted June 12, 2016 skilleffect.lua function Skill_Rbmp_Use( role , sklv ) edit the skill to what you want. Quote Share this post Link to post Share on other sites
DnA 3 Report post Posted June 14, 2016 --Rebirth Mystic Power (Passive) function Skill_Rbmp_Use( role , sklv ) local statelv = sklv local rb_bonus = (-1) * ( 0.055 * statelv ) -- Increases by 5.5% local mnatksa = math.floor ( (MnatkSa (role) - rb_bonus ) * ATTR_RADIX ) local mxatksa = math.floor ( (MxatkSa (role) - rb_bonus ) * ATTR_RADIX ) local defsa = math.floor ( (DefSa (role) - rb_bonus ) * ATTR_RADIX ) local ResistSa = math.floor ( (ResistSa(role) - rb_bonus ) * ATTR_RADIX ) SetCharaAttr( mnatksa , role , ATTR_STATEC_MNATK ) SetCharaAttr( mxatksa , role , ATTR_STATEC_MXATK ) SetCharaAttr( defsa , role , ATTR_STATEC_DEF ) SetCharaAttr( ResistSa , role , ATTR_STATEC_PDEF ) ALLExAttrSet(role) end function Skill_Rbmp_Unuse( role , sklv ) local statelv = sklv local rb_bonus = (-1) * ( 0.055 * statelv ) -- Increases by 5.5% local mnatksa = math.floor ( (MnatkSa (role) + rb_bonus ) * ATTR_RADIX ) local mxatksa = math.floor ( (MxatkSa (role) + rb_bonus ) * ATTR_RADIX ) local defsa = math.floor ( (DefSa (role) + rb_bonus ) * ATTR_RADIX ) local ResistSa = math.floor ( (ResistSa(role) + rb_bonus ) * ATTR_RADIX ) SetCharaAttr( mnatksa , role , ATTR_STATEC_MNATK ) SetCharaAttr( mxatksa , role , ATTR_STATEC_MXATK ) SetCharaAttr( defsa , role , ATTR_STATEC_DEF ) SetCharaAttr( ResistSa , role , ATTR_STATEC_PDEF ) ALLExAttrSet(role) end Can you help me? Quote Share this post Link to post Share on other sites
Jones 36 Report post Posted June 14, 2016 @DnA local mnatksa = math.floor ( (MnatkSa (role) - rb_bonus ) * ATTR_RADIX ) -- Min Attack (percentage) local mxatksa = math.floor ( (MxatkSa (role) - rb_bonus ) * ATTR_RADIX ) -- Max Attack (percentage) local defsa = math.floor ( (DefSa (role) - rb_bonus ) * ATTR_RADIX ) -- Defense (percentage) local ResistSa = math.floor ( (ResistSa(role) - rb_bonus ) * ATTR_RADIX ) -- Physical Resist (percentage) local rb_bonus = (-1) * ( 0.055 * statelv ) -- Currently, each level of rebirth adds 5.5% of the stats. to change, u can change the value 0.055 to something else. For example, 10% per level will be 0.1 1 Quote Share this post Link to post Share on other sites
DnA 3 Report post Posted June 22, 2016 thanks you. done Quote Share this post Link to post Share on other sites
Brothers 24 Report post Posted July 18, 2018 Not sure if anyone will read this, but i see this script is changing the min attack, max attack, defence and PR. Does anyone know how to add Hitrate,dodge and attack speed? Quote Share this post Link to post Share on other sites
Brothers 24 Report post Posted July 18, 2018 I found this allready btw... local mspdsa = math.floor ( (MspdSa(role) - mspdsa_dif ) * ATTR_RADIX ) --Movement speed i guess local aspdsa = ( AspdSa(role) - aspdsa_dif) * ATTR_RADIX --Attack speed then local hitsa = math.floor ( (HitSa(role) + hitsa_dif ) * ATTR_RADIX) --Hit rate Quote Share this post Link to post Share on other sites