-
Публикаций
301 -
Зарегистрирован
-
Посещение
-
Победитель дней
1 -
Отзывы
0%
Тип контента
Профили
Форумы
Загрузки
Магазин
Инструкции
Весь контент xINVIZIBLx
-
Как бы гуглом пользоваться проще
-
Скинь польностью в одном Архиве)
-
Ничего не надо закрывать! Не многие могут работать с исходниками) PS Знание програмирования 10-15% Чисто методом сравнения и проб и ошибок)
-
Скрытый текст/* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package com.l2jfrozen.gameserver.handler.itemhandlers; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import com.l2jfrozen.gameserver.network.serverpackets.PlaySound; import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; /** * @author devScarlet & mrTJO */ public class MusicItem implements IItemHandler { private static int[] _itemIds = { 50000,50001,50002 }; @Override public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance) playable; int itemId = item.getItemId(); if(activeChar.isParalyzed()) { activeChar.sendMessage("Вы не можете использовать, когда вы парализованы!"); activeChar.sendPacket(ActionFailed.STATIC_PACKET); return; } if(itemId == 50000) // Token of Love { { MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2140, 1, 1, 0); activeChar.broadcastPacket(MSU); PlaySound _snd3 = new PlaySound(1, "triple_kill", 0, 0, 0, 0, 0); activeChar.sendPacket(_snd3); playable.destroyItem("Consume", item.getObjectId(), 1, null, false); } activeChar = null; } else if(itemId == 50001) // Token of Love { { MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2140, 1, 1, 0); activeChar.broadcastPacket(MSU); PlaySound _snd3 = new PlaySound(1, "triple_kill", 0, 0, 0, 0, 0); activeChar.sendPacket(_snd3); playable.destroyItem("Consume", item.getObjectId(), 1, null, false); } activeChar = null; } else if(itemId == 50002) // Token of Love { { MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2140, 1, 1, 0); activeChar.broadcastPacket(MSU); PlaySound _snd3 = new PlaySound(1, "triple_kill", 0, 0, 0, 0, 0); activeChar.sendPacket(_snd3); playable.destroyItem("Consume", item.getObjectId(), 1, null, false); } activeChar = null; } } /** * @see com.l2jfrozen.gameserver.handler.IItemHandler#getItemIds() */ @Override public int[] getItemIds() { return _itemIds; } } Сделал на 3 Item надеюсь поймете как больше делать! Так же не забываем создать ID в Mysql Таблице etcitem
-
Нужен смайлик FacePalm)) Вместо ID пишим свой ID Который хотим вверхней части через , в конце нету ,
-
Вариант 2 Добавил эффект как у оригинальных Echo Crystals Скрытый текст/* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package com.l2jfrozen.gameserver.handler.itemhandlers; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import com.l2jfrozen.gameserver.network.serverpackets.PlaySound; import com.l2jfrozen.gameserver.network.serverpackets.MagicSkillUser; /** * @author devScarlet & mrTJO */ public class MusicItem implements IItemHandler { private static int[] _itemIds = { 50000 }; @Override public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance) playable; int itemId = item.getItemId(); if(activeChar.isParalyzed()) { activeChar.sendMessage("Вы не можете использовать, когда вы парализованы!"); activeChar.sendPacket(ActionFailed.STATIC_PACKET); return; } if(itemId == 50000) // Token of Love { MagicSkillUser MSU = new MagicSkillUser(playable, activeChar, 2140, 1, 1, 0); activeChar.broadcastPacket(MSU); PlaySound _snd3 = new PlaySound(1, "triple_kill", 0, 0, 0, 0, 0); activeChar.sendPacket(_snd3); playable.destroyItem("Consume", item.getObjectId(), 1, null, false); } activeChar = null; } /** * @see com.l2jfrozen.gameserver.handler.IItemHandler#getItemIds() */ @Override public int[] getItemIds() { return _itemIds; } }
-
Тогда на помощь приходит else if Скрытый текст/* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package com.l2jfrozen.gameserver.handler.itemhandlers; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import com.l2jfrozen.gameserver.network.serverpackets.PlaySound; /** * @author devScarlet & mrTJO */ public class MusicItem implements IItemHandler { private static int[] _itemIds = { 50000, ID }; @Override public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance) playable; int itemId = item.getItemId(); if(activeChar.isParalyzed()) { activeChar.sendMessage("Вы не можете использовать, когда вы парализованы!"); activeChar.sendPacket(ActionFailed.STATIC_PACKET); return; } if(itemId == 50000) // Token of Love { { PlaySound _snd3 = new PlaySound(1, "triple_kill", 0, 0, 0, 0, 0); activeChar.sendPacket(_snd3); playable.destroyItem("Consume", item.getObjectId(), 1, null, false); } activeChar = null; } else if(itemId == ID) //Можно до бесконечности { { PlaySound _snd3 = new PlaySound(1, "triple_kill", 0, 0, 0, 0, 0); activeChar.sendPacket(_snd3); playable.destroyItem("Consume", item.getObjectId(), 1, null, false); } activeChar = null; } } /** * @see com.l2jfrozen.gameserver.handler.IItemHandler#getItemIds() */ @Override public int[] getItemIds() { return _itemIds; } }
-
Просто нету тех кто проверяет и добавляет новость!
-
Все операции происходять с исходным кодом! Были взяты L2jFrozen) В общем идём по пути Скрытый текстL2jFrozen_GameServer\head-src\com\l2jfrozen\gameserver\handler\itemhandlers Создаём файл MusicItem.java Вставляем в него Скрытый текст/* This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * http://www.gnu.org/copyleft/gpl.html */ package com.l2jfrozen.gameserver.handler.itemhandlers; import com.l2jfrozen.gameserver.handler.IItemHandler; import com.l2jfrozen.gameserver.model.actor.instance.L2ItemInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance; import com.l2jfrozen.gameserver.model.actor.instance.L2PlayableInstance; import com.l2jfrozen.gameserver.network.serverpackets.ActionFailed; import com.l2jfrozen.gameserver.network.serverpackets.PlaySound; /** * @author devScarlet & mrTJO */ public class MusicItem implements IItemHandler { private static int[] _itemIds = { 50000 }; @Override public void useItem(L2PlayableInstance playable, L2ItemInstance item) { if(!(playable instanceof L2PcInstance)) return; L2PcInstance activeChar = (L2PcInstance) playable; int itemId = item.getItemId(); if(activeChar.isParalyzed()) { activeChar.sendMessage("Вы не можете использовать, когда вы парализованы!"); activeChar.sendPacket(ActionFailed.STATIC_PACKET); return; } if(itemId == 50000) // Token of Love { PlaySound _snd3 = new PlaySound(1, "triple_kill", 0, 0, 0, 0, 0); activeChar.sendPacket(_snd3); playable.destroyItem("Consume", item.getObjectId(), 1, null, false); } activeChar = null; } /** * @see com.l2jfrozen.gameserver.handler.IItemHandler#getItemIds() */ @Override public int[] getItemIds() { return _itemIds; } } Так не забываем прописать наш MusicItem В ItemHandler.java Скрытый текстimport com.l2jfrozen.gameserver.handler.itemhandlers.MusicItem; После registerItemHandler(new ChristmasTree()); Ставим registerItemHandler(new MusicItem()); Теперь объясню PlaySound _snd3 = new PlaySound(1, "triple_kill", 0, 0, 0, 0, 0); <----- воспроизводит OGG файл с названием triple_kil сам файл кидать в music с игрой, я взял звуки от Звуки playable.destroyItem("Consume", item.getObjectId(), 1, null, false); <---- Забирает 1 предмет(Можно и без этой строчки тогда при использованиии предмета не будет забираться) В общем ничего сложного
-
Из бесплатных L2jCore 1.5 Из платных lameguard
-
Хотя бы сборку указали! Запарили уже такие темы!
-
Идём в net.sf.l2j.gameserver.instancemanager ----- RaidBossSpawningManager.java После Кода: GmListTable.broadcastMessageToGMs("Spawning Raid Boss " + raidboss.getName()); _bosses.put(bossId, raidboss); _schedules.remove(bossId); Вставляем этот код Код: Announcements _an = Announcements.getInstance(); _an.announceToAll("RaidBoss : " + raidboss.getName() + " has spawning!");
-
А как бы влючить мозг, гугл переводчик не судьба?
-
Как он может пойти почитать другие темы, если таких тем как ЭТА развелось куча!
-
http://w3w.aplus.pl/l2/siege.php?time Смотри тут
-
Случайно попалось на глаза) Скрытый текст int id = Integer.parseInt(command.substring(.trim()); if (player.getInventory().getItemByItemId(4356) == null) { player.sendMessage("У вас нет сертификата баффов"); NpcHtmlMessage html = new NpcHtmlMessage(1); html.setFile("data/html/buff/"+getNpcId()+"-50.htm"); sendHtmlMessage(player,html); return; } Под скрывает 8 ) только без пробела
-
Это геморой) Я тебе говорю как я сделал проще и быстрее
-
Я делал на фрозенах отдельный статус типо Donator и добовлял проверку в баффера если нету статуса то он не может пользоваться баффером Потом делал Handler наподоби DonatorItem и всё)