Jump to content
  • 0

Custom Earthquake For Spawn Epic Boss


Question

Recommended Posts

  • 0
Posted

Here's an answer:
In your case, you're using frozen, so i downloaded l2jfrozen and made the thing, but didn't test it.

 As you can see, you have to replace '12345' with your boss ids. Good luck  :poker face:

@Override
	public void onSpawn()
	{
		if(this.getSpawn().getNpcid()==12345/*frintezza id*/ 
		|| this.getSpawn().getNpcid()==12345/*valakas id*/ 
		|| this.getSpawn().getNpcid()==12345/*baium id*/ 
		|| this.getSpawn().getNpcid()==12345/*antharas id*/ )
{	
Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3);
Broadcast.toAllOnlinePlayers(eq);
}			
		super.onSpawn();
		if(!this.getSpawn().is_customBossInstance())
		GrandBossManager.getInstance().addBoss(this);
	}
  • 0
Posted

i have a errors with new code :(

@Override
	public void onSpawn()
	{
		if(this.getSpawn().getNpcid()==29045/*frintezza id*/ 
		|| this.getSpawn().getNpcid()==29028/*valakas id*/ 
		|| this.getSpawn().getNpcid()==29025/*baium id*/ 
		|| this.getSpawn().getNpcid()==29019/*antharas id*/ )
{	
Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 110, 12);
Broadcast.toAllOnlinePlayers(eq);
}			
		super.onSpawn();
		if(!this.getSpawn().is_customBossInstance())
		GrandBossManager.getInstance().addBoss(this);
	}

errors:

:113: class, interface, or enum expected
    [javac] 	protected void manageMinions()
    [javac] 	          ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:116: class, interface, or enum expected
    [javac] 		_minionMaintainTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable()
    [javac] 		^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:119: class, interface, or enum expected
    [javac] 			public void run()
    [javac] 			       ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:124: class, interface, or enum expected
    [javac] 				int rb_lock_range = Config.RBLOCKRAGE;
    [javac] 				^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:125: class, interface, or enum expected
    [javac] 				if(Config.RBS_SPECIFIC_LOCK_RAGE.get(bossSpawn.getNpcid())!=null){
    [javac] 				^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:127: class, interface, or enum expected
    [javac] 				}
    [javac] 				^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:133: class, interface, or enum expected
    [javac] 				}
    [javac] 				^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:136: class, interface, or enum expected
    [javac] 			}
    [javac] 			^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:138: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:141: class, interface, or enum expected
    [javac] 	public boolean isRaid()
    [javac] 	       ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:144: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:146: class, interface, or enum expected
    [javac] 	public void healFull()
    [javac] 	       ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:149: class, interface, or enum expected
    [javac] 		super.setCurrentMp(super.getMaxMp());
    [javac] 		^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:150: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] 14 errors

BUILD FAILED
  • 0
Posted

 

i have a errors with new code :(

@Override
	public void onSpawn()
	{
		if(this.getSpawn().getNpcid()==29045/*frintezza id*/ 
		|| this.getSpawn().getNpcid()==29028/*valakas id*/ 
		|| this.getSpawn().getNpcid()==29025/*baium id*/ 
		|| this.getSpawn().getNpcid()==29019/*antharas id*/ )
{	
Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 110, 12);
Broadcast.toAllOnlinePlayers(eq);
}			
		super.onSpawn();
		if(!this.getSpawn().is_customBossInstance())
		GrandBossManager.getInstance().addBoss(this);
	}

errors:

:113: class, interface, or enum expected
    [javac] 	protected void manageMinions()
    [javac] 	          ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:116: class, interface, or enum expected
    [javac] 		_minionMaintainTask = ThreadPoolManager.getInstance().scheduleGeneralAtFixedRate(new Runnable()
    [javac] 		^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:119: class, interface, or enum expected
    [javac] 			public void run()
    [javac] 			       ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:124: class, interface, or enum expected
    [javac] 				int rb_lock_range = Config.RBLOCKRAGE;
    [javac] 				^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:125: class, interface, or enum expected
    [javac] 				if(Config.RBS_SPECIFIC_LOCK_RAGE.get(bossSpawn.getNpcid())!=null){
    [javac] 				^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:127: class, interface, or enum expected
    [javac] 				}
    [javac] 				^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:133: class, interface, or enum expected
    [javac] 				}
    [javac] 				^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:136: class, interface, or enum expected
    [javac] 			}
    [javac] 			^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:138: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:141: class, interface, or enum expected
    [javac] 	public boolean isRaid()
    [javac] 	       ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:144: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:146: class, interface, or enum expected
    [javac] 	public void healFull()
    [javac] 	       ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:149: class, interface, or enum expected
    [javac] 		super.setCurrentMp(super.getMaxMp());
    [javac] 		^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:150: class, interface, or enum expected
    [javac] 	}
    [javac] 	^
    [javac] 14 errors

