When it was MasterHandler.java

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
thor
Posts: 19
Joined: Tue May 26, 2009 7:12 pm

When it was MasterHandler.java

Post by thor »

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:
  • the static variable class is changed of value in one method but, in the other keep old value
How it looks? Let me show you:
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; 
it goes to AdminStriderRace.java where the first thing is checked is the variable's class eventoActivado:

Code: Select all

	public static void addPJtoEvent(L2PcInstance activeChar) {		int index = 0;		boolean borrado = false;		activeChar.sendMessage("1.-" + String.valueOf(AdminStriderRace.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:

Code: Select all

 public boolean useAdminCommand(String command, L2PcInstance activeChar) ......		} else if (command.equals("admin_sr_announce")) 		{			AdminStriderRace.eventoActivado = true;... 
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.
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: When it was MasterHandler.java

Post by janiii »

MasterHandler is obsolete? or did you just not get an answer on l2jofficial forum? your question is not about this l2j project.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
thor
Posts: 19
Joined: Tue May 26, 2009 7:12 pm

Re: When it was MasterHandler.java

Post by thor »

I did not get an answer from there but I thought l2jofficial came from l2j just with some customs.
Oki then, thx.
Post Reply