[Release] Super Info NPC

Page 1 of 3 123 LastLast
Results 1 to 15 of 35
  1. #1
    Account Upgraded | Title Enabled! maplepuppet is offline
    MemberRank
    Nov 2008 Join Date
    New JerseyLocation
    905Posts

    [Release] Super Info NPC

    EDIT Npc has been fixed with a "Nevermind I don't need anything" option. New code below.


    A npc I made, it is a super info npc. It tells your members all the server info, you can add questions to it if you want. It should be pretty easy to edit. Tested it and it works 100%. Here it is.

    Here is a screenshot incase you don't understand

    And it has pictures to make it look nice



    PHP Code:
    var status = -1

    function 
    start() 

        
    status = -1
        
    action(100); 
    }

    function 
    action(modetypeselection) { 
        if (
    mode == 1
        
    status++; 
        if (
    status == 0) { 
            
    cm.sendSimple("#bWelcome to BeamMS V.62, I am the personal helper NPC. What do you need? \b\r\n#L0#What are the server rates?\n\#l\b\r\n#L1#Who are the Gms of this server?\n\#l\b\r\n#L2#What are some of the new updates?\n\#l\b\r\n#L3#Where are all the NPCS in the Fm at?\n\#l\b\r\n#L4#What are some of the features to the server?\n\#l\n\#l\b\r\n#L5#Nevermind I don't need anything.\n\#l")
        } else if (
    status == 1) {
                if (
    selection == 0) {
        
    cm.sendOk("#b               Server Rates\r\n\#i1302034 \r\n\     Exp - 50x \r\n\#i1302034 \r\n\     Meso - 10x \r\n\#i1302034 \r\n\     Drop - 5x");
        } else if (
    selection == 1) {
        
    cm.sendOk("#r               Official Gm List\r\n\#i1000009 \r\n\     Matt - Owner \r\n\#i1000009 \r\n\     James - Co Owner \r\n\#i1000009 \r\n\     Aaron - Gm \r\n\#i1000009 \r\n\     Ruski - Gm");
        } else if (
    selection == 2) {
        
    cm.sendOk("#d               Updates December 31st\r\n\#i2000005 \r\n\     Pet Shop Added \r\n\#i2000005 \r\n\     Player Hangouts Fixed \r\n\#i2000005 \r\n\     Bug Report System Added to Website \r\n\#i2000005 \r\n\     Non-Hamachi Coming out soon \r\n\#i2000005 \r\n\     Updating to 24/7 Server");
        } else if (
    selection == 3) {
        
    cm.sendOk("#k               Where to find all the NPCS\r\n\#i1092001 \r\n\     Talk to Shanks in the free market for the all in one Npc selection menu");
        } else if (
    selection == 4) {
        
    cm.sendOk("#r               Features List\r\n\#i5021005 \r\n\     PvP Working \r\n\#i5021005 \r\n\     Proper Autobans \r\n\#i5021005 \r\n\     Tons of npcs and shops \r\n\#i5021005 \r\n\     Player Hangouts \r\n\#i5021005 \r\n\     Most Pqs Working");
        } else if (
    selection == 5) {
        
    cm.dispose();
        }
        
    cm.dispose();
    }

    Last edited by maplepuppet; 31-12-08 at 07:29 PM.


  2. #2
    Member shervintan is offline
    MemberRank
    Dec 2008 Join Date
    65Posts

    Re: [Release] Super Info NPC

    Lol what this ?

  3. #3
    Account Upgraded | Title Enabled! megoesrawr is offline
    MemberRank
    May 2008 Join Date
    CaliforniaLocation
    873Posts

    Re: [Release] Super Info NPC

    It's just an npc that tells stuff about your server :/

  4. #4
    Account Upgraded | Title Enabled! maplepuppet is offline
    MemberRank
    Nov 2008 Join Date
    New JerseyLocation
    905Posts

    Re: [Release] Super Info NPC

    Posted a screenshot so you can understand what it is. And can't you analyze a script?

  5. #5
    Infraction Banned Jvlaple is offline
    MemberRank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Release] Super Info NPC

    LOL, what a noob script...

    Here, I'll fix it up for ya

    Code:
    var status = -1; 
    
    function start() 
    { 
        status = -1; 
        action(1, 0, 0); 
    }
    
    function action(mode, type, selection) { 
        if (mode == 1) 
        status++; 
        if (status == 0) { 
            cm.sendSimple("#bWelcome to BeamMS V.62, I am the personal helper NPC. What do you need? \b\r\n#L0#What are the server rates?\n\#l\b\r\n#L1#Who are the Gms of this server?\n\#l\b\r\n#L2#What are some of the new updates?\n\#l\b\r\n#L3#Where are all the NPCS in the Fm at?\n\#l\b\r\n#L4#What are some of the features to the server?\n\#l")
        } else if (status == 1) {
                if (selection == 0) {
        cm.sendOk("#b               Server Rates\r\n\#i1302034 \r\n\     Exp - " + cm.getPlayer().getClient().getChannelServer().getExpRate() + " \r\n\#i1302034 \r\n\     Meso - " + cm.getPlayer().getClient().getChannelServer().getMesoRate() + "\r\n\#i1302034 \r\n\     Drop -" + cm.getPlayer().getClient().getChannelServer().getDropRate());
        } else if (selection == 1) {
        cm.sendOk("#r               Official Gm List\r\n\#i1000009 \r\n\     Retard - Owner \r\n\#i1000009 \r\n\     James - Co Owner \r\n\#i1000009 \r\n\     Aaron - Gm \r\n\#i1000009 \r\n\     Ruski - Gm");
        } else if (selection == 2) {
        cm.sendOk("#d               Updates December 31st\r\n\#i2000005 \r\n\     Pet Shop Added \r\n\#i2000005 \r\n\     Player Hangouts Fixed \r\n\#i2000005 \r\n\     Bug Report System Added to Website \r\n\#i2000005 \r\n\     Non-Hamachi Coming out soon \r\n\#i2000005 \r\n\     Updating to 24/7 Server");
        } else if (selection == 3) {
        cm.sendOk("#k               Where to find all the NPCS\r\n\#i1092001 \r\n\     Talk to Shanks in the free market for the all in one Npc selection menu");
        } else if (selection == 4) {
        cm.sendOk("#r               Features List\r\n\#i5021005 \r\n\     PvP Working \r\n\#i5021005 \r\n\     Proper Autobans \r\n\#i5021005 \r\n\     Tons of npcs and shops \r\n\#i5021005 \r\n\     Player Hangouts \r\n\#i5021005 \r\n\     Most Pqs Working");
        }
        cm.dispose();
    }
    }

  6. #6
    Account Upgraded | Title Enabled! Alyan is offline
    MemberRank
    Dec 2008 Join Date
    With Megan Fox. (:Location
    421Posts

    Re: [Release] Super Info NPC

    Good Idea!
    Seems really use full for the noob players that can come to our servers (;

  7. #7
    Account Upgraded | Title Enabled! maplepuppet is offline
    MemberRank
    Nov 2008 Join Date
    New JerseyLocation
    905Posts

    Re: [Release] Super Info NPC

    Quote Originally Posted by Jvlaple View Post
    LOL, what a noob script...

    Here, I'll fix it up for ya

    Code:
    var status = -1; 
    
    function start() 
    { 
        status = -1; 
        action(1, 0, 0); 
    }
    
    function action(mode, type, selection) { 
        if (mode == 1) 
        status++; 
        if (status == 0) { 
            cm.sendSimple("#bWelcome to BeamMS V.62, I am the personal helper NPC. What do you need? \b\r\n#L0#What are the server rates?\n\#l\b\r\n#L1#Who are the Gms of this server?\n\#l\b\r\n#L2#What are some of the new updates?\n\#l\b\r\n#L3#Where are all the NPCS in the Fm at?\n\#l\b\r\n#L4#What are some of the features to the server?\n\#l")
        } else if (status == 1) {
                if (selection == 0) {
        cm.sendOk("#b               Server Rates\r\n\#i1302034 \r\n\     Exp - " + cm.getPlayer().getClient().getChannelServer().getExpRate() + " \r\n\#i1302034 \r\n\     Meso - " + cm.getPlayer().getClient().getChannelServer().getMesoRate() + "\r\n\#i1302034 \r\n\     Drop -" + cm.getPlayer().getClient().getChannelServer().getDropRate());
        } else if (selection == 1) {
        cm.sendOk("#r               Official Gm List\r\n\#i1000009 \r\n\     Retard - Owner \r\n\#i1000009 \r\n\     James - Co Owner \r\n\#i1000009 \r\n\     Aaron - Gm \r\n\#i1000009 \r\n\     Ruski - Gm");
        } else if (selection == 2) {
        cm.sendOk("#d               Updates December 31st\r\n\#i2000005 \r\n\     Pet Shop Added \r\n\#i2000005 \r\n\     Player Hangouts Fixed \r\n\#i2000005 \r\n\     Bug Report System Added to Website \r\n\#i2000005 \r\n\     Non-Hamachi Coming out soon \r\n\#i2000005 \r\n\     Updating to 24/7 Server");
        } else if (selection == 3) {
        cm.sendOk("#k               Where to find all the NPCS\r\n\#i1092001 \r\n\     Talk to Shanks in the free market for the all in one Npc selection menu");
        } else if (selection == 4) {
        cm.sendOk("#r               Features List\r\n\#i5021005 \r\n\     PvP Working \r\n\#i5021005 \r\n\     Proper Autobans \r\n\#i5021005 \r\n\     Tons of npcs and shops \r\n\#i5021005 \r\n\     Player Hangouts \r\n\#i5021005 \r\n\     Most Pqs Working");
        }
        cm.dispose();
    }
    }
    Are you retarted? You didn't even help with anything. And it works fine, not every script is broken.

  8. #8
    Infraction Banned Jvlaple is offline
    MemberRank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Release] Super Info NPC

    LOL I made it so it displays the CURRENT server rate, learn to READ >.>

    Also, you cannot spell 'retarted' LOL its 'retarded'

  9. #9
    Account Upgraded | Title Enabled! megoesrawr is offline
    MemberRank
    May 2008 Join Date
    CaliforniaLocation
    873Posts

    Re: [Release] Super Info NPC

    IMO, I think this isn't useful much.

  10. #10
    Infraction Banned Jvlaple is offline
    MemberRank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Release] Super Info NPC

    Code:
    public List<String> getAllGMs() {
     Connection con = DatabaseConnection.getConnection();
     try {
        List<String> ret = new LinkedList<String>();
        PreparedStatement ps = con.prepareStatement("SELECT name FROM characters WHERE gm > 0");
        ResultSet rs = ps.executeQuery();
        while (rs.next) {
          ret.add(rs.getString("name"));
         }
         return ret;
     } catch (SQLException ex) {
       Logger.getLogger(getClass().getSimpleName()).log(Level.SEVERE, null, ex);
       return null;
    }
    }
    This could be a better solution for getting GM names, retard

  11. #11
    Member StormCaster is offline
    MemberRank
    Dec 2008 Join Date
    :dLocation
    79Posts

    Re: [Release] Super Info NPC

    Nice release but I like computer npc more ;D

  12. #12
    Member xSen is offline
    MemberRank
    Nov 2008 Join Date
    (。◕‿◕。) Malaysia (。◕‿◕。)Location
    79Posts

    Re: [Release] Super Info NPC

    Nice Release :D

    special for new server

  13. #13
    Member gio01 is offline
    MemberRank
    Oct 2008 Join Date
    99Posts

    Re: [Release] Super Info NPC

    where added this script?

  14. #14
    Mother effin' clouds SaintsIan is offline
    MemberRank
    Apr 2008 Join Date
    fyrechat.netLocation
    2,809Posts

    Re: [Release] Super Info NPC

    There was another NPC like this before that was released too ;)
    Nice work anyways.

  15. #15
    Account Upgraded | Title Enabled! ~Justin~ is offline
    MemberRank
    Jul 2008 Join Date
    Up Your Buttt ALocation
    905Posts

    Re: [Release] Super Info NPC

    Quote Originally Posted by Jvlaple View Post
    LOL, what a noob script...

    Here, I'll fix it up for ya

    Code:
    var status = -1; 
    
    function start() 
    { 
        status = -1; 
        action(1, 0, 0); 
    }
    
    function action(mode, type, selection) { 
        if (mode == 1) 
        status++; 
        if (status == 0) { 
            cm.sendSimple("#bWelcome to BeamMS V.62, I am the personal helper NPC. What do you need? \b\r\n#L0#What are the server rates?\n\#l\b\r\n#L1#Who are the Gms of this server?\n\#l\b\r\n#L2#What are some of the new updates?\n\#l\b\r\n#L3#Where are all the NPCS in the Fm at?\n\#l\b\r\n#L4#What are some of the features to the server?\n\#l")
        } else if (status == 1) {
                if (selection == 0) {
        cm.sendOk("#b               Server Rates\r\n\#i1302034 \r\n\     Exp - " + cm.getPlayer().getClient().getChannelServer().getExpRate() + " \r\n\#i1302034 \r\n\     Meso - " + cm.getPlayer().getClient().getChannelServer().getMesoRate() + "\r\n\#i1302034 \r\n\     Drop -" + cm.getPlayer().getClient().getChannelServer().getDropRate());
        } else if (selection == 1) {
        cm.sendOk("#r               Official Gm List\r\n\#i1000009 \r\n\     Retard - Owner \r\n\#i1000009 \r\n\     James - Co Owner \r\n\#i1000009 \r\n\     Aaron - Gm \r\n\#i1000009 \r\n\     Ruski - Gm");
        } else if (selection == 2) {
        cm.sendOk("#d               Updates December 31st\r\n\#i2000005 \r\n\     Pet Shop Added \r\n\#i2000005 \r\n\     Player Hangouts Fixed \r\n\#i2000005 \r\n\     Bug Report System Added to Website \r\n\#i2000005 \r\n\     Non-Hamachi Coming out soon \r\n\#i2000005 \r\n\     Updating to 24/7 Server");
        } else if (selection == 3) {
        cm.sendOk("#k               Where to find all the NPCS\r\n\#i1092001 \r\n\     Talk to Shanks in the free market for the all in one Npc selection menu");
        } else if (selection == 4) {
        cm.sendOk("#r               Features List\r\n\#i5021005 \r\n\     PvP Working \r\n\#i5021005 \r\n\     Proper Autobans \r\n\#i5021005 \r\n\     Tons of npcs and shops \r\n\#i5021005 \r\n\     Player Hangouts \r\n\#i5021005 \r\n\     Most Pqs Working");
        }
        cm.dispose();
    }
    }
    Stop acting like your a smart ass. There are ALOT of people better than you. His script was working fine. Tell me, what did you fix?

    @ontopic Nice release. Good for new players =)



Page 1 of 3 123 LastLast

Advertisement