[Share][Re-Share from L2emu] NPC Buffer

Results 1 to 4 of 4
  1. #1
    Banned Lord Eragon is offline
    Grand MasterRank
    Jan 2005 Join Date
    NorwayLocation
    1,479Posts

    [Share][Re-Share from L2emu] NPC Buffer

    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


  2. #2
    Sorcerer Supreme jotac is offline
    Member +Rank
    Jan 2006 Join Date
    In your pc.Location
    393Posts
    Hi eragon ^^ last time i saw you you had 500 posts o.O

    Off-topic: does l2emu last svn version already have the npc-buffer installed?

  3. #3
    Banned Lord Eragon is offline
    Grand MasterRank
    Jan 2005 Join Date
    NorwayLocation
    1,479Posts
    I've been active with helping at the L2j area^^

    As I can see, L2emu dosn't have this options, or they have an NPC Buffer, but there are no options avaible for it

  4. #4
    Sorcerer Supreme jotac is offline
    Member +Rank
    Jan 2006 Join Date
    In your pc.Location
    393Posts
    well, they are implementing... any wait i will implement in mine server the NPC buffer if it is not already implemented ^^



Advertisement