↑ ↓

EventEngine Bug!

Тема в разделе "Помощь", создана пользователем Oliver67, 19 июл 2019.

  1. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    Hi!

    Hi!

    Server : Aion Core v4.7.5.18
    Client : 4.7.5.18

    Integrated EventEngine.
    EventEngine bug is:
    Set to use only LV10-65 players,
    but they can go up to Lv1-10.

    You can set the level setting here, but it doesn't work:

    EventPlayerLevel.java

    package pirate.events.enums;

    /**
    *
    * @author flashman
    */
    public enum EventPlayerLevel {

    L_DEFAULT(false, 10, 60),
    L10_20(true, 10, 20),
    L20_30(true, 20, 30),
    L30_40(true, 31, 40),
    L40_50(true, 41, 50),
    L50_55(true, 51, 55),
    L55_60(true, 56, 60),
    L60_65(true, 61, 65);
    private boolean regular;
    private int min;
    private int max;

    private EventPlayerLevel(boolean regular, int min, int max) {
    this.regular = regular;
    this.min = min;
    this.max = max;
    }

    public boolean isRegularLevelGroup() {
    return this.regular;
    }

    public int getMax() {
    return max;
    }

    public int getMin() {
    return min;
    }

    public static EventPlayerLevel getEventLevelByPlayerLevel(byte lvl) {
    for (EventPlayerLevel epl : values()) {
    if (lvl >= epl.getMin() && lvl <= epl.getMax() && epl.isRegularLevelGroup()) {
    return epl;
    }
    }
    return EventPlayerLevel.L_DEFAULT;
    }
    }
     
    Последнее редактирование модератором: 22 июл 2019
  2. Offline

    Dision Ефрейтор Команда форума VIP

    274
    62
    61
    Кредиты:
    $15.415,48
    Репутация:
    7
    need show log error
     
  3. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    The log does not make a mistake
     
  4. Offline

    Dision Ефрейтор Команда форума VIP

    274
    62
    61
    Кредиты:
    $15.415,48
    Репутация:
    7
    In general, this engine is deprecated. I don't know right this job
    --- Double Post Merged, 19 июл 2019, Original Post Date: 19 июл 2019 ---
    I think this not right jub
    --- Double Post Merged, 19 июл 2019 ---
    Sorry. Last word "job" in thread upper
    --- Double Post Merged, 19 июл 2019 ---
    Correctly assemly new event or engine
    --- Double Post Merged, 19 июл 2019 ---
    On fresh ideas
     
  5. Offline

    yayaya Ефрейтор Команда форума

    587
    183
    76
    Кредиты:
    $20.524,68
    Репутация:
    38
    Не останавливайтесь на идеях!
    Что насчет того, что бы в команде ограничить лвл использования?
     
  6. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    What do you think?
     
  7. Offline

    yayaya Ефрейтор Команда форума

    587
    183
    76
    Кредиты:
    $20.524,68
    Репутация:
    38
    в команду .event сделай ограничение на уровень после 10
     
  8. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    Can you help me?
    My cmd_event.java

    package playercommands;

    import com.aionemu.gameserver.model.gameobjects.player.Player;
    import com.aionemu.gameserver.utils.PacketSendUtility;
    import com.aionemu.gameserver.utils.chathandlers.PlayerCommand;
    import com.aionemu.gameserver.utils.i18n.LanguageHandler;
    import pirate.events.EventManager;
    import pirate.events.EventRegisterInfo;
    import pirate.events.enums.EventType;

    /**
    *
    * @author f14shm4n
    */
    public class cmd_event extends PlayerCommand {

    private static final StringBuilder info = new StringBuilder();

    static {
    info.append("Information from the Team:\n");
    info.append(".event - Displays the Information you reading\n");
    info.append(".event reg <event type> - registration to the specified event\n");
    info.append(".event unreg <event type> - out of the list of registration to the specified event\n");
    info.append("Available Event Types(event type):\n");
    for (EventType et : EventType.values()) {
    if (et.IsDone()) {
    info.append("- ").append(et.getEventTemplate().getCmdName()).append("\n");
    }
    }
    }

    public cmd_event() {
    super("event");
    }

    @Override
    public void execute(Player player, String... params) {
    if ((player.getController().isInCombat() || player.isInInstance() || player.isInPrison()) && !player.isGM()) {
    PacketSendUtility.sendMessage(player, "You can not participate in the event, while you are in prison, in a time zone or in combat.");
    // PacketSendUtility.sendMessage(player, LanguageHandler.translate(CustomMessageId.Event_1));
    return;
    }
    if (params.length == 2) {
    EventType et = parseType(params[1]);
    if (params[0].equals("reg")) {
    if (et == null) {
    ShowSyntax(player);
    return;
    }
    EventRegisterInfo eri = EventManager.getInstance().register(player, et);
    PacketSendUtility.sendMessage(player, eri.getMessage());
    } else if (params[0].equals("unreg")) {
    if (et == null) {
    ShowSyntax(player);
    return;
    }
    EventRegisterInfo eri = EventManager.getInstance().unregister(player, et);
    PacketSendUtility.sendMessage(player, eri.getMessage());
    }
    } else {
    this.ShowSyntax(player);
    }
    }

    private void ShowSyntax(Player p) {
    PacketSendUtility.sendMessage(p, info.toString());
    }

    private EventType parseType(String str) {
    for (EventType et : EventType.values()) {
    if (!et.IsDone()) {
    continue;
    }
    if (str.equals(et.getEventTemplate().getCmdName())) {
    return et;
    }
    }
    return null;
    }

    @Override
    public void onFail(Player player, String message) {
    // TODO Auto-generated method stub
    }
    }
     
    Последнее редактирование модератором: 22 июл 2019
  9. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    Could you help me change it?
    Help Please!
     
  10. Offline

    yayaya Ефрейтор Команда форума

    587
    183
    76
    Кредиты:
    $20.524,68
    Репутация:
    38
    if (player.getLevel() < 10 ) {
    //message
    return;
    }
     
  11. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    Where do I paste the code exactly?
     
  12. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    I tried the code in several places, but made mistakes. Can you help me with this?
     
  13. Offline

    yayaya Ефрейтор Команда форума

    587
    183
    76
    Кредиты:
    $20.524,68
    Репутация:
    38
    Код:
    if ((player.getController().isInCombat() || player.isInInstance() || player.isInPrison()) && !player.isGM()) {
    PacketSendUtility.sendMessage(player, "You can not participate in the event, while you are in prison, in a time zone or in combat.");
    // PacketSendUtility.sendMessage(player, LanguageHandler.translate(CustomMessageId.Event_1));
    return;
    }
     
     
     
    if (player.getLevel() < 10 ) {
    //message
    return;
    }
     
     
     
    if (params.length == 2) {
    EventType et = parseType(params[1]);
     
  14. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    error.log:

    2019-07-22 07:55:52,083 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 76
    Column: 9
    2019-07-22 07:55:52,083 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 76
    Column: 26
    2019-07-22 07:55:52,083 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 76
    Column: 29
    2019-07-22 07:55:52,092 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 76
    Column: 31
    2019-07-22 07:55:52,094 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 76
    Column: 32
    2019-07-22 07:55:52,137 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 76
    Column: 34
    2019-07-22 07:55:52,159 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 77
    Column: 25
    2019-07-22 07:55:52,180 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 78
    Column: 13
    2019-07-22 07:55:52,188 Java Compiler ERROR: ']' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 78
    Column: 24
    2019-07-22 07:55:52,191 Java Compiler ERROR: ')' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 78
    Column: 25
    2019-07-22 07:55:52,234 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 78
    Column: 26
    2019-07-22 07:55:52,244 Java Compiler ERROR: invalid method declaration; return type required
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 78
    Column: 27
    2019-07-22 07:55:52,255 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 78
    Column: 34
    2019-07-22 07:55:52,266 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 78
    Column: 40
    2019-07-22 07:55:52,296 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 15
    2019-07-22 07:55:52,309 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 19
    2019-07-22 07:55:52,330 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 23
    2019-07-22 07:55:52,330 Java Compiler ERROR: ']' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 31
    2019-07-22 07:55:52,341 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 32
    2019-07-22 07:55:52,363 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 33
    2019-07-22 07:55:52,384 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 34
    2019-07-22 07:55:52,395 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 40
    2019-07-22 07:55:52,395 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 41
    2019-07-22 07:55:52,403 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 48
    2019-07-22 07:55:52,406 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 49
    2019-07-22 07:55:52,449 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 50
    2019-07-22 07:55:52,468 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 85
    Column: 52
    2019-07-22 07:55:52,481 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 86
    Column: 20
    2019-07-22 07:55:52,492 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 86
    Column: 23
    2019-07-22 07:55:52,502 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 91
    Column: 46
    2019-07-22 07:55:52,524 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 91
    Column: 53
    2019-07-22 07:55:52,545 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 91
    Column: 69
    2019-07-22 07:55:52,556 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 91
    Column: 70
    2019-07-22 07:55:52,556 Java Compiler ERROR: illegal start of type
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 91
    Column: 71
    2019-07-22 07:55:52,567 Java Compiler ERROR: <identifier> expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 91
    Column: 72
    2019-07-22 07:55:52,599 Java Compiler ERROR: ';' expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 91
    Column: 73
    2019-07-22 07:55:52,599 Java Compiler ERROR: class, interface, or enum expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 93
    Column: 11
    2019-07-22 07:55:52,599 Java Compiler ERROR: class, interface, or enum expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 95
    Column: 9
    2019-07-22 07:55:52,610 Java Compiler ERROR: class, interface, or enum expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 100
    Column: 5
    2019-07-22 07:55:52,610 Java Compiler ERROR: class, interface, or enum expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 106
    Column: 13
    2019-07-22 07:55:52,610 Java Compiler ERROR: class, interface, or enum expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 109
    Column: 13
    2019-07-22 07:55:52,650 Java Compiler ERROR: class, interface, or enum expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 112
    Column: 5
    2019-07-22 07:55:52,663 Java Compiler ERROR: class, interface, or enum expected
    Source: /f:/vSrever/AC-4.7.5.6.1-Project-A/Aion-4.7-PVP-T/gameserver/./data/scripts/system/handlers/playercommands/cmd_event.java
    Line: 115
    Column: 12
     
    Последнее редактирование модератором: 22 июл 2019
  15. Offline

    yayaya Ефрейтор Команда форума

    587
    183
    76
    Кредиты:
    $20.524,68
    Репутация:
    38
    :cry::cry::cry:

    Код:
    /*
     * This file is part of Aion-Lightning <aion-lightning.org>.
     *
     * Aion-Lightning 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 of the License, or
     * (at your option) any later version.
     *
     * Aion-Lightning 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 Aion-Lightning.
     * If not, see <http://www.gnu.org/licenses/>.
     *
     * Credits goes to all Open Source Core Developer Groups listed below
     * Please do not change here something, ragarding the developer credits, except the "developed by XXXX".
     * Even if you edit a lot of files in this source, you still have no rights to call it as "your Core".
     * Everybody knows that this Emulator Core was developed by Aion Lightning 
     * @-Aion-Unique-
     * @-Aion-Lightning
     * @Aion-Engine
     * @Aion-Extreme
     * @Aion-NextGen
     * @Aion-Core Dev.
     *
     */
    package playercommands;
     
    import com.aionemu.gameserver.model.gameobjects.player.Player;
    import com.aionemu.gameserver.utils.PacketSendUtility;
    import com.aionemu.gameserver.utils.chathandlers.PlayerCommand;
    import com.aionemu.gameserver.utils.i18n.CustomMessageId;
    import com.aionemu.gameserver.utils.i18n.LanguageHandler;
    import com.aionemu.gameserver.pirate.events.EventManager;
    import com.aionemu.gameserver.pirate.events.EventRegisterInfo;
    import com.aionemu.gameserver.pirate.events.enums.EventType;
     
    /**
     *
     * @author f14shm4n
     */
    public class cmd_event extends PlayerCommand {
     
    	private static final StringBuilder info = new StringBuilder();
     
    	static {
    		info.append("Информация по ивентам AionPVE:\n");
    		info.append(".event - Показ информации которую вы читаете.\n");
    		info.append(".event reg <имя ивента> - Регистрация на выбранный ивент.\n");
    		info.append(".event unreg <имя ивента> - Отменить регистрацию на выбранный ивент.\n");
    		info.append("Все ивенты:\n");
     
    		for (EventType et : EventType.values()) {
    			if (et.IsDone()) {
    				info.append("- ").append(et.getEventTemplate().getCmdName()).append(" ");
    			}
    		}
    	}
     
    	public cmd_event() {
    		super("event");
    	}
     
    	@Override
    	public void execute(Player player, String... params) {
    		if ((player.getController().isInCombat() || player.isInInstance() || player.isInPrison()) && !player.isGM()) {
    			//PacketSendUtility.sendMessage(player, "You can not participate in the event, while you are in prison, in a time zone or in combat.");
    //Нельзя участвовать в ивенте, пока вы в тюрьме, во временной зоне либо в состоянии боя.
    			PacketSendUtility.sendMessage(player, "\u041d\u0435\u043b\u044c\u0437\u044f \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u0438\u0432\u0435\u043d\u0442\u0435, \u043f\u043e\u043a\u0430 \u0432\u044b \u0432 \u0442\u044e\u0440\u044c\u043c\u0435, \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0437\u043e\u043d\u0435 \u043b\u0438\u0431\u043e \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0431\u043e\u044f.");
    			return;
    		}
     
    		if (player.getLevel() < 10 ) {
    		//message
    		return;
    		}
     
    		if (params.length == 2) {
    			EventType et = parseType(params[1]);
    			if (params[0].equals("reg")) {
    				if (et == null) {
    					ShowSyntax(player);
    					return;
    				}
    				EventRegisterInfo eri = EventManager.getInstance().register(player, et);
    				PacketSendUtility.sendMessage(player, eri.getMessage());
    			} else if (params[0].equals("unreg")) {
    				if (et == null) {
    					ShowSyntax(player);
    					return;
    				}
    				EventRegisterInfo eri = EventManager.getInstance().unregister(player, et);
    				PacketSendUtility.sendMessage(player, eri.getMessage());
    			}
    		} else {
    			this.ShowSyntax(player);
    		}
    	}
     
    	private void ShowSyntax(Player p) {
    		PacketSendUtility.sendMessage(p, info.toString());
    	}
     
    	private EventType parseType(String str) {
    		for (EventType et : EventType.values()) {
    			if (!et.IsDone()) {
    				continue;
    			}
    			if (str.equals(et.getEventTemplate().getCmdName())) {
    				return et;
    			}
    		}
    		return null;
    	}
     
    	@Override
    	public void onFail(Player player, String message) {
    		// TODO Auto-generated method stub
    	}
    }
     
  16. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0


    Thank you so good!
     
  17. Offline

    romanz Ефрейтор Модератор

    743
    165
    76
    Кредиты:
    $26.070,43
    Репутация:
    23
    вы его что в блокноте правите что ошибок не видите )?
     
    WeRn нравится это.
  18. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    Hi!

    Server : Aion Core v4.7.5.18
    Client : 4.7.5.18

    Integrated EventEngine.
    EventEngine bug is:
    Fre For All Event:
    After killing the player, he revives but is not visible.
    This error also occurred in PVP 1x1.
    Log does not write error.
    I can't figure out what's causing this.
    I ask for help in this if someone has an idea.
    Sorry double!
     
  19. Offline

    Dev4ik Ефрейтор

    223
    8
    51
    Кредиты:
    $15.254,23
    Репутация:
    -1
    бери ивенты с гигатруна у него и то нормально работает, или у алекса, есть конечно недостатки но переписать немного и всё
     
  20. TopicStarter Overlay
    Offline

    Oliver67 Рядовой

    57
    1
    36
    Кредиты:
    $331,61
    Репутация:
    0
    What I noticed is this error only occurs in the instance zone,