Jump to content

[Share]A Fix for valakas + antharas on l2j freya


Recommended Posts

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.

Link to comment
Share on other sites

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...