Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Release]Buff Commands - !buffme !buffmap !buffworld...

Junior Spellweaver
Joined
Mar 21, 2008
Messages
169
Reaction score
0
Well This is for people who wish to give A LOT of Buffs to a map/server or themselves with one simple command. This Command can DC some players or yourself upon casting the command.

Code:
                        //buff commands
                       else if (splitted[0].equals("!worldbuff")) {
                        for (MapleCharacter mch : cserv.getPlayerStorage().getAllCharacters()){
                        if (mch != null) {
                            //gm skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                          //warrior skills
                        SkillFactory.getSkill(1001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1101007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1101006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1121000).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1121002).getEffect(30).applyTo(mch);
                          //Mage buffs
                        SkillFactory.getSkill(2001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2001002).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2101001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2301003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2321005).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(2321004).getEffect(30).applyTo(mch);
                          //bowman buffs
                        SkillFactory.getSkill(3121008).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121002).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3221006).getEffect(30).applyTo(mch);
                          //rouge buffs
                        SkillFactory.getSkill(4111001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211005).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211003).getEffect(20).applyTo(mch);  
                        mch.setHp(mch.getMaxHp());
                   mch.updateSingleStat(MapleStat.HP, mch.getMaxHp());
                   mch.setMp(mch.getMaxMp());
                   mch.updateSingleStat(MapleStat.MP, mch.getMaxMp());
                        }}
                                                }
