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

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


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