l2topzone.com
l2topzone.com
l2topzone.com
l2topzone.com
l2topzone.com
l2topzone.com
l2topzone.com

Author Topic: Anti Target Fix!  (Read 4881 times)

0 Members and 2 Guests are viewing this topic.

OfflineMr.Razor

  • Newbie
  • *
  • Posts: 49
  • L2topzone Votes: 0
  • Servers reviews: 1
  • Reputation: +233/-0
  • L][PoweRade Owner
    Anti Target Fix!
    « on: April 30, 2011, 11:29:22 AM »
    ### Eclipse Workspace Patch 1.0
    #P gameserver
    Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestPackageSend.java
    ===================================================================
    --- java/net/sf/l2j/gameserver/network/clientpackets/RequestPackageSend.java    (revision 70)
    +++ java/net/sf/l2j/gameserver/network/clientpackets/RequestPackageSend.java    (working copy)
    @@ -24,6 +24,7 @@
     import net.sf.l2j.Config;
     import net.sf.l2j.gameserver.model.ItemContainer;
     import net.sf.l2j.gameserver.model.L2ItemInstance;
    +import net.sf.l2j.gameserver.model.L2World;
     import net.sf.l2j.gameserver.model.PcFreight;
     import net.sf.l2j.gameserver.model.actor.L2Npc;
     import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
    @@ -78,6 +79,9 @@
             if (player == null)
                 return;
            
    +        if(L2World.getInstance().getPlayer(_objectID) != null)
    +            return;
    +      
             L2PcInstance target = L2PcInstance.load(_objectID);
             PcFreight freight = target.getFreight();
             getClient().getActiveChar().setActiveWarehouse(freight);

    Credits to l2j i guess !




    Linkback: https://l2topzone.com/forum/index.php?topic=3004.0
    « Last Edit: April 30, 2011, 04:44:38 PM by Mr.Razor »

    l2topzone.com
    l2topzone.com
    l2topzone.com
    l2topzone.com
    l2topzone.com

    OfflineEglezakioc

    • Full Member
    • ***
    • Posts: 205
    • L2topzone Votes: 0
    • Servers reviews: 4
    • Reputation: +661/-0
      Re: Anti Target Fix!
      « Reply #1 on: April 30, 2011, 03:31:54 PM »
      hehe i cant see the topic but i must post i know the code but 500 posts are very big ammount :D

      OfflineSweeTs

      • Full Member
      • ***
      • Posts: 167
      • L2topzone Votes: 55
      • Servers reviews: 0
      • Reputation: +290/-0
        Re: Anti Target Fix!
        « Reply #2 on: April 30, 2011, 04:25:44 PM »
        Yup, he must be kidding us.. :P
        Also this code we can easily find on other forums :D
        « Last Edit: April 30, 2011, 04:26:26 PM by G4mB1t »

        OfflineMr.Razor

        • Newbie
        • *
        • Posts: 49
        • L2topzone Votes: 0
        • Servers reviews: 1
        • Reputation: +233/-0
        • L][PoweRade Owner
          Re: Anti Target Fix!
          « Reply #3 on: April 30, 2011, 04:45:01 PM »
          i pressed 1 too much zero :D

          OfflineEglezakioc

          • Full Member
          • ***
          • Posts: 205
          • L2topzone Votes: 0
          • Servers reviews: 4
          • Reputation: +661/-0
            Re: Anti Target Fix!
            « Reply #4 on: April 30, 2011, 04:50:53 PM »
            now its ok

            offtopic: gambit its the 1st time that u agree with me ;P (always friendly)

             

            Sitemap