l2alterkdos Posted November 27, 2013 Posted November 27, 2013 Hi all, please i need a code for make possible when spawn valakas antharas frintezza and baium do all server earthquake please help
0 povis111 Posted November 27, 2013 Posted November 27, 2013 Here's a quick guide that i think would work1. Find the L2GrandBossInstance.java between gamserver/model/actor/instance2. 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 xdem Posted November 27, 2013 Posted November 27, 2013 on step 5 you forgot the superclass method and the setrndwalk
0 povis111 Posted November 27, 2013 Posted November 27, 2013 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 l2alterkdos Posted November 27, 2013 Author Posted November 27, 2013 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
0 xdem Posted November 27, 2013 Posted November 27, 2013 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 l2alterkdos Posted November 27, 2013 Author Posted November 27, 2013 but how i say to code only for bosses frintezza baium valakas and antharas for do earthquake? zaken core and queen ant no want do earthquake
0 l2alterkdos Posted November 28, 2013 Author Posted November 28, 2013 thanks for help i added this codes! but my question is that i only will earthquake work with bosses valakas antharas baium and frintezza i need change some? thanks!
0 l2alterkdos Posted November 28, 2013 Author Posted November 28, 2013 (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 November 28, 2013 by l2alterkdos
0 l2alterkdos Posted November 28, 2013 Author Posted November 28, 2013 (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 November 28, 2013 by l2alterkdos
0 povis111 Posted November 28, 2013 Posted November 28, 2013 well, for that, you gonna have to add a boss id check somehow....
0 l2alterkdos Posted November 28, 2013 Author Posted November 28, 2013 (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 November 28, 2013 by l2alterkdos
0 povis111 Posted November 28, 2013 Posted November 28, 2013 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....
Question
l2alterkdos
Hi all,
please i need a code for make possible when spawn valakas antharas frintezza and baium do all server earthquake please help
24 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now