cost 0 Опубликовано 8 апреля, 2016 Сборка l2jfatum, настроил эвент в чате пишет что открыта регистрация на него но НПЦ не появляется. Посоветуйте что нибуть) Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
SmokiMo 892 Опубликовано 8 апреля, 2016 Сборка l2jfatum, настроил эвент в чате пишет что открыта регистрация на него но НПЦ не появляется. Посоветуйте что нибуть) Посмотри конфиги или базу, должны где-то прописываться координаты или же должна быть команда типа .tvt_join Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Evolution 243 Опубликовано 8 апреля, 2016 Сборка l2jfatum, настроил эвент в чате пишет что открыта регистрация на него но НПЦ не появляется. Посоветуйте что нибуть) .events Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
P1ckw1ck 158 Опубликовано 8 апреля, 2016 (изменено) @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String param) { if (activeChar == null) { return false; } if (param != null) { String[] params = param.split(" "); AbstractEvent evt = EventManager.getInstance().findEvent(params[0]); if (evt != null) { if (params[1].equals("join")) { if (evt.getState() == AbstractEvent.STATE_RUNNING) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_RUNNING"), evt.getName())); } else if (evt.getState() == AbstractEvent.STATE_ACTIVE) { if (evt.register(activeChar)) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_REGISTERED"), evt.getName())); } } else { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_NOT_ACTIVE"), evt.getName())); } showPage(evt, activeChar); return true; } else if (params[1].equals("leave")) { if (evt.getState() == AbstractEvent.STATE_RUNNING) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_RUNNING"), evt.getName())); } else if (evt.getState() == AbstractEvent.STATE_ACTIVE) { if (evt.register(activeChar)) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_REGISTERED"), evt.getName())); } } else { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_NOT_ACTIVE"), evt.getName())); } showPage(evt, activeChar); return true; } else if (params[1].equals("page") && EventManager.getInstance().findEvent(params[0]) != null) { showPage(evt, activeChar); return true; } } } showPage(EventManager.getInstance().findEvent("TeamVsTeam"), activeChar); return true; } Изменено 8 апреля, 2016 пользователем P1ckw1ck Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
setforstyle 6 Опубликовано 8 апреля, 2016 @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String param) { if (activeChar == null) { return false; } if (param != null) { String[] params = param.split(" "); AbstractEvent evt = EventManager.getInstance().findEvent(params[0]); if (evt != null) { if (params[1].equals("join")) { if (evt.getState() == AbstractEvent.STATE_RUNNING) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_RUNNING"), evt.getName())); } else if (evt.getState() == AbstractEvent.STATE_ACTIVE) { if (evt.register(activeChar)) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_REGISTERED"), evt.getName())); } } else { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_NOT_ACTIVE"), evt.getName())); } showPage(evt, activeChar); return true; } else if (params[1].equals("leave")) { if (evt.getState() == AbstractEvent.STATE_RUNNING) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_RUNNING"), evt.getName())); } else if (evt.getState() == AbstractEvent.STATE_ACTIVE) { if (evt.register(activeChar)) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_REGISTERED"), evt.getName())); } } else { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_NOT_ACTIVE"), evt.getName())); } showPage(evt, activeChar); return true; } else if (params[1].equals("page") && EventManager.getInstance().findEvent(params[0]) != null) { showPage(evt, activeChar); return true; } } } showPage(EventManager.getInstance().findEvent("TeamVsTeam"), activeChar); return true; } спс Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
cost 0 Опубликовано 9 апреля, 2016 @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String param) { if (activeChar == null) { return false; } if (param != null) { String[] params = param.split(" "); AbstractEvent evt = EventManager.getInstance().findEvent(params[0]); if (evt != null) { if (params[1].equals("join")) { if (evt.getState() == AbstractEvent.STATE_RUNNING) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_RUNNING"), evt.getName())); } else if (evt.getState() == AbstractEvent.STATE_ACTIVE) { if (evt.register(activeChar)) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_REGISTERED"), evt.getName())); } } else { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_NOT_ACTIVE"), evt.getName())); } showPage(evt, activeChar); return true; } else if (params[1].equals("leave")) { if (evt.getState() == AbstractEvent.STATE_RUNNING) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_RUNNING"), evt.getName())); } else if (evt.getState() == AbstractEvent.STATE_ACTIVE) { if (evt.register(activeChar)) { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_REGISTERED"), evt.getName())); } } else { activeChar.sendMessage(String.format(Message.getInstance().getMessage(activeChar, "MSG_EVENT_NOT_ACTIVE"), evt.getName())); } showPage(evt, activeChar); return true; } else if (params[1].equals("page") && EventManager.getInstance().findEvent(params[0]) != null) { showPage(evt, activeChar); return true; } } } showPage(EventManager.getInstance().findEvent("TeamVsTeam"), activeChar); return true; } Это что такое? что с этим делать и где это искать?))) Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты