Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/Schemebuffer.java
- @Override
- public void onBypassFeedback(L2PcInstance player, String command)
- + else if (currentCommand.equalsIgnoreCase("getbuff"))
- + {
- + int buffid = 0;
- + int bufflevel = 1;
- + String nextWindow = null;
- +
- + if (st.countTokens() == 3)
- + {
- + buffid = Integer.valueOf(st.nextToken());
- + bufflevel = Integer.valueOf(st.nextToken());
- + nextWindow = st.nextToken();
- + }
- + else if (st.countTokens() == 1)
- + buffid = Integer.valueOf(st.nextToken());
- +
- + if (buffid != 0)
- + {
- + player.broadcastPacket(new MagicSkillUse(this, player, buffid, bufflevel, 5, 0));
- +
- + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.YOU_FEEL_S1_EFFECT).addSkillName(buffid,
- + bufflevel));
- + SkillTable.getInstance().getInfo(buffid, bufflevel).getEffects(this, player);
- + showChatWindow(player);
- + showChatWindow(player, nextWindow);
- + }
- + }
- +
- + else if (currentCommand.equalsIgnoreCase("fbuff"))
- + {
- + player.stopAllEffectsExceptThoseThatLastThroughDeath();
- +
- + for (Integer skillid : Config.FIGHTER_BUFF_LIST)
- + {
- + L2Skill skill = SkillTable.getInstance().getInfo(skillid, SkillTable.getInstance().getMaxLevel(skillid));
- + if (skill != null)
- + skill.getEffects(player, player);
- + }
- +
- + player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
- + player.setCurrentCp(player.getMaxCp());
- + player.sendMessage("You get a Fighter-buff complect.");
- +
- + showChatWindow(player);
- + }
- +
- +
- + else if (currentCommand.equalsIgnoreCase("mbuff"))
- + {
- + player.stopAllEffectsExceptThoseThatLastThroughDeath();
- +
- + for (Integer skillid : Config.MAGE_BUFF_LIST)
- + {
- + L2Skill skill = SkillTable.getInstance().getInfo(skillid, SkillTable.getInstance().getMaxLevel(skillid));
- + if (skill != null)
- + skill.getEffects(player, player);
- + }
- +
- + player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
- + player.setCurrentCp(player.getMaxCp());
- + player.sendMessage("You get a Mage-buff complect.");
- +
- + showChatWindow(player);
- + }
- +
- +
- +
- +
- + else if (currentCommand.startsWith("cleanup"))
- + {
- + player.broadcastPacket(new MagicSkillUse(this, player, 1056, 12, 100, 0));
- + player.stopAllEffectsExceptThoseThatLastThroughDeath();
- +
- + final Summon summon = player.getPet();
- + if (summon != null)
- + summon.stopAllEffectsExceptThoseThatLastThroughDeath();
- +
- + NpcHtmlMessage html = new NpcHtmlMessage(1);
- + html.setFile(getHtmlPath(getNpcId(), 0));
- + html.replace("%objectId%", getObjectId());
- + player.sendPacket(html);
- + }
- +
- +
- + else if (currentCommand.startsWith("heal"))
- + {
- + player.broadcastPacket(new MagicSkillUse(this, player, 1218, 33, 100, 0));
- +
- + player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());
- + player.setCurrentCp(player.getMaxCp());
- +
- + final Summon summon = player.getPet();
- + if (summon != null)
- + summon.setCurrentHpMp(summon.getMaxHp(), summon.getMaxMp());
- +
- + NpcHtmlMessage html = new NpcHtmlMessage(1);
- + html.setFile(getHtmlPath(getNpcId(), 0));
- + html.replace("%objectId%", getObjectId());
- + player.sendPacket(html);
- + }
- +
- +
- +++ b/aCis_gameserver\java\net\sf\l2j\config.java
- + public static String FIGHTER_BUFF;
- + public static ArrayList<Integer> FIGHTER_BUFF_LIST = new ArrayList<>();
- + public static String MAGE_BUFF;
- + public static ArrayList<Integer> MAGE_BUFF_LIST = new ArrayList<>();
- + FIGHTER_BUFF = npcs.getProperty("FighterBuffList", "0");
- + FIGHTER_BUFF_LIST = new ArrayList<>();
- + for (String id : FIGHTER_BUFF.trim().split(","))
- + {
- + FIGHTER_BUFF_LIST.add(Integer.parseInt(id.trim()));
- + }
- + MAGE_BUFF = npcs.getProperty("MageBuffList", "0");
- + MAGE_BUFF_LIST = new ArrayList<>();
- + for (String id : MAGE_BUFF.trim().split(","))
- + {
- + MAGE_BUFF_LIST.add(Integer.parseInt(id.trim()));
- +}
- #=============================================================
- # Buffer
- #=============================================================
- # Auto buffer for fighter
- FighterBuffList = 1204,1068,1040,1035,1036,1045,1086,1077,1242,264,267,268,269,304,271,274,275,1363,1388,4699,270,306,308,307,1392,1393,1352,1353,1354,1323
- # Auto buffer for mage
- MageBuffList = 1204,1040,1035,1045,1036,1303,1085,1059,1078,1062,1243,264,267,268,304,349,273,276,365,1413,1391,4703,1270,306,308,307,1392,1393,1352,1353,1354,1323
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement