[NPC] Mob Spawner, shortened

Page 1 of 4 1234 LastLast
Results 1 to 15 of 46
  1. #1
    bleh.... Shawn is offline
    The OmegaRank
    Oct 2008 Join Date
    Mississauga, CaLocation
    6,123Posts

    [NPC] Mob Spawner, shortened


    RaGEZONE Recommends

    RaGEZONE Recommends

    Because I want to increase my e-penis I guess...

    PHP Code:
    menu = ["Papulatus Clock","Headless Horseman","Black Crow","Anego","Rooster","BigFoot","MushMom"];
    mob = [8500001,9400549,9400014,9400121,9600001,9400575,9500124];
    hp = [23000000,3500000,35000000,75000000,340,32000000,20000];
    exp = [596000,300000,1780000,3900000,33,2660000,1200];
    pServ "WRITE SERVER NAME HERE";
    status 0;

    function 
    start() {
        if (
    cm.getPlayer().getMap().getMonsterCount() > 0)
            
    cm.sendOk("Sorry, there are some mobs already spawned. Kill them first.");
            
    cm.dispose();
        else{
            
    cm.sendNext("I summon Bosses for #b"+pServ+"#k. I summon 10 monsters at a time for free.");
        }
    }

    function 
    action(m,t,s) {
        if (
    0)
            
    status++;
        else{
            
    cm.dispose();
            return;
        }
        if (
    status == 1) {
            
    talk "Please remember I will summon 10.\r\n\r\n";
            for (var 
    0menu.lengthi++)
                
    talk += "#L"+i+"#"+menu[i]+"#l\r\n";
            
    cm.sendSimple(talk "#L7#Cleardrops#l\r\n#L8#Kill All Monsters#l");
        } else if (
    status == 2) {
            if (
    == 7) {
                
    cm.cleardrops();
            } else if (
    == 8) {
                
    cm.killAllMonsters(true);
            }else{
                
    cm.summonMob(mob[s],hp[s],exp[s],10);
            }
            
    cm.dispose();
        }

    PHP Code:
    public int getMonsterCount() {
                    List<
    MapleMapObjectmonsters getMapObjectsInRange(new Point(00), Double.POSITIVE_INFINITYArrays.asList(MapleMapObjectType.MONSTER));
                    return 
    monsters.size();
            } 
    PHP Code:
    public void summonMob(int mobidint customHPint customEXPint amount) {
            
    MapleMonsterStats newStats = new MapleMonsterStats();
            if (
    customHP 0) {
                
    newStats.setHp(customHP);
            }
            if (
    customEXP >= 0) {
                
    newStats.setExp(customEXP);
            }
            if (
    amount <= 1) {
                
    MapleMonster npcmob MapleLifeFactory.getMonster(mobid);
                
    npcmob.setOverrideStats(newStats);
                
    npcmob.setHp(npcmob.getMaxHp());
                
    getPlayer().getMap().spawnMonsterOnGroudBelow(npcmobgetPlayer().getPosition());
            } else {
                for (
    int i 0amounti++) {
                    
    MapleMonster npcmob MapleLifeFactory.getMonster(mobid);
                    
    npcmob.setOverrideStats(newStats);
                    
    npcmob.setHp(npcmob.getMaxHp());
                    
    getPlayer().getMap().spawnMonsterOnGroudBelow(npcmobgetPlayer().getPosition());
                }
            }
        } 
    PHP Code:
    public void cleardrops() {
        
    MapleMonsterInformationProvider.getInstance().clearDrops();
        } 
    PHP Code:
    public void killAllMonsters(int mapid) {
               
    MapleMap map c.getChannelServer().getMapFactory().getMap(mapid);
               
    map.killAllMonsters(false); // No drop.
           

    If you are missing something, or would like to see the "original", go to this thread: Boss Spawner/Monster Spawner

    Off Topic: I am fully prepared for the countless posts saying "OMGZ WEZ ALRE4DEY HAVE DIZ."... Flame away, I'm bored :(


    EDIT: To make it more "noob" friendly, let me explain how to edit it.

    PHP Code:
    menu = ["Papulatus Clock","Headless Horseman","Black Crow","Anego","Rooster","BigFoot","MushMom"];
    mob = [8500001,9400549,9400014,9400121,9600001,9400575,9500124];
    hp = [23000000,3500000,35000000,75000000,340,32000000,20000];
    exp = [596000,300000,1780000,3900000,33,2660000,1200]; 
    In a short explanation, the first selection in the menu that shows up would be Papulatus. 8500001 in the mob array is Papulatus' ID. 23000000 in the hp array is how much HP he'll have when spawned. 5960000 in the exp array is how much exp he will give. NOTE: You multiple the exp number by your exp rate to find the actual amount.

    Another example. The 3rd selection is Black Crow. 9400014 in the mob array is Black Crows' ID. 35000000 in the hp array is the amount of HP he will have when spawned. 1780000 in the exp array is how much exp he will have.

    So to sum it up, basically put them in the order they will appear. First choice goes first, second goes second, etc etc. It's very easy to understand...
    Last edited by Shawn; 26-07-10 at 03:38 PM.

    Quote Originally Posted by Russell Peters
    I have a theory. I believe that the size of your penis is in indirect correlation with how much sex you will have in your life. The smaller your dick, the more you will fuck. You dont believe me, look at the two largest populations in the world

    RIP Akaruz, The Godfather

    Spoiler:

    mental is hot
    Spoiler:

    This is a true story
    Spoiler:

    This message is endorsed by Shawn and not added by MentaL.




  2. #2
    iamTheKing NyCPirate is offline
    Alpha MaleRank
    Aug 2009 Join Date
    c.getNyC.posLocation
    1,752Posts

    Re: Mob Spawner, shortened

    Lol If you want to increase it even more make it noob friendly bro =P
    #MentaLisKing

  3. #3
    Gamma Samus. is offline
    GammaRank
    Jun 2008 Join Date
    wvndesign.nlLocation
    3,332Posts

    Re: Mob Spawner, shortened

    Don't be so harsh on yourself devon. I bet some users will appreciate this.
    In need of a website or design? Click here to send me a PM.




  4. #4
    Account Upgraded | Title Enabled! .:LastBreath:. is offline
    True MemberRank
    Oct 2009 Join Date
    Under your bedLocation
    1,314Posts

    Re: Mob Spawner, shortened

    Good Job Shawn :D

  5. #5
    may web.very maple.pls. iAkira is offline
    Alpha MaleRank
    Aug 2009 Join Date
    somewhere..Location
    2,383Posts

    Re: Mob Spawner, shortened

    nice i was looking for the method of mobcount xD

  6. #6
    bleh.... Shawn is offline
    The OmegaRank
    Oct 2008 Join Date
    Mississauga, CaLocation
    6,123Posts

    Re: Mob Spawner, shortened

    I was bored and helped someone with their NPC with this exact one, so figured hey... why not... I've seen worse. :)

    Quote Originally Posted by Russell Peters
    I have a theory. I believe that the size of your penis is in indirect correlation with how much sex you will have in your life. The smaller your dick, the more you will fuck. You dont believe me, look at the two largest populations in the world

    RIP Akaruz, The Godfather

    Spoiler:

    mental is hot
    Spoiler:

    This is a true story
    Spoiler:

    This message is endorsed by Shawn and not added by MentaL.



  7. #7
    Account Inactive HorrorChix89 is offline
    InactiveRank
    May 2010 Join Date
    ArkansasLocation
    1,279Posts

    Re: Mob Spawner, shortened

    Clear drops doesn't really do anything. No bat errors, no drops cleared

  8. #8
    Account Upgraded | Title Enabled! .:LastBreath:. is offline
    True MemberRank
    Oct 2009 Join Date
    Under your bedLocation
    1,314Posts

    Re: Mob Spawner, shortened

    I loled at this, "MapleBreakMS". Anyways Good Job Shawn (right?)

  9. #9
    bleh.... Shawn is offline
    The OmegaRank
    Oct 2008 Join Date
    Mississauga, CaLocation
    6,123Posts

    Re: Mob Spawner, shortened

    Quote Originally Posted by .:LastBreath:. View Post
    I loled at this, "MapleBreakMS". Anyways Good Job Shawn (right?)
    -_- oops. Changed that part so people can easily put their own server name.

    Quote Originally Posted by Russell Peters
    I have a theory. I believe that the size of your penis is in indirect correlation with how much sex you will have in your life. The smaller your dick, the more you will fuck. You dont believe me, look at the two largest populations in the world

    RIP Akaruz, The Godfather

    Spoiler:

    mental is hot
    Spoiler:

    This is a true story
    Spoiler:

    This message is endorsed by Shawn and not added by MentaL.



  10. #10
    Account Upgraded | Title Enabled! .:LastBreath:. is offline
    True MemberRank
    Oct 2009 Join Date
    Under your bedLocation
    1,314Posts

    Re: Mob Spawner, shortened

    Looks 242354347543563564456 times better then mine, good job again.

  11. #11
    Account Inactive Reinier324 is offline
    InactiveRank
    Mar 2009 Join Date
    AmsterdamLocation
    202Posts

    Re: Mob Spawner, shortened

    Nice ;)

  12. #12
    while(true) spam(); kevintjuh93 is offline
    ModeratorRank
    Jun 2008 Join Date
    The NetherlandsLocation
    4,118Posts

    Re: Mob Spawner, shortened

    Quote Originally Posted by iAkira View Post
    nice i was looking for the method of mobcount xD
    Wait, are you telling us you can't even make that. ow wow :(

  13. #13
    may web.very maple.pls. iAkira is offline
    Alpha MaleRank
    Aug 2009 Join Date
    somewhere..Location
    2,383Posts

    Re: Mob Spawner, shortened

    Quote Originally Posted by kevintjuh93 View Post
    Wait, are you telling us you can't even make that. ow wow :(
    well i never played with mobs before and i haven't been in development for awhile now i just started again, lawl

  14. #14
    ѕнαяιηgαη мαѕтєя -υ¢нιнαвℓα∂є- is offline
    True MemberRank
    Oct 2009 Join Date
    υ¢нιнα нLocation
    343Posts

    Re: Mob Spawner, shortened

    very nice..... Excellent release

  15. #15
    Account Inactive Kushinder is offline
    InactiveRank
    Jul 2008 Join Date
    Behind You...Location
    291Posts

    Re: Mob Spawner, shortened

    Not to be noob but, it's divided into 5 codes, where do all of them go?
    Also, bookmarked for later :)




Page 1 of 4 1234 LastLast

Advertisement