But now when MasterHandler is obsolete, I got a weird trouble remaking this script:
- the static variable class is changed of value in one method but, in the other keep old value
From CustomVoicedCommand.java the player who wants to join to the event, types ".carrera"
Code: Select all
else if (command.equalsIgnoreCase("carrera")) { AdminStriderRace.addPJtoEvent(activeChar); } return false;
Code: Select all
public static void addPJtoEvent(L2PcInstance activeChar) { int index = 0; boolean borrado = false; activeChar.sendMessage("1.-" + String.valueOf(AdminStriderRace.eventoActivado) );......
Code: Select all
public boolean useAdminCommand(String command, L2PcInstance activeChar) ...... } else if (command.equals("admin_sr_announce")) { AdminStriderRace.eventoActivado = true;...
I was trying everything from tutorials and friends, other forums...
Is possible help? Thank you.