[Release] Buff NPC! :D

Page 1 of 4 1234 LastLast
Results 1 to 15 of 57
  1. #1
    Phail. kakashirock is offline
    MemberRank
    Apr 2007 Join Date
    MalaysiaLocation
    264Posts

    [Release] Buff NPC! :D

    Alright heres the buff NPC after editing a bit. :)

    What it does:
    It will let you choose what type of buff you want like...
    Bless, Holy Symbol, Hyper Body, etc. :P
    You can choose the amount of mesos you want your players to pay. :)

    How to install:
    1. Go to this thread and add the NPC command. :)
    2. Copy this code into one of your NPC .js file. :D
    You can use like Mia, duey, etc. Any NPC is good. :X

    Credits to RMZero213 for the better script. :D
    PHP Code:
    // Credits to RMZero213 for the loop, www.untitledms.com

    importPackage(net.sf.odinms.client); // leave this alone

    var status 0// leave this alone
    var price 10000000// define your price
    var skills = new Array(23110034101004230100423010022301003232100010053221002400100322010012001003130100630010031301007); // place your skills here

    function start() {
        
    status = -1;
        
    action(100);
    }

    function 
    action(modetypeselection) {
        if (
    mode == -1) {
            
    cm.dispose();
        } else {
            if (
    mode == 0) {
                
    cm.dispose();
            }
            if (
    mode == 1)
                
    status++;
            else
                
    status--;
            if (
    status == 0) {
                var 
    seleskill "Hello #h #, would you like to be buffed? \r\nSelect which buff you want. \r\n#r#eNote#n: You will be using your own MP.#k\r\n#b" price " mesos per buff.#b";
                for (var 
    0skills.lengthi++) {
                    
    seleskill += "\r\n#L" "##s" skills[i] + "#     #q" skills[i] + "##l";
                }
                
    seleskill += "#k";
                
    cm.sendSimple(seleskill);
            } else if (
    status == 1) {
                if (
    cm.getMeso() < price) {
                    
    cm.sendOk("You dont have enough mesos #h #.");
                    
    cm.dispose();
                } else {
                    var 
    buff SkillFactory.getSkill(skills[selection]);
                    
    cm.sendOk("Enjoy your buff.");
                    
    cm.gainMeso(-price);
                    
    cm.giveBuff(skills[selection], buff.getMaxLevel()); //gets the max level and the selection and applies it
                    
    cm.dispose();
                }
            }
        }

    3. Then just edit the price you want and you can add more buffs with the array.

    Screenshot:
    (Old screenshots but look 80% alike) :D





    For those who wanna re-release the NPC script that is better and more advanced, please leave my copyright there and you may put yours there too. :)
    Last edited by kakashirock; 10-08-08 at 09:12 AM.


  2. #2
    Alpha Member OmgItsParm is offline
    MemberRank
    Apr 2008 Join Date
    2,070Posts

    Re: [Release] Buff NPC! :D

    Very, very nice :)

  3. #3
    Alpha Member Chelseaa is offline
    MemberRank
    Mar 2007 Join Date
    In an MSN Chatroom. [:Location
    1,612Posts

    Re: [Release] Buff NPC! :D

    Something new, and that's always a nice thing to see in the Release section.
    Good job. ^-^

  4. #4
    Phail. kakashirock is offline
    MemberRank
    Apr 2007 Join Date
    MalaysiaLocation
    264Posts

    Re: [Release] Buff NPC! :D

    Lol, thanks.
    Made this long time ago. Just didn't knew how to set skill buff levels. :D
    But now I do. XD

  5. #5
    Account Upgraded | Title Enabled! echicken is offline
    MemberRank
    Apr 2008 Join Date
    1,402Posts

    Re: [Release] Buff NPC! :D

    Nice job.

  6. #6
    Account Upgraded | Title Enabled! nadav64 is offline
    MemberRank
    Apr 2008 Join Date
    476Posts

    Re: [Release] Buff NPC! :D

    hh nice idea to make it even better im gonna add this with a quest like in gms
    and attach this to the admin

  7. #7
    Account Upgraded | Title Enabled! RMZero213 is offline
    MemberRank
    Apr 2008 Join Date
    Far, far awayLocation
    1,280Posts

    Re: [Release] Buff NPC! :D

    Err, your script isn't efficient. Adding new skills is harder than usual..

    You may want to make use of an array.

  8. #8
    Alpha Member Gmanpopinjay is offline
    MemberRank
    Dec 2007 Join Date
    1,588Posts

    Re: [Release] Buff NPC! :D

    noticin happens when i click npc >.<

  9. #9
    Phail. kakashirock is offline
    MemberRank
    Apr 2007 Join Date
    MalaysiaLocation
    264Posts

    Re: [Release] Buff NPC! :D

    @RMZero213
    Well, im nub in javascript. :D
    I guess I'll learn how to.. o.o

    @Gmanpoinjay
    Try relog. o.o
    I tried that script in the post and it works so it should work for you. :)

  10. #10
    Account Upgraded | Title Enabled! Sengi is offline
    MemberRank
    Apr 2008 Join Date
    Behind You xDLocation
    272Posts

    Re: [Release] Buff NPC! :D

    Gonna test that

  11. #11
    Alpha Member Gmanpopinjay is offline
    MemberRank
    Dec 2007 Join Date
    1,588Posts

    Re: [Release] Buff NPC! :D

    i tried reloging >.< i cheked if right npc still dont


    Just Made New Banner =)

  12. #12
    Phail. kakashirock is offline
    MemberRank
    Apr 2007 Join Date
    MalaysiaLocation
    264Posts

    Re: [Release] Buff NPC! :D

    @Sengi
    If it works post a reply pl0x. :D

    @Gmanpopinjay
    Uh, try making the .js file 2002 then summon the npc with !npc 2002. o.o

  13. #13
    Account Upgraded | Title Enabled! nadav64 is offline
    MemberRank
    Apr 2008 Join Date
    476Posts

    Re: [Release] Buff NPC! :D

    srry actually im not gonna make the quest npc cause this DOES NOT WORK
    phail

  14. #14
    Account Upgraded | Title Enabled! ExtremeDevilz is offline
    MemberRank
    Apr 2008 Join Date
    647Posts

    Re: [Release] Buff NPC! :D

    Some Of Buffs Retarded Pay Mesos To Get Heal :eek: LOL

    Abit Expensive

  15. #15
    Alpha Member Gmanpopinjay is offline
    MemberRank
    Dec 2007 Join Date
    1,588Posts

    Re: [Release] Buff NPC! :D

    Doesnt work still =( do i cry?



Page 1 of 4 1234 LastLast

Advertisement