j1maras2@ Posted March 19, 2011 Posted March 19, 2011 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. Quote
Matim Posted March 19, 2011 Posted March 19, 2011 Add proper tag in topic title, and put code in quote/code block. Quote
vagos123 Posted March 19, 2011 Posted March 19, 2011 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 Quote
MoDuL Posted June 7, 2011 Posted June 7, 2011 ok i understand what valakas script does but what is that for antharas? Quote
ronaldkbza Posted June 11, 2011 Posted June 11, 2011 else if (GrandBossManager == null) return; GrandBossManager its not a variable and it give me a error :/ Quote
apisteutos Posted June 26, 2011 Posted June 26, 2011 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... Quote
pipiou21 Posted June 26, 2011 Posted June 26, 2011 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. Quote
Recommended Posts
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.