UnSponsored Posted August 10, 2012 Posted August 10, 2012 can someone tell me to fix it? Code found here
0 Tryskell Posted August 10, 2012 Posted August 10, 2012 cha should be a L2NpcInstance, but he found a L2Summon. You probably totally missed the place where you need to c/p your code, as L2Summon isn't linked to L2NpcInstance by any side (L2Object > L2Character > L2Playable).
0 UnSponsored Posted August 10, 2012 Author Posted August 10, 2012 cha should be a L2NpcInstance, but he found a L2Summon. You probably totally missed the place where you need to c/p your code, as L2Summon isn't linked to L2NpcInstance by any side (L2Object > L2Character > L2Playable). so what i have to do? sorry but i am newbie..
0 Tryskell Posted August 10, 2012 Posted August 10, 2012 That packet got different layers, corresponding to type of instance. From memory, there is one L2Summon and one L2Npc constructor, just copy paste in good place.
0 UnSponsored Posted August 10, 2012 Author Posted August 10, 2012 so can you say me what i have to change,please?
0 UnSponsored Posted August 11, 2012 Author Posted August 11, 2012 yeah, line 173 and 187 :) what i have to change in lines (173,187) 173: if(cha instanceof L2NpcInstance && cha.isInsideZone(L2Character.ZONE_PEACE) && cha.getCastle().getOwnerId() != 0) 187:clan = ClanTable.getInstance().getClan(cha.getCastle().getOwnerId());
0 Tryskell Posted August 11, 2012 Posted August 11, 2012 yeah, line 173 and 187 :) No, he used the wrong constructor. He must drop whatever he did on that packet, and make it in the good constructor. He simply can't correct lines, it's not possible as the constructor refers only to L2Npc, not L2Summon. That packet got 2 different constructors, take time to read what you do and probably you will find.
0 UnSponsored Posted August 11, 2012 Author Posted August 11, 2012 No, he used the wrong constructor. He must drop whatever he did on that packet, and make it in the good constructor. He simply can't correct lines, it's not possible as the constructor refers only to L2Npc, not L2Summon. That packet got 2 different constructors, take time to read what you do and probably you will find. so i have to remove the code and replace it?
0 Mhoska Posted August 11, 2012 Posted August 11, 2012 so i have to remove the code and replace it? yes, try too see when you start gettin that error :) thats what you should normally do when a error pops.
Question
UnSponsored
can someone tell me to fix it?
Code found here
9 answers to this question
Recommended Posts