ganjaradio Posted June 23, 2016 Posted June 23, 2016 Hello where cna i change the caracters' regen for example if they walk to have more regen
0 AbsolutePower Posted June 23, 2016 Posted June 23, 2016 (edited) Hello where cna i change the caracters' regen for example if they walk to have more regen calcHpRegen(L2Character cha) its inside--> Formulas.java find if (cha instanceof L2PcInstance) this is the original code: // Calculate Movement bonus if (player.isSitting()) hpRegenMultiplier *= 1.5; // Sitting else if (!player.isMoving()) hpRegenMultiplier *= 1.1; // Staying else if (player.isRunning()) hpRegenMultiplier *= 0.7; // Running and you can do something like this: // Calculate Movement bonus if (player.isSitting()) hpRegenMultiplier *= 1.5; // Sitting else if (!player.isMoving()) hpRegenMultiplier *= 1.1; // Staying else if (player.isRunning()) hpRegenMultiplier *= 0.7; // Running else hpRegenMultiplier *= 0.9; // Walking this is for hp regen. for mp regen just search for calcMpRegen and cp calcCpRegen Edited June 24, 2016 by AbSoLuTePoWeR
Question
ganjaradio
Hello where cna i change the caracters' regen for example if they walk to have more regen
3 answers to this question
Recommended Posts