-
Публикаций
1673 -
Зарегистрирован
-
Посещение
-
Победитель дней
9 -
Отзывы
0%
Тип контента
Профили
Форумы
Загрузки
Магазин
Инструкции
Весь контент P1ckw1ck
-
или я дурак или что, пишет ошибку.
-
вставляю и ошибку пишет player.setFactionId(val); player.setTitle(val==1?Config.FACTION_TEAM1_NAME;Config.FACTION_TEAM2_NAME); player.broadcastUserInfo(); if (player.getLevel() < 5) player.addExpAndSp(Experience.LEVEL[Config.FACTION_START_LVL], 0); player.sendPacket(new TutorialCloseHtml()); } }
-
Доброе утро всем. Вчера с человечком сделали анонс здаровья у рб когда его бьют. но что-то не угледел я, и получилось вот так. Как убрать милипроцент в анонсе. И что-бы одним сообщением показывало его хп. В чем мб проблема? сам код. public void reduceCurrentHp(double damage, L2Character attacker, boolean awake, boolean isDOT, L2Skill skill) { if (((getCurrentHp() <= 290000.D) && (getCurrentHp() >= 294846.D))) { Announcements.getInstance().announceToAll(getName() + " :In Raid Boss to stay healthy " + getCurrentHp()); } if (((getCurrentHp() <= 40000) && (getCurrentHp() >= 39000))) { Announcements.getInstance().announceToAll(getName() + " :In Raid Boss to stay healthy " + getCurrentHp()); } super.reduceCurrentHp(damage, attacker, awake, isDOT, skill); } Буду блогодарен если наталкнете на правильный путь. Сборка aCis
-
В последней фиксов много, а в 2013 дюпов, багов по боля.
-
Этого я не знаю=) но я бы тоже не отказался от такой плюхе.
-
Мне наоборот по приколу гве делать, времени кучя, не торопясь.
-
Сборка interlude, основа acis приватная ветка[за копейки]
тема ответил P1ckw1ck в теме Сборки серверов
Нод 8 не блочит котов. Если ты про эту защиту. -
Добрый день, интересует такой вопрос. Как можно открыть ворота в фортах что-бы они не закрывались. Через шифт+клик открываю, После рестарта они закрываются. Сборка acis+исходы. Буду блогодарен.
-
Не хватало Announcements.getInstance().announceToAll
-
Добрый день, ставил данный скрипт на фатумов. все работало. ставлю на ацис ГВЕ. Гс ругается. Подскажите что не так Сам скрипт package custom.NpcScriptThree; import net.sf.l2j.gameserver.Announcements; import net.sf.l2j.gameserver.model.actor.L2Npc; import net.sf.l2j.gameserver.model.quest.Quest; public class NpcScriptThree extends Quest { //Ид боссов private final static int[] BossId = { 25115, 25325 }; public NpcScriptThree(int questId, String name, String descr) { super(questId, name, descr); for (int BossIds : BossId) addSpawnId(BossIds); } @Override public String onSpawn(L2Npc raidboss) { int npcId = raidboss.getNpcId(); for (int id : BossId) if (npcId == id) Announcements.announceToAll("RaidBoss : " + raidboss.getName() + " spawn in the world!"); return super.onSpawn(raidboss); } public static void main(String[] args) { new NpcScriptThree(-1, "NpcScriptThree", "custom"); } }
-
Я только начел ядром заниматся, не знаю как классы в еклипсе сабирать.
-
Мои настройки.
-
Я хочу получить купон!
-
Что нет тех людей которые знают как это изменить?
-
Поставил везде. package net.sf.l2j.gameserver.faction; import java.sql.Connection; import java.sql.PreparedStatement; import net.sf.l2j.Config; import net.sf.l2j.L2DatabaseFactory; import net.sf.l2j.gameserver.model.L2World; import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance; import net.sf.l2j.gameserver.model.base.Experience; import net.sf.l2j.gameserver.network.serverpackets.ActionFailed; import net.sf.l2j.gameserver.network.serverpackets.CreatureSay; import net.sf.l2j.gameserver.network.serverpackets.MagicSkillUse; import net.sf.l2j.gameserver.network.serverpackets.SocialAction; import net.sf.l2j.gameserver.network.serverpackets.TutorialCloseHtml; import net.sf.l2j.gameserver.network.serverpackets.TutorialShowHtml; /** * * @author Erlando */ public class FactionManager { public void showTutorialChooseWindow(L2PcInstance player) { String html = "<html><body><title>Labas</title>Ate suski</body></html>"; player.sendPacket(new TutorialShowHtml(html)); } public void useBypass(L2PcInstance player, String bypass) { if (bypass.startsWith("cf")) { int val = Integer.parseInt(bypass.substring(3)); int team1Supports = L2World.getInstance().getTeam1Supports(); int team2Supports = L2World.getInstance().getTeam2Supports(); int team1Count = L2World.getInstance().getAllteam1Players().size(); int team2Count = L2World.getInstance().getAllteam2Players().size(); if (player.getAdena() >= Config.FACTION_CHANGE_PRICE || player.getFactionId() == 0) { switch (val) { case 1: switch (player.getFactionId()) { case 1: player.sendMessage("Ты и так играешь за " + Config.FACTION_TEAM1_NAME + " фракцию."); player.sendPacket(ActionFailed.STATIC_PACKET); return; case 2: if (team1Count >= team2Count) { player.sendMessage("За фракцию " + Config.FACTION_TEAM1_NAME + " играет много человек."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (Config.FACTION_ENABLE_CLASS_BLNC && (player.getClassId().getId() == 15 || player.getClassId().getId() == 16 || player.getClassId().getId() == 17 || player.getClassId().getId() == 29 || player.getClassId().getId() == 30 || player.getClassId().getId() == 42 || player.getClassId().getId() == 43 || player.getClassId().getId() == 112 || player.getClassId().getId() == 105 || player.getClassId().getId() == 98 || player.getClassId().getId() == 97) && team1Supports > team2Supports) { player.sendMessage("За фракцию " + Config.FACTION_TEAM1_NAME + " играет много саппорт классов. Выбери другую фрацкию."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (!player.isVip()) player.reduceAdena("pay", Config.FACTION_CHANGE_PRICE, player, true); L2World.getInstance().getAllTeam2().remove(player.getName().toLowerCase()); L2World.getInstance().getAllTeam1().put(player.getName().toLowerCase(),player); player.sendMessage("[" + Config.FACTION_TEAM2_NAME + "] Пока-пока, предатель."); player.sendMessage("[" + Config.FACTION_TEAM1_NAME + "] Добро пожаловать к нам."); player.setTitle(Config.FACTION_TEAM1_NAME); break; default: if (team1Count > team2Count) { player.sendMessage("За фракцию " + Config.FACTION_TEAM1_NAME + " играет много человек."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } L2World.getInstance().getAllTeam1().put(player.getName().toLowerCase(),player); player.sendMessage("[" + Config.FACTION_TEAM1_NAME + "] Добро пожаловать в нашу фракцию."); player.setTitle(Config.FACTION_TEAM1_NAME); break; } if (player.getParty() != null) player.getParty().removePartyMember(player); player.getAppearance().setNameColor(Config.FACTION_TEAM1_COLOR); if (!player.isVip()) player.getAppearance().setTitleColor(Config.FACTION_TEAM1_COLOR); else player.getAppearance().setTitleColor(0x00CCFF); player.broadcastUserInfo(); if (Config.FACTION_ENABLE_SPEAKS) { player.broadcastPacket(new CreatureSay(player.getObjectId(), 0, player.getName(), Config.FACTION_TEAM1_PLAYER_VC.replace("%n", player.getName().toString()))); } break; case 2: switch (player.getFactionId()) { case 1: if (team2Count >= team1Count) { player.sendMessage("За фракцию " + Config.FACTION_TEAM2_NAME + " играет много человек."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (Config.FACTION_ENABLE_CLASS_BLNC && (player.getClassId().getId() == 15 || player.getClassId().getId() == 16 || player.getClassId().getId() == 17 || player.getClassId().getId() == 29 || player.getClassId().getId() == 30 || player.getClassId().getId() == 42 || player.getClassId().getId() == 43 || player.getClassId().getId() == 112 || player.getClassId().getId() == 105 || player.getClassId().getId() == 98 || player.getClassId().getId() == 97) && team2Supports > team1Supports) { player.sendMessage("За фракцию " + Config.FACTION_TEAM2_NAME + " играет много саппорт классов. Выбери другую фрацкию."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (!player.isVip()) player.reduceAdena("pay", Config.FACTION_CHANGE_PRICE, player, true); L2World.getInstance().getAllTeam1().remove(player.getName().toLowerCase()); L2World.getInstance().getAllTeam2().put(player.getName().toLowerCase(),player); player.sendMessage("[" + Config.FACTION_TEAM1_NAME + "] Пока-пока, предатель."); player.sendMessage("[" + Config.FACTION_TEAM2_NAME + "] Добро пожаловать в нашу фракцию."); player.setTitle(Config.FACTION_TEAM2_NAME); break; case 2: player.sendMessage("Ты и так играешь за " + Config.FACTION_TEAM2_NAME + " фракцию."); player.sendPacket(ActionFailed.STATIC_PACKET); return; default: if (team2Count > team1Count) { player.sendMessage("За фракцию " + Config.FACTION_TEAM2_NAME + " играет много саппорт классов. Выбери другую фрацкию."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } L2World.getInstance().getAllTeam2().put(player.getName().toLowerCase(),player); player.sendMessage("[" + Config.FACTION_TEAM2_NAME + "] Добро пожаловать в нашу фракцию."); player.setTitle(Config.FACTION_TEAM2_NAME); break; } if (player.getParty() != null) player.getParty().removePartyMember(player); player.getAppearance().setNameColor(Config.FACTION_TEAM2_COLOR); if (!player.isVip()) player.getAppearance().setTitleColor(Config.FACTION_TEAM2_COLOR); else player.getAppearance().setTitleColor(0x00CCFF); player.broadcastUserInfo(); if (Config.FACTION_ENABLE_SPEAKS) { player.broadcastPacket(new CreatureSay(player.getObjectId(), 0, player.getName(), Config.FACTION_TEAM2_PLAYER_VC.replace("%n", player.getName().toString()))); } break; default: return; } } else { player.sendMessage("Не хватает денег для перехода в другую фракцию."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } player.broadcastPacket(new SocialAction(player, 3)); MagicSkillUse MSU = new MagicSkillUse(player, player, 2024, 1, 1, 0); player.broadcastPacket(MSU); Connection connection = null; try { connection = L2DatabaseFactory.getInstance().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE characters SET factionId=? WHERE char_name=?"); statement.setInt(1, val); statement.setString(2, player.getName()); statement.execute(); statement.close(); connection.close(); } catch (Exception e) { System.out.println("Couldn't set player faction:" + val + " " + e); } finally{try{connection.close();}catch (Exception e){}} player.setFactionId(val); player.broadcastUserInfo(); if (player.getLevel() < 5) player.addExpAndSp(Experience.LEVEL[Config.FACTION_START_LVL], 0); player.sendPacket(new TutorialCloseHtml()); } } public static final FactionManager getInstance() { return SingletonHolder._instance; } private static class SingletonHolder { protected static final FactionManager _instance = new FactionManager(); } }
-
Что-то не растет=) L2World.getInstance().getAllTeam1().put(player.getName().toLowerCase(),player); player.sendMessage("[" + Config.FACTION_TEAM1_NAME + "] Добро пожаловать РІ нашу фракцию."); player.setTitle(Config.FACTION_TEAM1_NAME); break; } if (player.getParty() != null) player.getParty().removePartyMember(player); player.getAppearance().setNameColor(Config.FACTION_TEAM1_COLOR); if (!player.isVip()) player.getAppearance().setTitleColor(Config.FACTION_TEAM1_COLOR); else player.getAppearance().setTitleColor(0x00CCFF); player.broadcastUserInfo(); if (Config.FACTION_ENABLE_SPEAKS) { player.broadcastPacket(new CreatureSay(player.getObjectId(), 0, player.getName(), Config.FACTION_TEAM1_PLAYER_VC.replace("%n", player.getName().toString()))); } break; case 2: switch (player.getFactionId()) { case 1: if (team2Count >= team1Count) { player.sendMessage("Р—Р° фракцию " + Config.FACTION_TEAM2_NAME + " играет РјРЅРѕРіРѕ человек."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (Config.FACTION_ENABLE_CLASS_BLNC && (player.getClassId().getId() == 15 || player.getClassId().getId() == 16 || player.getClassId().getId() == 17 || player.getClassId().getId() == 29 || player.getClassId().getId() == 30 || player.getClassId().getId() == 42 || player.getClassId().getId() == 43 || player.getClassId().getId() == 112 || player.getClassId().getId() == 105 || player.getClassId().getId() == 98 || player.getClassId().getId() == 97) && team2Supports > team1Supports) { player.sendMessage("Р—Р° фракцию " + Config.FACTION_TEAM2_NAME + " играет РјРЅРѕРіРѕ саппорт классов. Выбери РґСЂСѓРіСѓСЋ фрацкию."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } if (!player.isVip()) player.reduceAdena("pay", Config.FACTION_CHANGE_PRICE, player, true); L2World.getInstance().getAllTeam1().remove(player.getName().toLowerCase()); L2World.getInstance().getAllTeam2().put(player.getName().toLowerCase(),player); player.sendMessage("[" + Config.FACTION_TEAM1_NAME + "] РџРѕРєР°-РїРѕРєР°, предатель."); player.sendMessage("[" + Config.FACTION_TEAM2_NAME + "] Добро пожаловать РІ нашу фракцию."); break; case 2: player.sendMessage("РўС‹ Рё так играешь Р·Р° " + Config.FACTION_TEAM2_NAME + " фракцию."); player.sendPacket(ActionFailed.STATIC_PACKET); return; default: if (team2Count > team1Count) { player.sendMessage("Р—Р° фракцию " + Config.FACTION_TEAM2_NAME + " играет РјРЅРѕРіРѕ саппорт классов. Выбери РґСЂСѓРіСѓСЋ фрацкию."); player.sendPacket(ActionFailed.STATIC_PACKET); return; } L2World.getInstance().getAllTeam2().put(player.getName().toLowerCase(),player); player.sendMessage("[" + Config.FACTION_TEAM2_NAME + "] Добро пожаловать РІ нашу фракцию."); player.setTitle(Config.FACTION_TEAM2_NAME); break;
-
Там только на название фракции.
-
Чтобы он в конифге был, надо же туда добавить сночало.
-
Так а текст самого титула? В конфиг как я понел надо тоже вставлять?