Avenger 15 Опубликовано 18 сентября, 2016 (изменено) Нужна помощь не могу понять где сделать в скрипте, чтобы баф вешался сразу. А не в течений 10 сек... Скрипт: package services.community; import core.commons.threading.RunnableImpl;import core.gameserver.Config;import core.gameserver.ThreadPoolManager;import core.gameserver.cache.Msg;import core.gameserver.data.htm.HtmCache;import core.gameserver.database.mysql;import core.gameserver.handler.bbs.CommunityBoardManager;import core.gameserver.handler.bbs.ICommunityBoardHandler;import core.gameserver.dao.CommunityBufferDAO;import core.gameserver.model.ManageBbsBuffer;import core.gameserver.model.ManageBbsBuffer.SBufferScheme;import core.gameserver.model.Player;import core.gameserver.model.Summon;import core.gameserver.model.Effect;import core.gameserver.model.Skill;import core.gameserver.model.base.TeamType;import core.gameserver.model.Zone.ZoneType;import core.gameserver.tables.SkillTable;import core.gameserver.skills.effects.EffectTemplate;import core.gameserver.stats.Env;import core.gameserver.network.l2.s2c.ShowBoard;import core.gameserver.scripts.Functions;import core.gameserver.scripts.ScriptFile;import core.gameserver.utils.BbsUtil;import gnu.trove.list.array.TIntArrayList;import java.util.List;import java.util.StringTokenizer;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class ManageBuffer extends Functions implements ScriptFile, ICommunityBoardHandler {static final Logger _log = LoggerFactory.getLogger(ManageBuffer.class);private int time = Config.COMMUNITYBOARD_BUFF_TIME;@Overridepublic void onLoad(){if(Config.COMMUNITYBOARD_ENABLED){_log.info("CommunityBoard: Buffer Community service loaded.");CommunityBufferDAO.getInstance().select();CommunityBoardManager.getInstance().registerHandler(this);}}@Overridepublic void onReload(){if(Config.COMMUNITYBOARD_ENABLED){ManageBbsBuffer.getSchemeList().clear();CommunityBoardManager.getInstance().removeHandler(this);}}@Overridepublic void onShutdown(){}@Overridepublic String[] getBypassCommands(){return new String[] {"_cbbsbuff","_cbbsbaim","_cbbsbsingle","_cbbsbsave","_cbbsbrestore","_cbbsbdelete","_cbbsbregen","_cbbsbcansel","_cbbsblist"};}@Overridepublic void onBypassCommand(Player player, String bypass){if(!CheckCondition(player))return;if(bypass.startsWith("_cbbsbuff")){StringTokenizer st2 = new StringTokenizer(bypass, ";");String[] mBypass = st2.nextToken().split(":");ShowHtml(mBypass.length == 1 ? "index" : mBypass[1], player);}if(bypass.startsWith("_cbbsblist")){if(!CheckCondition(player))return;StringTokenizer st2 = new StringTokenizer(bypass, ";");String[] mBypass = st2.nextToken().split(":");int pice = 0;if (Config.COMMUNITYBOARD_BOARD_ALT_ENABLED){if(player.getLevel() < 20)pice = Config.COMMUNITYBOARD_BUFF_PICE_NG_GR;else if (player.getLevel() >= 20 && player.getLevel() <40)pice = Config.COMMUNITYBOARD_BUFF_PICE_D_GR;else if (player.getLevel() >= 40 && player.getLevel() <52)pice = Config.COMMUNITYBOARD_BUFF_PICE_C_GR;else if (player.getLevel() >= 52 && player.getLevel() <61)pice = Config.COMMUNITYBOARD_BUFF_PICE_B_GR;else if (player.getLevel() >= 61 && player.getLevel() <76)pice = Config.COMMUNITYBOARD_BUFF_PICE_A_GR;else if (player.getLevel() >= 76 && player.getLevel() <80)pice = Config.COMMUNITYBOARD_BUFF_PICE_S_GR;else if (player.getLevel() >= 80 && player.getLevel() <84)pice = Config.COMMUNITYBOARD_BUFF_PICE_S80_GR;elsepice = Config.COMMUNITYBOARD_BUFF_PICE_S84_GR;}elsepice = Config.COMMUNITYBOARD_BUFF_PICE * (mBypass[1].startsWith("mage") ? Config.COMMUNITI_LIST_MAGE_SUPPORT.size() : Config.COMMUNITI_LIST_FIGHTER_SUPPORT.size());if(player.getAdena() < pice){player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);return;}if(!player.antiFlood.canUseCommBuff()){player.sendMessage(player.isLangRus() ? "Баффер перезаряжается." : "Buffer recharged.");return;}GroupBuff(player, mBypass[1].startsWith("mage") ? Config.COMMUNITI_LIST_MAGE_SUPPORT : Config.COMMUNITI_LIST_FIGHTER_SUPPORT);player.reduceAdena(pice, true);ShowHtml(mBypass[2], player);}else if(bypass.startsWith("_cbbsbsingle")){if(!CheckCondition(player))return;StringTokenizer st2 = new StringTokenizer(bypass, ";");String[] mBypass = st2.nextToken().split(":");Summon pet = player.getPet();int id = Integer.parseInt(mBypass[1]);int lvl = Integer.parseInt(mBypass[2]);int pice = 0;if (Config.COMMUNITYBOARD_BOARD_ALT_ENABLED){if (player.getLevel() < 20)pice = Config.COMMUNITYBOARD_BUFF_PICE_NG;else if (player.getLevel() >= 20 && player.getLevel() <40)pice = Config.COMMUNITYBOARD_BUFF_PICE_D;else if (player.getLevel() >= 40 && player.getLevel() <52)pice = Config.COMMUNITYBOARD_BUFF_PICE_C;else if (player.getLevel() >= 52 && player.getLevel() <61)pice = Config.COMMUNITYBOARD_BUFF_PICE_B;else if (player.getLevel() >= 61 && player.getLevel() <76)pice = Config.COMMUNITYBOARD_BUFF_PICE_A;else if (player.getLevel() >= 76 && player.getLevel() <80)pice = Config.COMMUNITYBOARD_BUFF_PICE_S;else if (player.getLevel() >= 80 && player.getLevel() <84)pice = Config.COMMUNITYBOARD_BUFF_PICE_S80;elsepice = Config.COMMUNITYBOARD_BUFF_PICE_S84;}elsepice = Config.COMMUNITYBOARD_BUFF_PICE;String page = mBypass[3];if(player.getAdena() < pice){player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);return;}if(!Config.COMMUNITYBOARD_BUFF_ALLOW.contains(id)){if (player.isLangRus())player.sendMessage("Недопустимый эффект!");elseplayer.sendMessage("Invalid effect!");ShowHtml(page, player);return;}boolean targetIsPet = false;if(!player.getVarB("isPlayerBuff"))targetIsPet = true;List effects;if(targetIsPet && pet != null)effects = pet.getEffectList().getAllEffects();elseeffects = player.getEffectList().getAllEffects();boolean itIsAncient = false;Skill skill = SkillTable.getInstance().getInfo(id, lvl);setTime(skill);for(EffectTemplate et : skill.getEffectTemplates()){if(et._stackType.equalsIgnoreCase("ancient"))itIsAncient = true;}if(!effects.isEmpty()){for(Effect e : effects)if(e.getStackType().equalsIgnoreCase("ancient") && itIsAncient){int skillId = e.getSkill().getId();if(targetIsPet && pet != null)pet.getEffectList().stopEffect(skillId);elseplayer.getEffectList().stopEffect(skillId);}}if(targetIsPet && pet != null){for(EffectTemplate et : skill.getEffectTemplates()){Env env = new Env(pet, pet, skill);Effect effect = et.getEffect(env);effect.setPeriod(time);pet.getEffectList().addEffect(effect);pet.updateStats();pet.sendChanges();pet.updateEffectIcons();}}else{for(EffectTemplate et : skill.getEffectTemplates()){Env env = new Env(player, player, skill);Effect effect = et.getEffect(env);effect.setPeriod(time);player.getEffectList().addEffect(effect);player.sendChanges();player.updateEffectIcons();player.updateEffectIconsImpl();}}player.reduceAdena(pice, true);ShowHtml(page, player);}else if(bypass.startsWith("_cbbsbaim")){StringTokenizer st2 = new StringTokenizer(bypass, ";");String[] mBypass = st2.nextToken().split(":");player.setVar("isPlayerBuff", player.getVarB("isPlayerBuff") ? "0" : "1", -1);ShowHtml(mBypass[1], player);}else if(bypass.startsWith("_cbbsbregen")){if(!CheckCondition(player))return;StringTokenizer st2 = new StringTokenizer(bypass, ";");String[] mBypass = st2.nextToken().split(":");int pice = 0;if (Config.COMMUNITYBOARD_BOARD_ALT_ENABLED){if (player.getLevel() < 20)pice = Config.COMMUNITYBOARD_BUFF_PICE_NG;else if (player.getLevel() >= 20 && player.getLevel() <40)pice = Config.COMMUNITYBOARD_BUFF_PICE_D;else if (player.getLevel() >= 40 && player.getLevel() <52)pice = Config.COMMUNITYBOARD_BUFF_PICE_C;else if (player.getLevel() >= 52 && player.getLevel() <61)pice = Config.COMMUNITYBOARD_BUFF_PICE_B;else if (player.getLevel() >= 61 && player.getLevel() <76)pice = Config.COMMUNITYBOARD_BUFF_PICE_A;else if (player.getLevel() >= 76 && player.getLevel() <80)pice = Config.COMMUNITYBOARD_BUFF_PICE_S;else if (player.getLevel() >= 80 && player.getLevel() <84)pice = Config.COMMUNITYBOARD_BUFF_PICE_S80;elsepice = Config.COMMUNITYBOARD_BUFF_PICE_S84;}elsepice = Config.COMMUNITYBOARD_BUFF_PICE;if(player.getAdena() < pice * 10){player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);return;}if((player.getPvpFlag() != 0 || player.getKarma() > 0)){if (player.isLangRus())player.sendMessage("Недоступно для игроков в состоянии PvP или PK.");elseplayer.sendMessage("It is not available to players in PvP or PK.");ShowHtml(mBypass[1], player);return;}if(!player.getVarB("isPlayerBuff") && player.getPet() != null){player.getPet().setCurrentHpMp(player.getPet().getMaxHp(), player.getPet().getMaxMp());player.getPet().setCurrentCp(player.getPet().getMaxCp());}else{player.setCurrentHpMp(player.getMaxHp(), player.getMaxMp());player.setCurrentCp(player.getMaxCp());}player.reduceAdena(pice * 10, true);ShowHtml(mBypass[1], player);}else if(bypass.startsWith("_cbbsbcansel")){StringTokenizer st2 = new StringTokenizer(bypass, ";");String[] mBypass = st2.nextToken().split(":");if(!player.getVarB("isPlayerBuff") && player.getPet() != null){if(player.getEffectList().getEffectsBySkillId(Skill.SKILL_RAID_CURSE) == null)player.getPet().getEffectList().stopAllEffects();}elseif(player.getEffectList().getEffectsBySkillId(Skill.SKILL_RAID_CURSE) == null)player.getEffectList().stopAllEffects();ShowHtml(mBypass[1], player);}else if(bypass.startsWith("_cbbsbsave")){if(!CheckCondition(player))return;StringTokenizer st2 = new StringTokenizer(bypass, ";");String[] mBypass = st2.nextToken().split(":");try{String name = mBypass[2].substring(1);SBufferScheme scheme = new SBufferScheme();if(ManageBbsBuffer.getCountOnePlayer(player.getObjectId()) >= 3){if(player.isLangRus())player.sendMessage("Превышено максимально допустимое количество схем!");elseplayer.sendMessage("Exceeded the number of schemes!");ShowHtml(mBypass[1], player);return;}if(ManageBbsBuffer.existName(player.getObjectId(), name)){if(player.isLangRus())player.sendMessage("Схема с таким названием уже существует!");elseplayer.sendMessage("Scheme with that name already exists!");ShowHtml(mBypass[1], player);return;}if(name.length() > 15)name = name.substring(0, 15);if(name.length() > 0){Integer MaxIdInDB = (Integer) mysql.get("SELECT MAX(schameid) FROM bbs_skillsave");scheme.obj_id = player.getObjectId();if(MaxIdInDB != null)scheme.id = MaxIdInDB.intValue() + 1;elsescheme.id = 1;scheme.name = name;List effects = player.getEffectList().getAllEffects();TIntArrayList skillIds = new TIntArrayList();for(Effect e : effects){int skillId = e.getSkill().getId();if(Config.COMMUNITYBOARD_BUFF_ALLOW.contains(skillId) && !skillIds.contains(skillId)){skillIds.add(skillId);scheme.skills_id.add(skillId);}}skillIds.clear();CommunityBufferDAO.getInstance().insert(scheme, player);}}catch(ArrayIndexOutOfBoundsException e){player.sendMessage(player.isLangRus() ? "Вы не ввели имя для сохранения!" : "You did not enter a name to save!");return;}ShowHtml(mBypass[1], player);}else if(bypass.startsWith("_cbbsbdelete")){StringTokenizer st2 = new StringTokenizer(bypass, ";");String[] mBypass = st2.nextToken().split(":");CommunityBufferDAO.getInstance().delete(ManageBbsBuffer.getSchemeById(Integer.parseInt(mBypass[1]), player.getObjectId()));ShowHtml(mBypass[3], player);}else if(bypass.startsWith("_cbbsbrestore")){if(!CheckCondition(player))return;StringTokenizer st2 = new StringTokenizer(bypass, ";");String[] mBypass = st2.nextToken().split(":");int pice = 0;if (Config.COMMUNITYBOARD_BOARD_ALT_ENABLED){if (player.getLevel() < 20)pice = Config.COMMUNITYBOARD_BUFF_PICE_NG_GR;else if (player.getLevel() >= 20 && player.getLevel() <40)pice = Config.COMMUNITYBOARD_BUFF_PICE_D_GR;else if (player.getLevel() >= 40 && player.getLevel() <52)pice = Config.COMMUNITYBOARD_BUFF_PICE_C_GR;else if (player.getLevel() >= 52 && player.getLevel() <61)pice = Config.COMMUNITYBOARD_BUFF_PICE_B_GR;else if (player.getLevel() >= 61 && player.getLevel() <76)pice = Config.COMMUNITYBOARD_BUFF_PICE_A_GR;else if (player.getLevel() >= 76 && player.getLevel() <80)pice = Config.COMMUNITYBOARD_BUFF_PICE_S_GR;else if (player.getLevel() >= 80 && player.getLevel() <84)pice = Config.COMMUNITYBOARD_BUFF_PICE_S80_GR;elsepice = Config.COMMUNITYBOARD_BUFF_PICE_S84_GR;}elsepice = Config.COMMUNITYBOARD_BUFF_SAVE_PICE;if(player.getAdena() < pice){player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);ShowHtml(mBypass[3], player);return;}if(!player.antiFlood.canUseCommBuff()){player.sendMessage(player.isLangRus() ? "Баффер перезаряжается." : "Buffer recharged.");return;}SBufferScheme scheme = ManageBbsBuffer.getSchemeById(Integer.parseInt(mBypass[1]), player.getObjectId());GroupBuff(player, scheme.skills_id);player.reduceAdena(pice, true);ShowHtml(mBypass[3], player);}}@Overridepublic void onWriteCommand(Player player, String bypass, String arg1, String arg2, String arg3, String arg4, String arg5){}private void ShowHtml(String name, Player player){String html = HtmCache.getInstance().getNotNull(Config.BBS_HOME_DIR + "pages/buffer/" + name + ".htm", player);if (player.isLangRus())html = html.replaceFirst("%aim%", player.getVarB("isPlayerBuff") ? "Персонаж" : "Питомец");elsehtml = html.replaceFirst("%aim%", player.getVarB("isPlayerBuff") ? "Character" : "Pet");if (Config.COMMUNITYBOARD_BOARD_ALT_ENABLED){if (player.getLevel() < 20)html = html.replace("%pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_NG));else if (player.getLevel() >= 20 && player.getLevel() <40)html = html.replace("%pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_D));else if (player.getLevel() >= 40 && player.getLevel() <52)html = html.replace("%pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_C));else if (player.getLevel() >= 52 && player.getLevel() <61)html = html.replace("%pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_ );else if (player.getLevel() >= 61 && player.getLevel() <76)html = html.replace("%pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_A));else if (player.getLevel() >= 76 && player.getLevel() <80)html = html.replace("%pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_S));else if (player.getLevel() >= 80 && player.getLevel() <84)html = html.replace("%pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_S80));elsehtml = html.replace("%pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_S84));}elsehtml = html.replace("%pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE));if (Config.COMMUNITYBOARD_BOARD_ALT_ENABLED){if (player.getLevel() < 20)html = html.replace("%group_pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_NG_GR));else if (player.getLevel() >= 20 && player.getLevel() <40)html = html.replace("%group_pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_D_GR));else if (player.getLevel() >= 40 && player.getLevel() <52)html = html.replace("%group_pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_C_GR));else if (player.getLevel() >= 52 && player.getLevel() <61)html = html.replace("%group_pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_B_GR));else if (player.getLevel() >= 61 && player.getLevel() <76)html = html.replace("%group_pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_A_GR));else if (player.getLevel() >= 76 && player.getLevel() <80)html = html.replace("%group_pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_S_GR));else if (player.getLevel() >= 80 && player.getLevel() <84)html = html.replace("%group_pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_S80_GR));elsehtml = html.replace("%group_pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_PICE_S84_GR));}elsehtml = html.replace("%group_pice%", GetStringCount(Config.COMMUNITYBOARD_BUFF_SAVE_PICE));StringBuilder content = new StringBuilder("");content.append("");for(SBufferScheme sm : ManageBbsBuffer.getSchemePlayer(player.getObjectId())){content.append("");content.append("");content.append("");content.append("");}content.append("");content.append("content.append(" ");content.append("content.append(" ");html = html.replace("%list_sheme%", content.toString());html = BbsUtil.htmlBuff(html, player);ShowBoard.separateAndSend(html, player);}private void GroupBuff(Player player, List list){if(!CheckCondition(player))return;Summon pet = player.getPet();boolean targetIsPet = false;if(!player.getVarB("isPlayerBuff"))targetIsPet = true;List effects;if(targetIsPet && pet != null)effects = pet.getEffectList().getAllEffects();elseeffects = player.getEffectList().getAllEffects();boolean itIsAncient = false;int launchTaskTime = 0;for(int i : list){int lvl = SkillTable.getInstance().getBaseLevel(i);if(!Config.COMMUNITYBOARD_BUFF_ALLOW.contains(i))continue;Skill skill = SkillTable.getInstance().getInfo(i, lvl);for(EffectTemplate et : skill.getEffectTemplates()){if(et._stackType.equalsIgnoreCase("ancient"))itIsAncient = true;launchTaskTime = launchTaskTime + 200;ThreadPoolManager.getInstance().schedule(new AddEffectTask(player, targetIsPet, et, skill), launchTaskTime);}}if(!effects.isEmpty()){for(Effect e : effects)if(e.getStackType().equalsIgnoreCase("ancient") && itIsAncient){int skillId = e.getSkill().getId();if(targetIsPet && pet != null)pet.getEffectList().stopEffect(skillId);elseplayer.getEffectList().stopEffect(skillId);}}}private static class AddEffectTask extends RunnableImpl{private final Player player;private final Summon pet;private final EffectTemplate et;private final Skill skill;private final int time = Config.COMMUNITYBOARD_BUFF_TIME;private final int time_dance_song = Config.COMMUNITYBOARD_BUFF_SONGDANCE_TIME;private boolean targetIsPet;public AddEffectTask(Player _player, boolean _targetIsPet, EffectTemplate _et, Skill _skill){player = _player;targetIsPet = _targetIsPet;et = _et;pet = _player.getPet();skill = _skill;}@Overridepublic void runImpl(){if(!CheckCondition(player))return;if(targetIsPet && pet != null){Env env = new Env(pet, pet, skill);Effect effect = et.getEffect(env);if(skill.isMusic())effect.setPeriod(time_dance_song);elseeffect.setPeriod(time);pet.getEffectList().addEffect(effect);}else{Env env = new Env(player, player, skill);Effect effect = et.getEffect(env);if(skill.isMusic())effect.setPeriod(time_dance_song);elseeffect.setPeriod(time);player.getEffectList().addEffect(effect);player.sendChanges();}}}private static boolean CheckCondition(Player player){if(player == null)return false;if(player.isDead())return false;if(Config.COMMUNITYBOARD_BUFFER_MAX_LVL_ALLOW && player.getLevel() > Config.COMMUNITYBOARD_BUFFER_MAX_LVL){player.sendMessage(player.isLangRus() ? "Вам запрещено пользоваться этой функцией." : "You are not allowed to use this feature.");return false;}if(!Config.USE_BBS_BUFER_IS_CURSE_WEAPON && player.isCursedWeaponEquipped()){player.sendMessage(player.isLangRus() ? "Вам запрещено пользоваться этой функцией." : "You are not allowed to use this feature.");return false;}if (!Config.COMMUNITYBOARD_BUFFER_ENABLED){if(player.isLangRus())player.sendMessage("Функция баффа отключена.");elseplayer.sendMessage("Buff off function.");return false;}if(!Config.USE_BBS_BUFER_IS_COMBAT && (player.isInDuel() || player.isInCombat() || player.isAttackingNow())){if(player.isLangRus())player.sendMessage("Во время боя нельзя использовать данную функцию.");elseplayer.sendMessage("During combat, you can not use this feature.");return false;}if (player.isInOlympiadMode()){if(player.isLangRus())player.sendMessage("Во время Олимпиады нельзя использовать данную функцию.");elseplayer.sendMessage("During the Olympics you can not use this feature.");return false;}if (player.getReflection().getId() != 0 && !Config.COMMUNITYBOARD_INSTANCE_ENABLED){if(player.isLangRus())player.sendMessage("Бафф доступен только в обычном мире.");elseplayer.sendMessage("Buff is only available in the real world.");return false;}if (!Config.COMMUNITYBOARD_EVENTS_ENABLED){if(player.getTeam() != TeamType.NONE){if (player.isLangRus())player.sendMessage("Нельзя использовать бафф во время эвентов.");elseplayer.sendMessage("You can not use the buff during Events.");return false;}}if(!Config.COMMUNITYBOARD_BUFFER_SIEGE_ENABLED && player.isInZone(ZoneType.SIEGE)){if(player.isLangRus())player.sendMessage("В зоне, находящейся в осаде, использовать телепорт запрещено.");elseplayer.sendMessage("In the zone, located in the siege, use the teleport is prohibited.");return false;}if(!Config.COMMUNITYBOARD_BUFFER_NO_IS_IN_PEACE_ENABLED && !player.isInPeaceZone()){player.sendMessage(player.isLangRus() ? "Эта функция доступна только в мирной зоне!" : "This feature is only available in a peaceful area!");return false;}return true;}private void setTime(Skill skill){if(skill.getId() == 1356 || skill.getId() == 4699 || skill.getId() == 4700 ||skill.getId() == 4702 || skill.getId() == 4703 || skill.getId() == 1363 ||skill.getId() == 1355 || skill.getId() == 1357)time = Config.COMMUNITYBOARD_BUFF_PETS_TIME;else if(skill.getId() >= 1499 && skill.getId() <= 1504)time = Config.COMMUNITYBOARD_BUFF_COMBO_TIME;else if(skill.isMusic())time = Config.COMMUNITYBOARD_BUFF_SONGDANCE_TIME;elsetime = Config.COMMUNITYBOARD_BUFF_TIME;}} Изменено 18 сентября, 2016 пользователем Avenger Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Khrome 276 Опубликовано 19 сентября, 2016 Попробуйте вот так: Выкинуть сборку гринда. Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Rollfer 188 Опубликовано 19 сентября, 2016 launchTaskTime = launchTaskTime + 200; Если это оно, то на 24 бафа примерно до 5 сек получается Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты