Jump to content

Recommended Posts

Posted

Hello.

I made this share because i think it is usefull for some people because these bugs are known and critical.

 

First:

When you attack valakas you get teleported to goddard automatically.

 

Fix:

Find + open valakas.java on gameserver/data/scripts/ai/individual and do as the like-diff say. :D

 

public String onAttack(L2Npc npc, L2PcInstance attacker, int damage, boolean isPet, L2Skill skill)

{

if (npc.isInvul())

{

return null;

}

i_quest1 = System.currentTimeMillis();

if (GrandBossManager.getInstance().getBossStatus(VALAKAS) != FIGHTING)

{

attacker.teleToLocation(150037, -57255, -2976);

}

 

DELETE THE RED LINES.

 

Second:When you attack antharas you automatically spam the console with a npe.

 

Fix:

 

Find + open antharas.java on gameserver/data/scripts/ai/individual and do as the like-diff say. Cheesy

 

@Override

public String onAttack (L2Npc npc, L2PcInstance attacker, int damage, boolean isPet)

{

if (npc.getNpcId() == 29019 || npc.getNpcId() == 29066 || npc.getNpcId() == 29067 || npc.getNpcId() == 29068)

{

_LastAction = System.currentTimeMillis();

if (GrandBossManager.getInstance().getBossStatus(_antharas.getNpcId()) != FIGHTING)

{

_Zone.oustAllPlayers();

}

      else if (GrandBossManager == null)

       return;

else if (!FWA_OLDANTHARAS && _mobsSpawnTask == null)

{

startMinionSpawns(npc.getNpcId());

}

}

 

ADD THE GREEN LINES

 

Restart your server and valakas + antharas will be ok now.

Bye.

Posted

well not something too special but indeed it is a good share...

 

when i first created a g final server to test this was trully annoying

 

anywayz thanks

  • 2 months later...
  • 3 weeks later...
Posted

i have a error in my concole in 855 line and the player can not go in heart of anthras in grad boss !! but if i spawn the antharas is ok i have not problem with the java error...

Posted

Antharas and Valakas got no problems with their scripts, go make the quests and you will see that if you attack them in the right way and not just teleporting there you will get no errors.

  • 2 weeks later...

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