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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...