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

    • TELEGRAM SEO TRAINING (Bot Ranking in Search) I teach a complete system for ranking Telegram bots at the top of search results by keywords and countries. The method works for services, shops, crypto projects, and any type of Telegram bot. You can also direct the traffic to your groups, channels, websites, or sales funnels. ⸻  Countries I work with USA, Israel, Russia, India, Turkey, China, Ukraine, Uzbekistan. If you need another country — message me, we’ll find a solution. ⸻ ️ Results First search results appear in 2–3 days. ⸻  What’s included in the training • how the Telegram search algorithm works and key ranking factors • keyword research for your country and niche • bot optimization: description, settings, greeting text • fixing and maintaining positions • specific promotion nuances for different countries ⸻  What you will receive • a complete system for ranking bots in search • understanding how to work with keywords, traffic, and positions • a skill you can use to promote your own projects or earn from clients ⸻  Who this training is for • beginners with zero experience — I explain everything from scratch • those who don’t have a bot — I provide a ready one for practice • anyone who wants to learn promotion and earn from this service ⸻  Why learn from me • doing Telegram SEO since 2021 • over 1000 successful orders • my own panel SMMTG.PRO and private databases • experience working with markets of Russia, Uzbekistan, Ukraine, Israel, USA, Turkey, China, India, Vietnam, Europe, and more ⸻  For pricing — message me t.me/smmtg_link
    • Hey everyone, I was wondering if anyone knows where the client loads all the .dat files. Is there some kind of manifest or list you can specify which dat files the client loads?
    • 🔥 Welcome to Lineage 2 Haruna x3 – True Classic Interlude Experience 🔥 At Haruna x3, we’re bringing back the true essence of Interlude – slow, meaningful progression where every level matters, every item has value, and PvP is real. We’re not about fast servers, pay-to-win advantages, or fake populations. Our goal is simple: create a fair, stable, and long-term server where players can enjoy real competition, strategic clan warfare, and the thrill of open-world PvP. 💎 What Makes Haruna x3 Special? x3 Rates – Perfect for steady, rewarding progression Classic Interlude Mechanics – Relive the nostalgia of Interlude Stable & Lag-Free Gameplay – Optimized for thousands of players online Fair & Balanced – No pay-to-win, every victory is earned PvP & Clan Warfare Focused – Every battle counts 🌟 Quality of Life Features to Enhance Your Experience We keep the classic feel while adding features that make the game more convenient and enjoyable, including: Shift + Click to view monster droplists Free item mail and buy/sell via Adena Daily login rewards & Stream Rewards ALT+K Skill Panel & Alt+Click buffs removal Offline shop system Captcha for security Donate Coins currency (cannot be traded, dropped, or destroyed) Classic P110 client – no custom interface 🏰 Our Philosophy We believe Lineage 2 is about the journey, not just the destination. Haruna x3 is designed for months and years of growth, not weeks. We provide a community-driven environment where honest gameplay, fair competition, and strategic teamwork are at the forefront. 🌍 Join Our Community Whether you’re a veteran of Interlude or a returning player seeking a true classic experience, Haruna x3 offers a place to fight, trade, and grow alongside dedicated players. Step into the world of Haruna x3 – where every decision matters, every fight counts, and every victory is yours to earn. Discord: https://discord.gg/7DDC9Dsxnh Website : www.l2haruna.com
    • No, the real purpose is cheating and custom  development for games.  I'm building a custom AI moderator specially for checking illegal activity and flag current topica.
  • 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