Jump to content
  • 0

Custom Earthquake For Spawn Epic Boss


Question

Recommended Posts

  • 0
Posted

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:

  • 0
Posted

on step 5 you forgot the superclass method and the setrndwalk

what do you mean? fix what is wrong, i don't see it  :poker face:

  • 0
Posted

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

  • 0
Posted (edited)

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
  • 0
Posted (edited)

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
  • 0
Posted (edited)

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
  • 0
Posted

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.... 

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


×
×
  • 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