[Help] How to create a custom buffer NPC ?

Results 1 to 14 of 14
  1. #1
    Apprentice rebuilt is offline
    MemberRank
    Sep 2005 Join Date
    7Posts

    [Help] How to create a custom buffer NPC ?

    Any ideas how to make a buffer npc? I saw it in other servers and its kinda good...


  2. #2
    Account Upgraded | Title Enabled! xXPanteRXx is offline
    MemberRank
    Jan 2006 Join Date
    Spain - Canary IslandsLocation
    482Posts
    Quote Originally Posted by rebuilt
    Any ideas how to make a buffer npc? I saw it in other servers and its kinda good...
    use search... I post that in post :ranting:
    Post By DarXyde
    PHP Code:
    [config.java


        
    /** 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); 


    [/
    config.java
    PHP Code:
    [L2NpcInstance.java

        public 
    void makeSupportMagic(L2PcInstance player
        { 
            
    int lvl player.getLevel(); 
            
    L2Skill skill
            
    this.setTarget(player); 
            if (
    lvl Config.NEWBIE_MIN){ 
                
    String content "<html><body>Come back here when you grow up a little. I will give you support magic then.</body></html>"
                
    insertObjectIdAndShowChatWindow(playercontent); 
                return; 
            ** 
            if (
    lvl Config.NEWBIE_MAX){ 
                
    String content "<html><body>Newbie Guide:<br>Your level is to high now and i wont give you my magic support.</body></html>"
                
    insertObjectIdAndShowChatWindow(playercontent); 
                return; 
            ** 
            
            
    //windwalk 
            
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                
    skill SkillTable.getInstance().getInfo(4322,1); 
                
    this.doCast(skill); 
            ** 
            
    //shield 
            
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                
    skill SkillTable.getInstance().getInfo(4323,1); 
                
    this.doCast(skill); 
            ** 
            if (!
    player.isMageClass()){ 
                
    //blessofbody 
                
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                    
    skill SkillTable.getInstance().getInfo(4324,1); 
                    
    this.doCast(skill); 
                ** 
                
    //vampirerage 
                
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                    
    skill SkillTable.getInstance().getInfo(4325,1); 
                    
    this.doCast(skill); 
                ** 
                
    //regeneration 
                
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                    
    skill SkillTable.getInstance().getInfo(4326,1); 
                    
    this.doCast(skill); 
                ** 
                
    //haste 
                
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                    
    skill SkillTable.getInstance().getInfo(4327,1); 
                    
    this.doCast(skill); 
                ** 
                
    //lifecubic 
                
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                    
    skill SkillTable.getInstance().getInfo(4338,1); 
                    
    this.doCast(skill); 
                ** 
            ** else { 
                
    //blessthesoul 
                
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                    
    skill SkillTable.getInstance().getInfo(4328,1); 
                    
    this.doCast(skill); 
                ** 
                
    //acumen 
                
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                    
    skill SkillTable.getInstance().getInfo(4329,1); 
                    
    this.doCast(skill); 
                ** 
                
    //concentration 
                
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                    
    skill SkillTable.getInstance().getInfo(4330,1); 
                    
    this.doCast(skill); 
                ** 
                
    //empower 
                
    if (lvl >= Config.NEWBIE_MIN && lvl <= Config.NEWBIE_MAX){ 
                    
    skill SkillTable.getInstance().getInfo(4331,1); 
                    
    this.doCast(skill); 
                ** 
            ** 


    [/
    L2NpcInstance.java
    PHP Code:
    [custom.properties

    #Min-Max Lvl required for newbie buffer 
    NewbieMax 50 
    NewbieMin 


    [/custom.properties
    :ranting: :ranting:

    Later i make a npc buffer and i upload here,but now i go to school :/

  3. #3
    Simplify Your Mind Lithium is offline
    MemberRank
    Jul 2005 Join Date
    Cyrodill, Anvil.Location
    1,313Posts
    That will be nice ;) Please do it and share :)

  4. #4
    Account Upgraded | Title Enabled! xXPanteRXx is offline
    MemberRank
    Jan 2006 Join Date
    Spain - Canary IslandsLocation
    482Posts
    Quote Originally Posted by Lithium
    That will be nice ;) Please do it and share :)
    ok ^^ again I go to the school :P tomorrow and late :(

  5. #5
    Account Upgraded | Title Enabled! spyridonas is offline
    MemberRank
    Dec 2005 Join Date
    Greece,PeiraiasLocation
    616Posts
    Can i make buffer gives you all the buffs game have (incl. C4 buffs) but not songs,dances for all lvl's? (1-78)

  6. #6
    Simplify Your Mind Lithium is offline
    MemberRank
    Jul 2005 Join Date
    Cyrodill, Anvil.Location
    1,313Posts
    I guess you can, the question is how.. :) and I think xXPanteRXx know how.
    Anyway I don't really know what to do with this PHP Codes.. :\ I'm not a coder..

  7. #7
    Apprentice KEEBEROS-PSIX is offline
    MemberRank
    Feb 2006 Join Date
    RussiaLocation
    7Posts
    On my server work Bufer NPC on adenas, buff for 20-80 lvl...

    Code:
    # NPC BUFFER OPTIONS
    # NPC ID 7842 [Alexis Buffer]
    AllowNpcBuffer = True
    
    # Min level to get buffs, default is 20
    # Players who reached level 20 can buy buffs
    MinLevelToGetBuffs = 20
    
    # Max level to get buffs, default is 50
    # Players who reached level 50 can not buy buffs
    MaxLevelToGetBuffs = 80
    
    # Buffs...
    
    EmpowerLvl3Price = 5000
    AcumenLvl3Price = 5000
    FocusLvl3Price = 5000
    MightLvl3Price = 5000
    ShieldLvl3Price = 5000
    BerserkLvl2Price = 5000
    DeathWhsiperLvl3Price = 5000
    RegenerationLvl3Price = 5000
    InvigorLvl3Price = 5000
    MentalAegisLvl3Price = 5000
    MagicBarrierLvl2Price = 5000
    BlessTheBodyLvl6Price = 5000
    ManaRegenerationLvl4Price = 5000
    ConcentrationLvl6Price = 5000
    BlessTheSoulLvl6Price = 5000
    HasteLvl2Price = 5000
    AgilityLvl3Price = 5000
    WindWalkLvl2Price = 5000
    GuidanceLvl3Price = 5000
    
    # Buffer can recharge CP, MP and HP 
    # Default value is 100 adena
    RestoreFullCpPrice = 1000
    RestoreFullMpPrice = 1000
    RestoreFullHpPrice = 1000
    [mod] added code quotes[/mod]
    Last edited by neutrogenik; 04-05-06 at 10:47 PM.

  8. #8
    Can someone share this NPC Buffer ?
    Last edited by neutrogenik; 04-05-06 at 10:47 PM.

  9. #9
    Member Elrik is offline
    MemberRank
    Mar 2006 Join Date
    FranceLocation
    83Posts
    That npc type need to be coded in java, u need to change u server for that (by this one coded) u dont take it simply by sql/htm ;)

  10. #10
    Proficient Member kolor2006 is offline
    MemberRank
    Jan 2006 Join Date
    PolandLocation
    185Posts
    Quote Originally Posted by KEEBEROS-PSIX
    On my server work Bufer NPC on adenas, buff for 20-80 lvl...

    # NPC BUFFER OPTIONS
    # NPC ID 7842 [Alexis Buffer]
    AllowNpcBuffer = True

    # Min level to get buffs, default is 20
    # Players who reached level 20 can buy buffs
    MinLevelToGetBuffs = 20

    # Max level to get buffs, default is 50
    # Players who reached level 50 can not buy buffs
    MaxLevelToGetBuffs = 80

    # Buffs...

    EmpowerLvl3Price = 5000
    AcumenLvl3Price = 5000
    FocusLvl3Price = 5000
    MightLvl3Price = 5000
    ShieldLvl3Price = 5000
    BerserkLvl2Price = 5000
    DeathWhsiperLvl3Price = 5000
    RegenerationLvl3Price = 5000
    InvigorLvl3Price = 5000
    MentalAegisLvl3Price = 5000
    MagicBarrierLvl2Price = 5000
    BlessTheBodyLvl6Price = 5000
    ManaRegenerationLvl4Price = 5000
    ConcentrationLvl6Price = 5000
    BlessTheSoulLvl6Price = 5000
    HasteLvl2Price = 5000
    AgilityLvl3Price = 5000
    WindWalkLvl2Price = 5000
    GuidanceLvl3Price = 5000

    # Buffer can recharge CP, MP and HP
    # Default value is 100 adena
    RestoreFullCpPrice = 1000
    RestoreFullMpPrice = 1000
    RestoreFullHpPrice = 1000

    desireland.ru
    hmmm where i must write this???

  11. #11
    Enthusiast s_e_r_j is offline
    MemberRank
    Mar 2006 Join Date
    uaLocation
    26Posts
    Quote Originally Posted by kolor2006
    hmmm where i must write this???
    lol =) download and use server keeberos, search in his server config files

  12. #12
    Proficient Member kolor2006 is offline
    MemberRank
    Jan 2006 Join Date
    PolandLocation
    185Posts
    Quote Originally Posted by s_e_r_j
    lol =) download and use server keeberos, search in his server config files
    u mean i must write this to server.properites?

  13. #13
    Enthusiast s_e_r_j is offline
    MemberRank
    Mar 2006 Join Date
    uaLocation
    26Posts
    [mod] no advertising please[/mod]
    Last edited by neutrogenik; 04-05-06 at 10:48 PM.

  14. #14
    Apprentice RaYa is offline
    MemberRank
    May 2006 Join Date
    20Posts
    How can use it in my server?



Advertisement