L2-scripts Форум

L2-scripts Форум (http://l2-scripts.ru/forum/index.php)
-   Archive Lindvior, Ertheia, Odyssey, Undergeround, Helios, Grand Crusade (http://l2-scripts.ru/forum/forumdisplay.php?f=103)
-   -   [CORE] CLAN INVITE DONT WORK (http://l2-scripts.ru/forum/showthread.php?t=3874)

boulanger 07.10.2013 05:56

[CORE] CLAN INVITE DONT WORK
 
clan invite still do no work, when we try to invite a player, says incorrect target.

http://i43.tinypic.com/2e2p268.jpg

boulanger 07.10.2013 20:07

i found this in core, might be responsable for error

requestJoinPledge in l2.gameserver.network.l2.c2s

Код:

GameObject object = activeChar.getVisibleObject(this._objectId);
    if ((object == null) || (!object.isPlayer()))
    {
      FakePlayerInstance fakePlayer = GameObjectsStorage.getFakePlayerByObjId(this._objectId);
      if (fakePlayer != null)
      {
        if ((this._pledgeType == -1) && ((fakePlayer.getLevel() > 75) || (fakePlayer.getClassId().getClassLevel().ordinal() >= 3)))
        {
          activeChar.sendPacket(SystemMsg.TO_JOIN_A_CLAN_ACADEMY_CHARACTERS_MUST_BE_LEVEL_40_OR_BELOW_NOT_BELONG_ANOTHER_CLAN_AND_NOT_YET_COMPLETED_THEIR_2ND_CLASS_TRANSFER);
          return;
        }

        Request request = new Request(Request.L2RequestType.CLAN, activeChar, null).setTimeout(10000L);
        request.set("pledgeType", this._pledgeType);
        return;
      }
      activeChar.sendPacket(SystemMsg.THAT_IS_AN_INCORRECT_TARGET);
      return;
    }

    Player member = (Player)object;
    if (member.getClan() == activeChar.getClan())
    {
      activeChar.sendPacket(SystemMsg.THAT_IS_AN_INCORRECT_TARGET);
      return;
    }


iqman 08.10.2013 02:06

fixed by tomorow.


Часовой пояс GMT +4, время: 15:24.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd. Перевод: zCarot