Перейти к содержанию

xINVIZIBLx

Постоялец
  • Публикаций

    301
  • Зарегистрирован

  • Посещение

  • Победитель дней

    1
  • Отзывы

    0%

Весь контент xINVIZIBLx

  1. xINVIZIBLx

    Куплю Interlude

    Как бы гугл великая вещь Scoria
  2. Как бы гуглом пользоваться проще
  3. Скинь польностью в одном Архиве)
  4. xINVIZIBLx

    Подскажыте

    В папке l2text файл server_help.htm
  5. xINVIZIBLx

    Echo Crystals

    Я показал как) А дальше сами))
  6. xINVIZIBLx

    Echo Crystals

    Кому как) Я делал как знал
  7. xINVIZIBLx

    Echo Crystals

    Ничего не надо закрывать! Не многие могут работать с исходниками) PS Знание програмирования 10-15% Чисто методом сравнения и проб и ошибок)
  8. xINVIZIBLx

    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,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
  9. xINVIZIBLx

    Echo Crystals

    Нужен смайлик FacePalm)) Вместо ID пишим свой ID Который хотим вверхней части через , в конце нету ,
  10. xINVIZIBLx

    Echo Crystals

    Вариант 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; } }
  11. xINVIZIBLx

    Echo Crystals

    Тогда на помощь приходит 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; } }
  12. xINVIZIBLx

    Echo Crystals

    Просто нету тех кто проверяет и добавляет новость!
  13. xINVIZIBLx

    Echo Crystals

    Все операции происходять с исходным кодом! Были взяты 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 предмет(Можно и без этой строчки тогда при использованиии предмета не будет забираться) В общем ничего сложного
  14. xINVIZIBLx

    Echo Crystals

    Ищите мануал на сайте
  15. xINVIZIBLx

    Echo Crystals

    Я сделал xD Ща сделаю мануал)
  16. Из бесплатных L2jCore 1.5 Из платных lameguard
  17. xINVIZIBLx

    Хиро

    Хотя бы сборку указали! Запарили уже такие темы!
  18. Идём в 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!");
  19. xINVIZIBLx

    Помогите

    А как бы влючить мозг, гугл переводчик не судьба?
  20. xINVIZIBLx

    Сборка

    Как он может пойти почитать другие темы, если таких тем как ЭТА развелось куча!
  21. xINVIZIBLx

    Дата Осады

    http://w3w.aplus.pl/l2/siege.php?time Смотри тут
  22. xINVIZIBLx

    Бафф За Ксиву

    Случайно попалось на глаза) Скрытый текст 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 ) только без пробела
  23. xINVIZIBLx

    Бафф За Ксиву

    Это геморой) Я тебе говорю как я сделал проще и быстрее
  24. xINVIZIBLx

    Бафф За Ксиву

    Я делал на фрозенах отдельный статус типо Donator и добовлял проверку в баффера если нету статуса то он не может пользоваться баффером Потом делал Handler наподоби DonatorItem и всё)
×
×
  • Создать...