L2JMobius

C6 Gate Chant don't summon my friends.

skaki · 6 · 2083

Online skaki

  • Viscount
  • *****
    • Posts: 344
Hello all.

When i summon party with Gate Chant first time is ok, but second time summoning tell thay are alredy summoned. https://ibb.co/1XthcDD
after relog characters all work fine.
If use gate chant can't use summon frind skill same message [ https://ibb.co/1XthcDD ]

i delete this code https://ibb.co/yByXbD0 Gate chant work but dont work summon friend skill :/


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16147
How does that work compared to Summon Friend?

Tried something like this?
Code: [Select]
Index: java/org/l2jmobius/gameserver/handler/skillhandlers/SummonFriend.java
===================================================================
--- java/org/l2jmobius/gameserver/handler/skillhandlers/SummonFriend.java (revision 11465)
+++ java/org/l2jmobius/gameserver/handler/skillhandlers/SummonFriend.java (working copy)
@@ -177,8 +177,7 @@
  continue;
  }
 
- // Summon friend.
- if (skill.getId() == 1403)
+ if ((skill.getId() == 1403 /* Summon Friend */) || (skill.getId() == 1429 /* Gate Chant */))
  {
  // Send message.
  final ConfirmDlg confirm = new ConfirmDlg(SystemMessageId.S1_WISHES_TO_SUMMON_YOU_FROM_S2_DO_YOU_ACCEPT.getId());


Online skaki

  • Viscount
  • *****
    • Posts: 344
nice,working perfect, just now Gate Chant give you message to accept summoning.  8)


Online Mobius

  • Distinguished King
  • *****
    • Posts: 16147
Try this instead.
Code: [Select]
Index: java/org/l2jmobius/gameserver/handler/skillhandlers/SummonFriend.java
===================================================================
--- java/org/l2jmobius/gameserver/handler/skillhandlers/SummonFriend.java (revision 11465)
+++ java/org/l2jmobius/gameserver/handler/skillhandlers/SummonFriend.java (working copy)
@@ -177,8 +177,7 @@
  continue;
  }
 
- // Summon friend.
- if (skill.getId() == 1403)
+ if (skill.getId() == 1403 /* Summon Friend */)
  {
  // Send message.
  final ConfirmDlg confirm = new ConfirmDlg(SystemMessageId.S1_WISHES_TO_SUMMON_YOU_FROM_S2_DO_YOU_ACCEPT.getId());
@@ -188,6 +187,10 @@
  confirm.addRequesterId(activePlayer.getObjectId());
  targetPlayer.sendPacket(confirm);
  }
+ else if (skill.getId() == 1429 /* Gate Chant */)
+ {
+ targetPlayer.teleportAnswer(1, activePlayer.getObjectId());
+ }
  else
  {
  Player.teleToTarget(targetPlayer, activePlayer, activePlayer.getLocation(), skill);