else if (splitted[0].equals("!buffme")) {
                            //gm skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(player);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(player);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(player);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(player);
                          //warrior skills
                        SkillFactory.getSkill(1001003).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(1101007).getEffect(30).applyTo(player);
                        SkillFactory.getSkill(1101006).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(1301006).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(1301007).getEffect(30).applyTo(player);
                        SkillFactory.getSkill(1121000).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(1121002).getEffect(30).applyTo(player);
                          //Mage buffs
                        SkillFactory.getSkill(2001003).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(2001002).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(2101001).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(2301003).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(2321005).getEffect(30).applyTo(player);
                        SkillFactory.getSkill(2321004).getEffect(30).applyTo(player);
                          //bowman buffs
                        SkillFactory.getSkill(3121008).getEffect(30).applyTo(player);
                        SkillFactory.getSkill(3121007).getEffect(30).applyTo(player);
                        SkillFactory.getSkill(3121002).getEffect(30).applyTo(player);
                        SkillFactory.getSkill(3221006).getEffect(30).applyTo(player);
                          //rouge buffs
                        SkillFactory.getSkill(4111001).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(4211005).getEffect(20).applyTo(player);
                        SkillFactory.getSkill(4211003).getEffect(20).applyTo(player);
                        player.setHp(player.getMaxHp());
                   player.updateSingleStat(MapleStat.HP, player.getMaxHp());
                   player.setMp(player.getMaxMp());
                   player.updateSingleStat(MapleStat.MP, player.getMaxMp());
}
else if (splitted[0].equals("!mapbuff")) {
                        for (MapleCharacter mch : c.getPlayer().getMap().getCharacters()) {
                        if (mch != null) {
                            //gm skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                          //warrior skills
                        SkillFactory.getSkill(1001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1101007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1101006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1121000).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1121002).getEffect(30).applyTo(mch);
                          //Mage buffs
                        SkillFactory.getSkill(2001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2001002).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2101001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2301003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2321005).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(2321004).getEffect(30).applyTo(mch);
                          //bowman buffs
                        SkillFactory.getSkill(3121008).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121002).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3221006).getEffect(30).applyTo(mch);
                          //rouge buffs
                        SkillFactory.getSkill(4111001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211005).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211003).getEffect(20).applyTo(mch);
                        mch.setHp(mch.getMaxHp());
                   mch.updateSingleStat(MapleStat.HP, mch.getMaxHp());
                   mch.setMp(mch.getMaxMp());
                   mch.updateSingleStat(MapleStat.MP, mch.getMaxMp());
                        }}
}else if (splitted[0].equals("!mapclassbuff")) {
                         for (MapleCharacter mch : c.getPlayer().getMap().getCharacters()) {
                        //if (mch != null){
                        if (mch.getJob().isA(MapleJob.BEGINNER)) {
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                        } else if (mch.getJob().isA(MapleJob.GM) || mch.getJob().isA(MapleJob.SUPERGM)) {
                         //gm skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                          //warrior skills
                        SkillFactory.getSkill(1001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1101007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1101006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1121000).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1121002).getEffect(30).applyTo(mch);
                          //Mage buffs
                        SkillFactory.getSkill(2001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2001002).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2101001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2301003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2321005).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(2321004).getEffect(30).applyTo(mch);
                          //bowman buffs
                        SkillFactory.getSkill(3121008).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121002).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3221006).getEffect(30).applyTo(mch);
                          //rouge buffs
                        SkillFactory.getSkill(4111001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211005).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211003).getEffect(20).applyTo(mch); 
                        } else if (mch.getJob().isA(MapleJob.WARRIOR) || mch.getJob().isA(MapleJob.PAGE) || mch.getJob().isA(MapleJob.FIGHTER) || mch.getJob().isA(MapleJob.SPEARMAN) || mch.getJob().isA(MapleJob.WHITEKNIGHT) || mch.getJob().isA(MapleJob.CRUSADER) || mch.getJob().isA(MapleJob.DRAGONKNIGHT) || mch.getJob().isA(MapleJob.PALADIN) || mch.getJob().isA(MapleJob.HERO) || mch.getJob().isA(MapleJob.DARKKNIGHT)) {
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                          //warrior skills
                        SkillFactory.getSkill(1001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1101007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1101006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1121000).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1121002).getEffect(30).applyTo(mch);
                        } else if (mch.getJob().isA(MapleJob.MAGICIAN) || mch.getJob().isA(MapleJob.CLERIC) || mch.getJob().isA(MapleJob.FP_WIZARD) || mch.getJob().isA(MapleJob.IL_WIZARD) || mch.getJob().isA(MapleJob.PRIEST) || mch.getJob().isA(MapleJob.FP_MAGE) || mch.getJob().isA(MapleJob.IL_MAGE) || mch.getJob().isA(MapleJob.BISHOP) || mch.getJob().isA(MapleJob.FP_ARCHMAGE) || mch.getJob().isA(MapleJob.IL_ARCHMAGE)) {
                            //GM Skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                            //Mage Buffs
                        SkillFactory.getSkill(2001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2001002).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2101001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2301003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2321005).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(2321004).getEffect(30).applyTo(mch);
                        } else if (mch.getJob().isA(MapleJob.BOWMAN) || mch.getJob().isA(MapleJob.HUNTER) || mch.getJob().isA(MapleJob.CROSSBOWMAN) || mch.getJob().isA(MapleJob.RANGER) || mch.getJob().isA(MapleJob.SNIPER) || mch.getJob().isA(MapleJob.BOWMASTER) || mch.getJob().isA(MapleJob.CROSSBOWMASTER)) {
                            //GM Skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                        //Bowman Buffs
                        SkillFactory.getSkill(3121008).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121002).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3221006).getEffect(30).applyTo(mch);
                        } else if (mch.getJob().isA(MapleJob.THIEF) || mch.getJob().isA(MapleJob.ASSASSIN) || mch.getJob().isA(MapleJob.BANDIT) || mch.getJob().isA(MapleJob.HERMIT) || mch.getJob().isA(MapleJob.CHIEFBANDIT) || mch.getJob().isA(MapleJob.NIGHTLORD) || mch.getJob().isA(MapleJob.SHADOWER)) {
                        //GM Skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                        //Rouge Buffs
                        SkillFactory.getSkill(4111001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211005).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211003).getEffect(20).applyTo(mch);
                        mch.setHp(mch.getMaxHp());
                   mch.updateSingleStat(MapleStat.HP, mch.getMaxHp());
                   mch.setMp(mch.getMaxMp());
                   mch.updateSingleStat(MapleStat.MP, mch.getMaxMp());
                        }
                         }
}else if (splitted[0].equals("!worldclassbuff")) {
                        for (MapleCharacter mch : cserv.getPlayerStorage().getAllCharacters()){
                        //if (mch != null){
                        if (mch.getJob().isA(MapleJob.BEGINNER)) {
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                        } else if (mch.getJob().isA(MapleJob.WARRIOR) || mch.getJob().isA(MapleJob.PAGE) || mch.getJob().isA(MapleJob.FIGHTER) || mch.getJob().isA(MapleJob.SPEARMAN) || mch.getJob().isA(MapleJob.WHITEKNIGHT) || mch.getJob().isA(MapleJob.CRUSADER) || mch.getJob().isA(MapleJob.DRAGONKNIGHT) || mch.getJob().isA(MapleJob.PALADIN) || mch.getJob().isA(MapleJob.HERO) || mch.getJob().isA(MapleJob.DARKKNIGHT)) {
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                          //warrior skills
                        SkillFactory.getSkill(1001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1101007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1101006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301006).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1301007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(1121000).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(1121002).getEffect(30).applyTo(mch);
                        } else if (mch.getJob().isA(MapleJob.MAGICIAN) || mch.getJob().isA(MapleJob.CLERIC) || mch.getJob().isA(MapleJob.FP_WIZARD) || mch.getJob().isA(MapleJob.IL_WIZARD) || mch.getJob().isA(MapleJob.PRIEST) || mch.getJob().isA(MapleJob.FP_MAGE) || mch.getJob().isA(MapleJob.IL_MAGE) || mch.getJob().isA(MapleJob.BISHOP) || mch.getJob().isA(MapleJob.FP_ARCHMAGE) || mch.getJob().isA(MapleJob.IL_ARCHMAGE)) {
                            //GM Skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                            //Mage Buffs
                        SkillFactory.getSkill(2001003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2001002).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2101001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2301003).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(2321005).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(2321004).getEffect(30).applyTo(mch);
                        } else if (mch.getJob().isA(MapleJob.BOWMAN) || mch.getJob().isA(MapleJob.HUNTER) || mch.getJob().isA(MapleJob.CROSSBOWMAN) || mch.getJob().isA(MapleJob.RANGER) || mch.getJob().isA(MapleJob.SNIPER) || mch.getJob().isA(MapleJob.BOWMASTER) || mch.getJob().isA(MapleJob.CROSSBOWMASTER)) {
                            //GM Skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                        //Bowman Buffs
                        SkillFactory.getSkill(3121008).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121007).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3121002).getEffect(30).applyTo(mch);
                        SkillFactory.getSkill(3221006).getEffect(30).applyTo(mch);
                        } else if (mch.getJob().isA(MapleJob.THIEF) || mch.getJob().isA(MapleJob.ASSASSIN) || mch.getJob().isA(MapleJob.BANDIT) || mch.getJob().isA(MapleJob.HERMIT) || mch.getJob().isA(MapleJob.CHIEFBANDIT) || mch.getJob().isA(MapleJob.NIGHTLORD) || mch.getJob().isA(MapleJob.SHADOWER)) {
                        //GM Skills
                        SkillFactory.getSkill(5001000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101003).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101000).getEffect(1).applyTo(mch);
                        SkillFactory.getSkill(5101002).getEffect(1).applyTo(mch);
                        //Rouge Buffs
                        SkillFactory.getSkill(4111001).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211005).getEffect(20).applyTo(mch);
                        SkillFactory.getSkill(4211003).getEffect(20).applyTo(mch);
                        mch.setHp(mch.getMaxHp());
                   mch.updateSingleStat(MapleStat.HP, mch.getMaxHp());
                   mch.setMp(mch.getMaxMp());
                   mch.updateSingleStat(MapleStat.MP, mch.getMaxMp());
                        }
                         }
}
                        //end buff commands
 
