L2JMobius

High Five Multi relation packet

kinghanker · 8 · 2490

Offline kinghanker

  • Knight
  • ***
    • Posts: 64
During a siege I had these messages and I still don't understand the reason for them, can anyone help?



Online Mobius

  • Distinguished King
  • *****
    • Posts: 16035
Warnings should be posted on Bug Reports section.
Moved.

Other than that the message is self explanatory.
Invisible character cannot send relation to players because he is invisible.


Offline kinghanker

  • Knight
  • ***
    • Posts: 64
I got this! what I didn't understand was the trigger made by: RequestRestartPoint
When the character no longer has the castle, the option to return to the castle must disappear and in many cases during the siege or even after the clan that loses the castle usually still has the "to castle" option available.
I don't know if this is the case but wouldn't it be feasible to have a different action for the player that is invisible? make it visible for example?


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16035

Offline kinghanker

  • Knight
  • ***
    • Posts: 64
it was none of the GMs. Staff gms are named with the initial "GM_"


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16035
The relation packet was not meant to be sent to a GM.
Read the warning.

If you do not want to get information about what is going on...
Code: [Select]
Index: java/org/l2jmobius/gameserver/network/serverpackets/RelationChanged.java
===================================================================
--- java/org/l2jmobius/gameserver/network/serverpackets/RelationChanged.java (revision 10070)
+++ java/org/l2jmobius/gameserver/network/serverpackets/RelationChanged.java (working copy)
@@ -77,7 +77,7 @@
  {
  if (activeChar.isInvisible())
  {
- throw new IllegalArgumentException("Cannot add insivisble character to multi relation packet");
+ return;
  }
  final Relation r = new Relation();
  r._objId = activeChar.getObjectId();


Offline kinghanker

  • Knight
  • ***
    • Posts: 64
Code: [Select]
Index: java/org/l2jmobius/gameserver/network/serverpackets/RelationChanged.java
===================================================================
--- java/org/l2jmobius/gameserver/network/serverpackets/RelationChanged.java (revision 10070)
+++ java/org/l2jmobius/gameserver/network/serverpackets/RelationChanged.java (working copy)
@@ -78,7 +78,7 @@
  {
- if (activeChar.isInvisible())
+ if (activeChar.isInvisible() && !activeChar.isGM())
  {
throw new IllegalArgumentException("Cannot add insivisble character to multi relation packet");
return;
  }