l2topzone.com
l2topzone.com

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

0 Members and 6 Guests are viewing this topic.

OfflineMr.Razor

  • Newbie
  • *
  • Posts: 49
  • L2topzone Votes: 0
  • Servers reviews: 1
  • Country: United Kingdom.
  • Reputation: +233/-0
  • L][PoweRade Owner
    Anti Target Fix!
    « on: April 30, 2011, 12:29:22 PM »
    l2topzone.com
    ### 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/l2-java-projects/16/anti-target/3004/
    « Last Edit: April 30, 2011, 05:44:38 PM by Mr.Razor »

    OfflineEglezakioc

    • Full Member
    • ***
    • Posts: 205
    • L2topzone Votes: 0
    • Servers reviews: 4
    • Country: Greece.
    • Reputation: +661/-0
      Re: Anti Target Fix!
      « Reply #1 on: April 30, 2011, 04: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: 150
      • L2topzone Votes: 2
      • Servers reviews: 0
      • Country: Poland.
      • Reputation: +290/-0
      • Gender: Male
        Re: Anti Target Fix!
        « Reply #2 on: April 30, 2011, 05: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, 05:26:26 PM by G4mB1t »

        OfflineMr.Razor

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

          OfflineEglezakioc

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

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


            Share via diggShare via facebookShare via linkedinShare via myspaceShare via redditShare via twitter
             


            Sitemap