Jump to content
  • 0

Question

Posted

i have some syntaxes errors on L2ClanhallTeleporterInstance.java. I use L2jServer interlude LAST REV.

 

when i try to compile i got this...

 

[javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:36: cannot find symbol
    [javac] symbol  : variable InstanceType
    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2ClanHallTeleporterInstance
    [javac] 		setInstanceType(InstanceType.L2ClanHallDoormenInstance);
    [javac] 		                ^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:42: cannot find symbol
    [javac] symbol  : variable STATIC_PACKET
    [javac] location: class net.sf.l2j.gameserver.serverpackets.ActionFailed
    [javac] 		player.sendPacket(ActionFailed.STATIC_PACKET);
    [javac] 		                              ^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:51: cannot find symbol
    [javac] symbol  : method getHtmlPrefix()
    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance
    [javac] 				html.setFile(player.getHtmlPrefix(), "data/html/clanHallDoormen/doormen-tele.htm");
    [javac] 				                   ^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:58: cannot find symbol
    [javac] symbol  : method getHtmlPrefix()
    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance
    [javac] 					html.setFile(player.getHtmlPrefix(), "data/html/clanHallDoormen/doormen-no.htm");
    [javac] 					                   ^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:64: cannot find symbol
    [javac] symbol  : method getHtmlPrefix()
    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance
    [javac] 					html.setFile(player.getHtmlPrefix(), "data/html/clanHallDoormen/emptyowner.htm");
    [javac] 					                   ^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:79: cannot find symbol
    [javac] symbol  : method getSpawnLoc()
    [javac] location: class net.sf.l2j.gameserver.model.zone.type.L2ClanHallZone
    [javac] 		Location _loc = getClanHall().getZone().getSpawnLoc();
    [javac] 		                                       ^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:76: method does not override or implement a method from a supertype
    [javac] 	@Override
    [javac] 	^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:92: cannot find symbol
    [javac] symbol  : method getChaoticSpawnLoc()
    [javac] location: class net.sf.l2j.gameserver.model.zone.type.L2ClanHallZone
    [javac] 		Location _loc = getClanHall().getZone().getChaoticSpawnLoc();
    [javac] 		                                       ^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:89: method does not override or implement a method from a supertype
    [javac] 	@Override
    [javac] 	^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:107: getClanHall() in net.sf.l2j.gameserver.model.actor.instance.L2ClanHallTeleporterInstance cannot override getClanHall() in net.sf.l2j.gameserver.model.actor.instance.L2DoormenInstance; overridden method is final
    [javac] 	private final ClanHall getClanHall()
    [javac] 	                       ^
    [javac] C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\model\actor\instance\L2ClanHallTeleporterInstance.java:123: method does not override or implement a method from a supertype
    [javac] 	@Override
    [javac] 	^
    [javac] Note: C:\Users\Roberto 3\Documents\workspace\L2jServer GS\java\net\sf\l2j\gameserver\GeoEngine.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 11 errors

 

 

And here you have the file...

 

package net.sf.l2j.gameserver.model.actor.instance;

import net.sf.l2j.gameserver.datatables.ClanTable;
import net.sf.l2j.gameserver.datatables.MapRegionTable;
import net.sf.l2j.gameserver.instancemanager.ClanHallManager;
import net.sf.l2j.gameserver.model.L2Clan;
import net.sf.l2j.gameserver.model.Location;
import net.sf.l2j.gameserver.model.entity.ClanHall;
import net.sf.l2j.gameserver.serverpackets.ActionFailed;
import net.sf.l2j.gameserver.serverpackets.NpcHtmlMessage;
import net.sf.l2j.gameserver.templates.L2NpcTemplate;


public class L2ClanHallTeleporterInstance extends L2DoormenInstance
{
private boolean _init = false;
private ClanHall _clanHall = null;

public L2ClanHallTeleporterInstance(int objectID, L2NpcTemplate template)
{
	super(objectID, template);
	setInstanceType([color=red]InstanceType[/color].L2ClanHallDoormenInstance);
}

@Override
public void showChatWindow(L2PcInstance player)
{
	player.sendPacket([color=red]ActionFailed.STATIC_PACKET[/color]);

	NpcHtmlMessage html = new NpcHtmlMessage(getObjectId());

	if (getClanHall() != null)
	{
		L2Clan owner = ClanTable.getInstance().getClan(getClanHall().getOwnerId());
		if (isOwnerClan(player))
		{
			html.setFile(player.[color=red]getHtmlPrefix[/color](), "data/html/clanHallDoormen/doormen-tele.htm");
			html.replace("%clanname%", owner.getName());
		}
		else
		{
			if (owner != null && owner.getLeader() != null)
			{
				html.setFile(player.[color=red]getHtmlPrefix[/color](), "data/html/clanHallDoormen/doormen-no.htm");
				html.replace("%leadername%", owner.getLeaderName());
				html.replace("%clanname%", owner.getName());
			}
			else
			{
				html.setFile(player.[color=red]getHtmlPrefix[/color](), "data/html/clanHallDoormen/emptyowner.htm");
				html.replace("%hallname%", getClanHall().getName());
			}
		}
	}
	else
		return;

	html.replace("%objectId%", String.valueOf(getObjectId()));
	player.sendPacket(html);
}

@Override
protected final void [color=red]openDoors(L2PcInstance player, String command)[/color]
{
	Location _loc = getClanHall().getZone().[color=red]getSpawnLoc[/color]();

	if (_loc != null)
	{
		player.teleToLocation(_loc, false);
		if (player.getPet() != null)
			player.getPet().teleToLocation(_loc, false);
	}
}

@Override
protected final void [color=red]closeDoors(L2PcInstance player, String command)[/color]
{
	Location _loc = getClanHall().getZone().[color=red]getChaoticSpawnLoc[/color]();
	if (_loc != null)
	{
		player.teleToLocation(_loc, false);
		if (player.getPet() != null)
			player.getPet().teleToLocation(_loc, false);			
	}
	else
	{
		player.teleToLocation(MapRegionTable.TeleportWhereType.Town);
		if (player.getPet() != null)
			player.getPet().teleToLocation(MapRegionTable.TeleportWhereType.Town);
	}
}

private final ClanHall [color=red]getClanHall[/color]()
{
	if (!_init)
	{
	synchronized (this)
		{
			if (!_init)
			{
				_clanHall = ClanHallManager.getInstance().getNearbyClanHall(getX(), getY(), 500);
				_init = true;
			}
		}
	}
	return _clanHall;
}

@Override
protected final boolean [color=red]isOwnerClan(L2PcInstance player)[/color]
{
	if (player.getClan() != null && getClanHall() != null)
	{
		if (player.getClanId() == getClanHall().getOwnerId())
			return true;
	}
	return false;
}
}

 

i don't know how to fix it... Please help :(

7 answers to this question

Recommended Posts

  • 0
Posted

2 errors are related to a zoneManager rework.

 

2 others errors are related to L2Npc rework (implementing main methods).

 

1 need actionFailed rework.

 

------

 

Just use one existing IL pack. You can correct only 4 errors from pure syntax. Others need partial or full rework.

  • 0
Posted

But all the projects of IL SUCKS! the only serverfiles good (But old) are L2jSERVER...

How can i fix it? i must rewrite all the code?

 

Ty for my own pack ;D.

 

I gave you the answer, and I don't think others will reply about it. What you try to do is basically to create another pack. Your errors are simple, and you didn't manage to compare files. Here are what you can correct :

 


 

html.setFile(player.getHtmlPrefix(), "data/html/clanHallDoormen/emptyowner.htm");

must be

html.setFile("data/html/clanHallDoormen/emptyowner.htm");

(drop of "player.getHtmlPrefix(), ")

 


 

setInstanceType(InstanceType.L2ClanHallDoormenInstance);

delete the line there is no comparing stuff on IL.

 


 

ActionFailed.STATIC_PACKET

Rework of the ActionFailed packet, 3 min being clever.

http://trac.assembla.com/acis_project/changeset/18


 

Others changes need partial or full rework, as I already said.

 

If you think ALL IL packs are crappy, I can't do nothing for you :D.

 

Tk.

  • 0
Posted

Ty for my own pack ;D.

 

I gave you the answer, and I don't think others will reply about it. What you try to do is basically to create another pack. Your errors are simple, and you didn't manage to compare files. Here are what you can correct :

 


 

html.setFile(player.getHtmlPrefix(), "data/html/clanHallDoormen/emptyowner.htm");

must be

html.setFile("data/html/clanHallDoormen/emptyowner.htm");

(drop of "player.getHtmlPrefix(), ")

 


 

setInstanceType(InstanceType.L2ClanHallDoormenInstance);

delete the line there is no comparing stuff on IL.

 


 

ActionFailed.STATIC_PACKET

Rework of the ActionFailed packet, 3 min being clever.

http://trac.assembla.com/acis_project/changeset/18


 

Others changes need partial or full rework, as I already said.

 

If you think ALL IL packs are crappy, I can't do nothing for you :D.

 

Tk.

 

 

But all the packets i probe (like l2jfrozen) are bad... the olys doesn't work properly and something more like enchant skills...

 

If you have 1 that work properly and have bad issues with something that players can't see (like trades, or another topics) send me a pm.

 

Sorry if i insult your serverfiles I did not mean what I meant

  • 0
Posted

Each pack got his own errors, support one or other project instead of making your own stuff in your side. There are more than 1 project, and if you count russian projects, it goes high.

 

My pack is named "another Crappy interlude server", so about the insulting part, I won't cry if you say it sux.

 

I think my previous answers say all, so, gl.

 


 

PS : you got the will, but not the knowledge. I invite you to check more little codes and go crescendo instead of doing the reverse. Cause atm, you're not able to fix anything.

 

PS2 : Compiling fine doesn't mean it's not entirely bugged ingame.

  • 0
Posted

Each pack got his own errors, support one or other project instead of making your own stuff in your side. There are more than 1 project, and if you count russian projects, it goes high.

 

My pack is named "another Crappy interlude server", so about the insulting part, I won't cry if you say it sux.

 

I think my previous answers say all, so, gl.

 


 

PS : you got the will, but not the knowledge. I invite you to check more little codes and go crescendo instead of doing the reverse. Cause atm, you're not able to fix anything.

 

PS2 : Compiling fine doesn't mean it's not entirely bugged ingame.

 

i know i will test your pack, and it's full security?

  • 0
Posted

i know i will test your pack, and it's full security?

 

I didn't bother with security, "before to correct the outside, you correct the inside". Feel free to test and report.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • L2Elixir – Patch 4 Is Live!   We’re working non-stop, day and night, to deliver the best possible quality and bring back what made L2Elixir special. This project is built with passion, not shortcuts — for the old-school players who remember, and the new ones who want to experience it properly. Thank you for being part of the journey. Together, we’re making L2Elixir great again ❤️ The legends never fade.    ⚙️ General Enabled Class Change service (same class type only) ALT + B → Services → Character Development Enabled Shift + Click on Treasure Chests Players can now identify real chests (Adena, scroll drops) and use Key / Unlock Event deaths now cancel only debuffs, All self buffs are preserved, fixes issues with Root and similar effects Bladedancer class can now log in even when Max Clients (2) is reached. Since an active Bladedancer is not available for every damage dealer and some players tried to abuse this via VPN or a second PC, this feature was added to keep things fair. protections applies, requires testing!    🎒 Items Crystallizing enchanted items now gives the correct increased crystal amount (retail-like behavior) Removed Agathion Seal Bracelet: Rudolph from Santa rewards (Gracia Final item) Added Dualsword Craft Stamp into Milestone Exchange list    🧙 Skills Fixed Banish Undead lethal chance Hot Springs Malaria and similar effects now level up faster while being attacked
    • thats new SEO level tricks you know nothing of noob - bottom line: exposed.
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away!   @Atom @Celestine
    • Warning: This guy is a big scammer, trying to sell everything, advertising for servers etc. That's his mail address evgesha.nrnr@gmail.com , stay away! @Celestine @Atom
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock