Jump to content

Automatic Potions Free Code For All L2J Packs!


Recommended Posts

 

Where in L2PcInstance should i add this code? im using l2jfrozen.

@@ -4321,6 +4339,22 @@
 			teleToLocation(184351, 20318, -3174, 0);
 		}
 		
+		if (isAutoPot(728))
+		{
+			sendPacket(new ExAutoSoulShot(728, 0));
+			setAutoPot(728, null, false);
+		}
+		if (isAutoPot(1539))
+		{
+			sendPacket(new ExAutoSoulShot(1539, 0));
+			setAutoPot(1539, null, false);
+		}
+		if (isAutoPot(5592))
+		{
+			sendPacket(new ExAutoSoulShot(5592, 0));
+			setAutoPot(5592, null, false);
+		}
+		
 		return true;
 	}
 	

Man Where have you:

:D:D:D

data/xml/items/1500-1599.xml

data/xml/items/0700-0799.xml

data/xml/items/5500-5599.xml

Link to comment
Share on other sites

  • 2 weeks later...

with small changes on the code it work perfect on acis 361 rev.

tested

 


 
+ if (isAutoPot(728))
+ {
+ sendPacket(new ExAutoSoulShot(728, 0));
+ setAutoPot(728, null, false);
+ }
+ if (isAutoPot(1539))
+ {
+ sendPacket(new ExAutoSoulShot(1539, 0));
+ setAutoPot(1539, null, false);
+ }
+ if (isAutoPot(5592))
+ {
+ sendPacket(new ExAutoSoulShot(5592, 0));
+ setAutoPot(5592, null, false);
+

 

Bro do u know on which line the code should be on cuz i didn't find this @@ -4321,6 +4339,22 @@

  teleToLocation(184351, 20318, -3174, 0);
  }

.

Thank u in advance

 

 

 

PS: All good thank u anyway ^^

Edited by BaM4yYy
Link to comment
Share on other sites

  • 1 year later...
  • 5 months later...

Any help?
 

CODE:
	activeChar.setAutoPot(5592, ThreadPool.getInstance().scheduleGeneralAtFixedRate(new AutoPot(5592, activeChar), 1000, CP_POT_CD*1000), true);


ERROR:
	[javac] aCis_gameserver\java\net\sf\l2j\gameserver\handler\itemhandlers\SoulShots.java:118: error: cannot find symbol
    [javac] 											activeChar.setAutoPot(5592, ThreadPool.getInstance().scheduleGeneralAtFixedRate(new AutoPot(5592, activeChar), 1000, CP_POT_CD*1000), true);
    [javac] 											                                      ^
    [javac]   symbol:   method getInstance()
    [javac]   location: class ThreadPool

 

Link to comment
Share on other sites

  • 9 months later...
On 4/28/2017 at 5:50 PM, BaM4yYy said:

 



 
 
+ if (isAutoPot(728))
+ {
+ sendPacket(new ExAutoSoulShot(728, 0));
+ setAutoPot(728, null, false);
+ }
+ if (isAutoPot(1539))
+ {
+ sendPacket(new ExAutoSoulShot(1539, 0));
+ setAutoPot(1539, null, false);
+ }
+ if (isAutoPot(5592))
+ {
+ sendPacket(new ExAutoSoulShot(5592, 0));
+ setAutoPot(5592, null, false);
+

 

Bro do u know on which line the code should be on cuz i didn't find this @@ -4321,6 +4339,22 @@

  teleToLocation(184351, 20318, -3174, 0);
  }

.

Thank u in advance

 

 

 

PS: All good thank u anyway ^^

 

Put it over there,  Player.java

if (_activeSoulShots.contains(itemId))
		{
			removeAutoSoulShot(itemId);
			sendPacket(new ExAutoSoulShot(itemId, 0));
			sendPacket(SystemMessage.getSystemMessage(SystemMessageId.AUTO_USE_OF_S1_CANCELLED).addItemName(itemId));
			return true;
		}
+		if (isAutoPot(728))
+		{
+			sendPacket(new ExAutoSoulShot(728, 0));
+			setAutoPot(728, null, false);
+		}
+		if (isAutoPot(1539))
+		{
+			sendPacket(new ExAutoSoulShot(1539, 0));
+			setAutoPot(1539, null, false);
+		}
+		if (isAutoPot(5592))
+		{
+			sendPacket(new ExAutoSoulShot(5592, 0));
+			setAutoPot(5592, null, false);
+		}
+		
		return false;
	}

 

Link to comment
Share on other sites

  • 6 months later...
  • 4 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now



×
×
  • Create New...