Junior Spellweaver
Joined
Mar 21, 2008
Messages
169
Reaction score
0
What do I do with this? I am okay with npc's but I have never added commands before. So help would be appreciated. Either here or on msn. ddrtrixter@hotmail.com

Copy the commands i listed and Paste them into commandprocessor.java Make sure your putting them into the correct place and not into a current statement, make them have its own beginning statement.
 
Newbie Spellweaver
Joined
Sep 28, 2008
Messages
62
Reaction score
0
Copy the commands i listed and Paste them into commandprocessor.java Make sure your putting them into the correct place and not into a current statement, make them have its own beginning statement.

Like I said I have not done this before. So I am going to need more help than this. I added you on msn so yeah....=)
 
Junior Spellweaver
Joined
Oct 8, 2008
Messages
114
Reaction score
0
Brilliant!

*writes down all info*
*runs away laughing, "I gots it" *
<3
Adding to my server

((yes, i know, i'm weird.))
 
&#12484;
Loyal Member
Joined
Apr 12, 2008
Messages
729
Reaction score
28
Pretty sad that you would steal the commands that bas made.....oh well.
 
Elite Diviner
Joined
Aug 27, 2008
Messages
432
Reaction score
0
Pretty good commands, less effort then using an NPC =)
 
Back
Top