When it was MasterHandler.java
Posted: Fri Oct 23, 2009 10:03 pm
When it was MasterHandler.java, I created a script for an event, and worked fine.
But now when MasterHandler is obsolete, I got a weird trouble remaking this script:
From CustomVoicedCommand.java the player who wants to join to the event, types ".carrera"
it goes to AdminStriderRace.java where the first thing is checked is the variable's class eventoActivado:
player get the value = false, that's weird because, the first thing done by GM is set it up to true, as we can see here:
The full script is here if you want check it out:http://pastebin.com/m3783764b
I was trying everything from tutorials and friends, other forums...
Is possible help? Thank you.
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.