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

 

  • 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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...