Jump to content

Recommended Posts

Posted

 

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

  • 2 weeks later...
Posted (edited)

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
  • 1 year later...
  • 5 months later...
Posted

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

 

Posted

ThreadPool.scheduleAtFixedRate( or something, just type schedule after the dot and choose correct naming.

  • 9 months later...
Posted
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;
	}

 

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock