Config.java
Code:/** Config for max newbie level **/ public static int NEWBIE_MAX; /** Config for min newbie level **/ public static int NEWBIE_MIN; ====== ====== NEWBIE_MAX = Integer.parseInt(customSettings.getProperty("NewbieMax", "0")); NEWBIE_MIN = Integer.parseInt(customSettings.getProperty("NewbieMin", "0")); ====== ====== else if (pName.equalsIgnoreCase("NewbieMax")) NEWBIE_MAX = Integer.parseInt(pValue); else if (pName.equalsIgnoreCase("NewbieMin")) NEWBIE_MIN = Integer.parseInt(pValue);
L2NpcInstance.java
Code:public void makeSupportMagic(L2PcInstance player) { int lvl = player.getLevel(); L2Skill skill; this.setTarget(player); if (lvl < Config.NEWBIE_MIN){ String content = "<html><body>Im not sure you deserve my wisdom just yet. Come back to me when you have proven your worth.</body></html>"; insertObjectIdAndShowChatWindow(player, content); return; ** if (lvl > Config.NEWBIE_MAX){ String content = "<html><body>Newbie Guide:<br>You are strong enough to survive on your own now. I can no longer help you.</body></html>"; insertObjectIdAndShowChatWindow(player, content); return; ** //windwalk if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ skill = SkillTable.getInstance().getInfo(1204,1); this.doCast(skill); ** //shield if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ skill = SkillTable.getInstance().getInfo(1040,1); this.doCast(skill); ** if (!player.isMageClass()){ //blessthebody if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ skill = SkillTable.getInstance().getInfo(1045,1); this.doCast(skill); ** //regeneration if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ skill = SkillTable.getInstance().getInfo(1044,1); this.doCast(skill); ** //haste if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ skill = SkillTable.getInstance().getInfo(1086,1); this.doCast(skill); ** ** else { //blessthesoul if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ skill = SkillTable.getInstance().getInfo(1048,1); this.doCast(skill); ** //greater empower if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ skill = SkillTable.getInstance().getInfo(1059,3); this.doCast(skill); ** **
custom.properties
Code:#Min-Max Lvl required for newbie buffer NewbieMax = 50 NewbieMin = 5
Will post patch later, need to get their svn first


![[Share][Re-Share from L2emu] NPC Buffer](http://ragezone.com/hyper728.png)

