Jump to content
  • 0

Custom Earthquake For Spawn Epic Boss


l2alterkdos

Question

Recommended Posts

  • 0

Here's a quick guide that i think would work

1. Find the L2GrandBossInstance.java between gamserver/model/actor/instance
2. Find CursedWeapon.java between gamserver/model/
3. Find  this in CursedWeapon.java

private void dropIt(L2Attackable attackable, L2PcInstance player, L2Character killer, boolean fromMonster)
    {
        _isActivated = false;

        if (fromMonster)
        {
            _item = attackable.dropItem(player, _itemId, 1);
            _item.setDropTime(0); // Prevent item from being removed by ItemsAutoDestroy

            // RedSky and Earthquake
            ExRedSky packet = new ExRedSky(10);
            Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3);
            Broadcast.toAllOnlinePlayers(packet);
            Broadcast.toAllOnlinePlayers(eq);
        }

4. Find this in L2GrandBossInstance.java

    @Override
    public void onSpawn()
    {
            setIsNoRndWalk(true);
            super.onSpawn();
    }

5. Take lines from CursedWeapon.java and paste them in L2GrandBossInstance.java

    @Override
    public void onSpawn()
    {
      Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3);
      Broadcast.toAllOnlinePlayers(eq);
      setIsNoRndWalk(true);
      super.onSpawn();
    }

6. Don't forget to paste imports in GrandBossInstance.java (should look similar)

import net.sf.l2j.gameserver.network.serverpackets.Earthquake;
import net.sf.l2j.gameserver.util.Broadcast;

7. I don't know if this works, but it should. Good luck  :happyforever:

Link to comment
Share on other sites

  • 0

ok later i will test the codes but epic bosses have 4 status when do earthquake? in status 0-1-2 if 3 is dead? thanks

 

it works 100%

 

what status ur talking about

Link to comment
Share on other sites

  • 0

i have 4 errors with the codes the final code in my grandbossintance.java is

@Override
	public void onSpawn()
	{
		Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 14, 3);
	      Broadcast.toAllOnlinePlayers(eq);
	      setIsNoRndWalk(true);
		super.onSpawn();
		if(!this.getSpawn().is_customBossInstance())
			GrandBossManager.getInstance().addBoss(this);
	}

+

import com.l2jfrozen.gameserver.network.serverpackets.Earthquake;
import com.l2jfrozen.gameserver.util.Broadcast;

but base revision code is:

@Override
	public void onSpawn()
	{
		super.onSpawn();
		if(!this.getSpawn().is_customBossInstance())
			GrandBossManager.getInstance().addBoss(this);
	}

not

@Override
    public void onSpawn()
    {
            setIsNoRndWalk(true);
            super.onSpawn();
    }

please help with is the final code thanks all!!

 

the java errors that i have:

symbol  : variable player
    [javac] location: class com.l2jfrozen.gameserver.model.actor.instance.L2GrandBossInstance
    [javac] 	      Earthquake eq = new Earthquake(player.getX(), player.getY(), player.getZ(), 100, 12);
    [javac] 	                                     ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:91: 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(), 100, 12);
    [javac] 	                                                    ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:91: 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(), 100, 12);
    [javac] 	                                                                   ^
    [javac] C:\Users\Marc\workspace\L2Jfrozen rev 1004\gameserver\head-src\com\l2jfrozen\gameserver\model\actor\instance\L2GrandBossInstance.java:93: cannot find symbol
    [javac] symbol  : method setIsNoRndWalk(boolean)
    [javac] location: class com.l2jfrozen.gameserver.model.actor.instance.L2GrandBossInstance
    [javac] 	      setIsNoRndWalk(true);
    [javac] 	      ^
    [javac] 4 errors

BUILD FAILED
Edited by l2alterkdos
Link to comment
Share on other sites

  • 0

xdem i create 1 without errors but i dont know how i put the custom bosses for earthquake look!

@Override
	public void onSpawn()
	{
		Earthquake eq = new Earthquake(getX(),getY(), getZ(), 100, 12);                
	       Broadcast.toAllOnlinePlayers(eq);
		super.onSpawn();
		if(!this.getSpawn().is_customBossInstance())
			GrandBossManager.getInstance().addBoss(this);
		    

in this? i writte the name or id or that?

 

PD: I must delete this setisNoRndWalk(true) because have java error!

 symbol  : method setIsNoRndWalk(boolean)
    [javac] location: class com.l2jfrozen.gameserver.model.actor.instance.L2GrandBossInstance
    [javac] 	    setIsNoRndWalk(true);
    [javac] 	    ^
    [javac] 1 error
Edited by l2alterkdos
Link to comment
Share on other sites

  • 0

povis earthquake is working but with all grandbosses

i will like only work with valakas frintezza antharas and baium!

how i do this? thanks

Edited by l2alterkdos
Link to comment
Share on other sites

  • 0

povis earthquake is working but with all grandbosses

i will like only work with valakas frintezza antharas and baium!

how i do this? thanks

 

well, for that, you gonna have to add a boss id check somehow.... 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...