BUILD FAILED

you must have mistaken something when applying the code... it would be faster if you pm'ed me your skype

  • 0
Posted

only have 1 error now!!!

:96: cannot find symbol
    [javac] symbol  : variable player
    [javac] location: class com.l2jfrozen.gameserver.model.actor.instance.L2GrandBossInstance
    [javac] Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3);
  • 0
Posted

 

only have 1 error now!!!

:96: cannot find symbol
    [javac] symbol  : variable player
    [javac] location: class com.l2jfrozen.gameserver.model.actor.instance.L2GrandBossInstance
    [javac] Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3);

try it like this:

 

@Override
public void onSpawn()
{
	if(this.getSpawn().getNpcid()==12345/*frintezza id*/ 
	|| this.getSpawn().getNpcid()==12345/*valakas id*/ 
	|| this.getSpawn().getNpcid()==12345/*baium id*/ 
	|| this.getSpawn().getNpcid()==12345/*antharas id*/ )
{	
Earthquake eq = new Earthquake(this.getSpawn().getLocx(), this.getSpawn().getLocy(), this.getSpawn().getLocz(), 14, 3);
Broadcast.toAllOnlinePlayers(eq);
}			
	super.onSpawn();
	if(!this.getSpawn().is_customBossInstance())
	GrandBossManager.getInstance().addBoss(this);
	}
  • 0
Posted

Dudes, do NOT import gameserver and datapack as one, eclipse won't help you like that(until the compilation). Import them one by one, gameserver and then datapack.

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

    • Lineage 2 Interlude Developer – Cliente + Datapack Hola, soy developer especializado en Lineage 2 Interlude con experiencia tanto en cliente como datapack/core. ✔ Desarrollo datapack (Java, scripts, quests, balance PvP/PvE) ✔ Fixes core / geodata / exploits ✔ Sistemas custom (events, Olympiad, instancias, mods PvP) ✔ Cliente: interface mods, system patches, .dat edits, UI personalizada ✔ Optimización y estabilidad de servidor ✔ Trabajo freelance o colaboración fija Si necesitáis soporte dev o mejoras para vuestro servidor Interlude, podéis contactarme por DM. Portfolio y ejemplos disponibles bajo petición.
    • THEY DON’T COME BACK FOR NO REASON. HERE’S WHY Our clients come from different countries and with very different tasks. But the strongest indicator of quality is simple — when a client comes back **for a second time**. This case is exactly that. The client returned with a request for a **German ID**. The requirement was clear: a document **in a male hand**, with a natural live scene and correct geographic context. What we did: ▪ accepted source files and data without unnecessary bureaucracy ▪ selected a **real street**, not a generic background ▪ built a print-ready mockup with correct scene logic ▪ sent it for approval ▪ after confirmation, delivered the **final file for printing** No templates. No “good enough”. Only solutions tailored to a specific task. Result: ▪ mockup approved on the first try ▪ client fully satisfied ▪ stays in touch We work **worldwide** — and that’s exactly why clients return. Contact us › TG: @mustang_service ( https:// t.me/ mustang_service ) › Channel: Mustang Service ( https:// t.me/ +6RAKokIn5ItmYjEx ) *All data is published with the client’s consent.* #redraw #verification #documents #case #ID
    • Lineage 2 Interlude Developer – Cliente + Datapack Hola, soy developer especializado en Lineage 2 Interlude con experiencia tanto en cliente como datapack/core. ✔ Desarrollo datapack (Java, scripts, quests, balance PvP/PvE) ✔ Fixes core / geodata / exploits ✔ Sistemas custom (events, Olympiad, instancias, mods PvP) ✔ Cliente: interface mods, system patches, .dat edits, UI personalizada ✔ Optimización y estabilidad de servidor ✔ Trabajo freelance o colaboración fija Si necesitáis soporte dev o mejoras para vuestro servidor Interlude, podéis contactarme por DM. Portfolio y ejemplos disponibles bajo petición.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..