Autor Tema: Null point html when killing NPC has summon mimion  (Leído 176 veces)

hoangnhan

  • Newbie
  • *
  • Mensajes: 11
  • Karma: +0/-0
    • Ver Perfil
Null point html when killing NPC has summon mimion
« en: Mayo 07, 2018, 12:50:49 pm »
Hi everyone.

When kill monster has summon mimion like : Alliance of Victory in Valley of Saint they summon a mimion and show HTML panel NULL, Game Server Console has error null point.
please check it :)
« Última modificación: Mayo 14, 2018, 04:18:28 am por fissban »

fissban

  • Administrador
  • Full Member
  • *
  • Mensajes: 152
  • Karma: +0/-0
    • Ver Perfil
Re:Null point html when killing NPC has summon mimion
« Respuesta #1 en: Mayo 07, 2018, 05:17:15 pm »
Could you show a picture with the error?

hoangnhan

  • Newbie
  • *
  • Mensajes: 11
  • Karma: +0/-0
    • Ver Perfil
Re:Null point html when killing NPC has summon mimion
« Respuesta #2 en: Mayo 07, 2018, 11:10:30 pm »
Could you show a picture with the error?

im forget shoot prtsc .  But  it show online NULL OnHTML:

There fix it :
net/sf/l2j/gameserver/scripts/ai/mobs/PolymorphingOnAttack.java

Código
newNpc.setRunning();
newNpc.addDamageHate(originalAttacker, 0, 999);
newNpc.getAI().setIntention(CtrlIntentionType.ATTACK, originalAttacker);
}
-                  npc.doDie(null);
+ npc.doDie(attacker);
}
}
}
}
return null;
}

public class PolymorphingOnAttackList



fissban

  • Administrador
  • Full Member
  • *
  • Mensajes: 152
  • Karma: +0/-0
    • Ver Perfil
Re:Null point html when killing NPC has summon mimion
« Respuesta #3 en: Mayo 08, 2018, 02:18:25 am »
if you define that parameter inside "doDie" it will give reward to that person when "disappearing" the npc.

Fixed: https://sourceforge.net/p/l2jadminsc4/code/1054/

Thx

hoangnhan

  • Newbie
  • *
  • Mensajes: 11
  • Karma: +0/-0
    • Ver Perfil
Re:Null point html when killing NPC has summon mimion
« Respuesta #4 en: Mayo 08, 2018, 04:23:38 am »
if you define that parameter inside "doDie" it will give reward to that person when "disappearing" the npc.

Fixed: https://sourceforge.net/p/l2jadminsc4/code/1054/

Thx
.

Ultil null point in gameconsole  only when minion spawn.
https://uphinhnhanh.com/image/zUx4no link image. Sorry, but i cant edit [img]
« Última modificación: Mayo 08, 2018, 04:35:26 am por hoangnhan »

fissban

  • Administrador
  • Full Member
  • *
  • Mensajes: 152
  • Karma: +0/-0
    • Ver Perfil
Re:Null point html when killing NPC has summon mimion
« Respuesta #5 en: Mayo 08, 2018, 10:37:55 am »
check this
Código
Index: java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/L2Attackable.java (revision 1054)
+++ java/net/sf/l2j/gameserver/model/actor/L2Attackable.java (working copy)
@@ -333,6 +333,10 @@
  return false;
  }
 
+ if (killer == null)
+ {
+ return true;
+ }
  // Notify the Quest Engine of the L2Attackable death if necessary
  try
  {

hoangnhan

  • Newbie
  • *
  • Mensajes: 11
  • Karma: +0/-0
    • Ver Perfil
Re:Null point html when killing NPC has summon mimion
« Respuesta #6 en: Mayo 08, 2018, 11:03:32 pm »
check this
Código
Index: java/net/sf/l2j/gameserver/model/actor/L2Attackable.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/L2Attackable.java (revision 1054)
+++ java/net/sf/l2j/gameserver/model/actor/L2Attackable.java (working copy)
@@ -333,6 +333,10 @@
  return false;
  }
 
+ if (killer == null)
+ {
+ return true;
+ }
  // Notify the Quest Engine of the L2Attackable death if necessary
  try
  {


OK man, this done.  no error.

But until one problem. after summon minion , dont add dmghate to attacker. 

And maybe missing spawn NPC Paliote on Valley outsite Giant Cave  near Raidboss Taik High Perfect.