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

0 Members and 1 Guest are viewing this topic.

Offline Mr.Razor

  • Newbie
  • *
  • Posts: 47
  • Country: United Kingdom.
  • Reputation: 233
  • 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 !


« Last Edit: April 30, 2011, 04:44:38 PM by Mr.Razor »

Offline Eglezakioc

  • Full Member
  • ***
  • Posts: 222
  • Country: Greece.
  • Reputation: 661
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

Offline G4mB1t

  • Full Member
  • ***
  • Posts: 243
  • Country: Poland.
  • Reputation: 290
  • Gender: Male
  • SweeTs*
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 »

Offline Mr.Razor

  • Newbie
  • *
  • Posts: 47
  • Country: United Kingdom.
  • Reputation: 233
  • L][PoweRade Owner
Re: Anti Target Fix!
« Reply #3 on: April 30, 2011, 04:45:01 PM »
i pressed 1 too much zero :D

Offline Eglezakioc

  • Full Member
  • ***
  • Posts: 222
  • Country: Greece.
  • Reputation: 661
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)